public abstract class SchemaElement extends Referenceable
The SchemaElement object provides a base class for the pieces that make up a schema for a data asset. A schema provides information about how the data is structured in the asset. Schemas are typically described as nested structures of linked schema elements. Schemas can also be reused in other schemas.
SchemaElement is an abstract class - used to enable the most accurate and precise mapping of the elements in a schema to the asset.Schema elements can be linked to one another using SchemaLink.
| Modifier and Type | Field and Description |
|---|---|
protected String |
author |
protected String |
encodingStandard |
protected Map<String,Object> |
schemaProperties |
protected String |
usage |
protected String |
versionNumber |
additionalProperties, qualifiedNameclassifications, guid, type, url| Constructor and Description |
|---|
SchemaElement()
Default constructor
|
SchemaElement(SchemaElement templateSchema)
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.
|
boolean |
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
|
String |
getAuthor()
Return the name of the author of the schema element.
|
String |
getEncodingStandard()
Return the format (encoding standard) used for this schema.
|
Map<String,Object> |
getSchemaProperties()
Return Set up schema properties - these are properties introduced in the implementation specific subclasses of
schema element.
|
String |
getUsage()
Return the usage guidance for this schema element.
|
String |
getVersionNumber()
Return the version number of the schema element - null means no version number.
|
void |
setAuthor(String author)
Set up the name of the author of the schema element.
|
void |
setEncodingStandard(String encodingStandard)
Set up the format (encoding standard) used for this schema.
|
void |
setSchemaProperties(Map<String,Object> schemaProperties)
Set up schema properties - these are properties introduced in the implementation specific subclasses of
schema element.
|
void |
setUsage(String usage)
Set up the usage guidance for this schema element.
|
void |
setVersionNumber(String versionNumber)
Set up the version number of the schema element - null means no version number.
|
String |
toString()
Standard toString method.
|
getAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedNamegetClassifications, getGUID, getType, getURL, hashCode, setClassifications, setGUID, setType, setURLprotected String versionNumber
protected String author
protected String usage
protected String encodingStandard
public SchemaElement()
public SchemaElement(SchemaElement templateSchema)
templateSchema - template object to copy.public abstract SchemaElement cloneSchemaElement()
public String getVersionNumber()
public void setVersionNumber(String versionNumber)
versionNumber - String version numberpublic String getAuthor()
public void setAuthor(String author)
author - String author namepublic String getUsage()
public void setUsage(String usage)
usage - String usage guidancepublic String getEncodingStandard()
public void setEncodingStandard(String encodingStandard)
encodingStandard - String encoding standardpublic void setSchemaProperties(Map<String,Object> schemaProperties)
schemaProperties - properties mappublic Map<String,Object> getSchemaProperties()
public boolean equals(Object objectToCompare)
equals in class ReferenceableobjectToCompare - supplied objectpublic String toString()
toString in class ReferenceableCopyright © 2018 ODPi. All rights reserved.