public abstract class SchemaElement extends Referenceable
The SchemaElement object provides a base class for the pieces that make up a schema for an asset. A schema provides information about how the data is structured in the asset. Schemas are typically described as nested structures of schema elements. There are two basic types:
Assets are linked to a SchemaType.
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected String |
displayName |
additionalProperties, qualifiedName| Constructor and Description |
|---|
SchemaElement()
Default constructor
|
SchemaElement(SchemaElement template)
Copy/clone Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract SchemaElement |
cloneSchemaElement()
Return a clone of this schema element.
|
boolean |
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
|
String |
getDescription()
Returns the stored description property for the schema element.
|
String |
getDisplayName()
Return the simple name of the schema element.
|
int |
hashCode()
Return a number that represents the contents of this object.
|
void |
setDescription(String description)
Set up the stored description property for the schema element.
|
void |
setDisplayName(String name)
Set up the simple name of the schema element.
|
String |
toString()
Standard toString method.
|
getAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedNamepublic SchemaElement()
public SchemaElement(SchemaElement template)
template - template object to copy.public String getDisplayName()
public void setDisplayName(String name)
name - String display namepublic String getDescription()
public void setDescription(String description)
description - string descriptionpublic abstract SchemaElement cloneSchemaElement()
public String toString()
toString in class Referenceablepublic boolean equals(Object objectToCompare)
equals in class ReferenceableobjectToCompare - supplied objectpublic int hashCode()
hashCode in class ReferenceableCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.