public abstract class AssetSchemaType extends AssetSchemaElement
The AssetSchemaType 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 linked schema elements.
AssetSchemaType is an abstract class - its subclasses enable the most accurate and precise mapping of the elements in a schema to the asset.StructSchemaType elements can be linked to one another using SchemaLink.
schemaElementBeanreferenceableBeanparentAsset| Modifier | Constructor and Description |
|---|---|
protected |
AssetSchemaType(AssetDescriptor parentAsset)
Constructor used by the subclasses
|
|
AssetSchemaType(AssetDescriptor parentAsset,
AssetSchemaType 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.
|
|
AssetSchemaType(AssetDescriptor parentAsset,
SchemaType schemaTypeBean)
Bean constructor with parent asset
|
|
AssetSchemaType(SchemaType schemaTypeBean)
Bean constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract AssetSchemaType |
cloneAssetSchemaType(AssetDescriptor parentAsset)
Return a clone of this schema type.
|
static AssetSchemaType |
createAssetSchemaType(AssetDescriptor parentAsset,
SchemaType bean) |
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.
|
protected SchemaType |
getSchemaTypeBean()
Return this schema type bean.
|
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.
|
protected void |
setBean(SchemaType bean)
Set up the bean that contains the properties of the schema.
|
String |
toString()
Standard toString method.
|
getDescription, getDisplayName, getSchemaElementBean, isDeprecated, setBeangetAdditionalProperties, getMeanings, getQualifiedName, getReferenceableBean, setBeangetAssetClassifications, getElementHeaderBean, getExtendedProperties, getGUID, getType, getURL, hashCode, setBeangetParentAsset, getParentAssetName, getParentAssetTypeNameprotected AssetSchemaType(AssetDescriptor parentAsset)
parentAsset - descriptor of asset that this property relates to.public AssetSchemaType(SchemaType schemaTypeBean)
schemaTypeBean - bean containing the schema element propertiespublic AssetSchemaType(AssetDescriptor parentAsset, SchemaType schemaTypeBean)
parentAsset - descriptor for parent assetschemaTypeBean - bean containing the schema element propertiespublic AssetSchemaType(AssetDescriptor parentAsset, AssetSchemaType templateSchema)
parentAsset - description of the asset that this schema element is attached to.templateSchema - template object to copy.public static AssetSchemaType createAssetSchemaType(AssetDescriptor parentAsset, SchemaType bean)
protected abstract AssetSchemaType cloneAssetSchemaType(AssetDescriptor parentAsset)
parentAsset - description of the asset that this schema element is attached to.protected void setBean(SchemaType bean)
bean - bean containing the schema propertiesprotected SchemaType getSchemaTypeBean()
public String getVersionNumber()
public String getAuthor()
public String getUsage()
public String getEncodingStandard()
public String toString()
toString in class AssetSchemaElementpublic boolean equals(Object objectToCompare)
equals in class AssetSchemaElementobjectToCompare - supplied objectCopyright © 2018–2020 ODPi. All rights reserved.