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 |
protected boolean |
isDeprecated |
additionalProperties, meanings, qualifiedNameclassifications, extendedProperties, guid, type, url| Constructor and Description |
|---|
SchemaElement()
Default constructor
|
SchemaElement(SchemaElement template)
Copy/clone Constructor - the parentAsset is passed separately to the template because it is also
likely to be being cloned in the same operation and we want the definitions clone to point to the
asset clone and not the original asset.
|
| Modifier and Type | Method and Description |
|---|---|
abstract SchemaElement |
cloneSchemaElement()
Return a clone of this schema element.
|
String |
getDescription()
Returns the stored description property for the schema element.
|
String |
getDisplayName()
Return the simple name of the schema element.
|
boolean |
isDeprecated()
Is the schema element deprecated?
|
void |
setDeprecated(boolean deprecated)
Set whether the schema element deprecated or not.
|
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.
|
equals, getAdditionalProperties, getMeanings, getQualifiedName, hashCode, setAdditionalProperties, setMeanings, setQualifiedNamegetClassifications, getExtendedProperties, getGUID, getType, getURL, setClassifications, setExtendedProperties, setGUID, setType, setURLprotected boolean isDeprecated
protected String displayName
protected String description
public SchemaElement()
public SchemaElement(SchemaElement template)
template - template object to copy.public boolean isDeprecated()
public void setDeprecated(boolean deprecated)
deprecated - boolean flagpublic 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 ReferenceableCopyright © 2018–2020 ODPi. All rights reserved.