public class SchemaType extends SchemaElement
The SchemaType 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.
Schema type has a number of subtypes that hold additional properties.
| Modifier and Type | Field and Description |
|---|---|
protected String |
author |
protected String |
displayName |
protected String |
encodingStandard |
protected String |
usage |
protected String |
versionNumber |
additionalProperties, meanings, qualifiedNameclassifications, extendedProperties, guid, type, url| Constructor and Description |
|---|
SchemaType()
Default constructor
|
SchemaType(SchemaType 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 |
|---|---|
SchemaElement |
cloneSchemaElement()
Return a clone of this schema element.
|
SchemaType |
cloneSchemaType()
Return a clone of this schema type.
|
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 |
getDisplayName()
Return the simple name of the schema type.
|
String |
getEncodingStandard()
Return the format (encoding standard) used for this schema.
|
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 |
setDisplayName(String name)
Set up the simple name of the schema type.
|
void |
setEncodingStandard(String encodingStandard)
Set up the format (encoding standard) used for this schema.
|
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, getMeanings, getQualifiedName, hashCode, setAdditionalProperties, setMeanings, setQualifiedNamegetClassifications, getExtendedProperties, getGUID, getType, getURL, setClassifications, setExtendedProperties, setGUID, setType, setURLprotected String displayName
protected String versionNumber
protected String author
protected String usage
protected String encodingStandard
public SchemaType()
public SchemaType(SchemaType templateSchema)
templateSchema - template object to copy.public SchemaElement cloneSchemaElement()
cloneSchemaElement in class SchemaElementpublic SchemaType cloneSchemaType()
public String getDisplayName()
public void setDisplayName(String name)
name - String display namepublic 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 boolean equals(Object objectToCompare)
equals in class ReferenceableobjectToCompare - supplied objectpublic String toString()
toString in class SchemaElementCopyright © 2018–2020 ODPi. All rights reserved.