public class AssetSchemaAttribute extends AssetReferenceable
SchemaAttribute describes a single attribute within a schema. The attribute has a name, order in the schema and cardinality. Its type is another SchemaElement (either Schema, MapSchemaElement or PrimitiveSchemaElement).
If it is a PrimitiveSchemaElement it may have an override for the default value within.
| Modifier and Type | Field and Description |
|---|---|
protected AssetSchemaType |
assetSchemaType |
protected SchemaAttribute |
schemaAttributeBean |
referenceableBeanparentAsset| Constructor and Description |
|---|
AssetSchemaAttribute(AssetDescriptor parentAsset,
AssetSchemaAttribute template)
Copy/clone constructor.
|
AssetSchemaAttribute(AssetDescriptor parentAsset,
SchemaAttribute schemaAttributeBean,
AssetSchemaType assetSchemaType)
Bean constructor with parent asset
|
AssetSchemaAttribute(SchemaAttribute schemaAttributeBean,
AssetSchemaType assetSchemaType)
Bean constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
|
String |
getAttributeName()
Return the name of this schema attribute.
|
AssetSchemaType |
getAttributeType()
Return the SchemaElement that relates to the type of this attribute.
|
String |
getCardinality()
Return the cardinality defined for this schema attribute.
|
String |
getDefaultValueOverride()
Return any default value for this attribute that would override the default defined in the
schema element for this attribute's type (note only used is type is primitive).
|
int |
getElementPosition()
Return the position of this schema attribute in its parent schema.
|
protected SchemaAttribute |
getSchemaAttributeBean()
Return the bean with all of the properties.
|
String |
toString()
Standard toString method.
|
getAdditionalProperties, getQualifiedName, getReferenceableBeangetAssetClassifications, getElementHeaderBean, getGUID, getType, getURL, hashCodegetParentAsset, getParentAssetName, getParentAssetTypeNameprotected SchemaAttribute schemaAttributeBean
protected AssetSchemaType assetSchemaType
public AssetSchemaAttribute(SchemaAttribute schemaAttributeBean, AssetSchemaType assetSchemaType)
schemaAttributeBean - bean containing all of the propertiesassetSchemaType - type for this schema attributepublic AssetSchemaAttribute(AssetDescriptor parentAsset, SchemaAttribute schemaAttributeBean, AssetSchemaType assetSchemaType)
parentAsset - description of the asset that this schema attribute is attached to.schemaAttributeBean - bean containing all of the propertiesassetSchemaType - type for this schema attributepublic AssetSchemaAttribute(AssetDescriptor parentAsset, AssetSchemaAttribute template)
parentAsset - description of the asset that this schema attribute is attached to.template - template schema attribute to copy.protected SchemaAttribute getSchemaAttributeBean()
public String getAttributeName()
public int getElementPosition()
public String getCardinality()
public String getDefaultValueOverride()
public AssetSchemaType getAttributeType()
public String toString()
toString in class AssetReferenceablepublic boolean equals(Object objectToCompare)
equals in class AssetReferenceableobjectToCompare - supplied objectCopyright © 2018 ODPi. All rights reserved.