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 StructSchemaType, MapSchemaType or PrimitiveSchemaType).
If it is a PrimitiveSchemaType it may have an override for the default value within.
| Modifier and Type | Field and Description |
|---|---|
protected AssetSchemaLink |
externalSchemaLink |
protected AssetSchemaType |
localSchemaType |
protected SchemaAttribute |
schemaAttributeBean |
referenceableBeanparentAsset| Modifier | Constructor and Description |
|---|---|
|
AssetSchemaAttribute(AssetDescriptor parentAsset,
AssetSchemaAttribute template)
Copy/clone constructor.
|
protected |
AssetSchemaAttribute(AssetDescriptor parentAsset,
SchemaAttribute schemaAttributeBean)
Bean constructor with parent asset
|
|
AssetSchemaAttribute(AssetDescriptor parentAsset,
SchemaAttribute schemaAttributeBean,
AssetSchemaLink externalSchemaLink)
Bean constructor with parent asset and fully constructed link to external schema type.
|
|
AssetSchemaAttribute(AssetDescriptor parentAsset,
SchemaAttribute schemaAttributeBean,
AssetSchemaType localSchemaType)
Bean constructor with parent asset and fully constructed local schema type.
|
protected |
AssetSchemaAttribute(SchemaAttribute schemaAttributeBean)
Bean constructor used by subclasses
|
|
AssetSchemaAttribute(SchemaAttribute schemaAttributeBean,
AssetSchemaLink externalSchemaLink)
Bean constructor with fully constructed link to external schema type.
|
|
AssetSchemaAttribute(SchemaAttribute schemaAttributeBean,
AssetSchemaType localSchemaType)
Bean constructor with fully constructed local schema type.
|
| Modifier and Type | Method and Description |
|---|---|
AssetSchemaAttribute |
cloneAssetSchemaAttribute(AssetDescriptor parentAsset)
Returns a clone of this object.
|
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.
|
List<SchemaAttributeRelationship> |
getAttributeRelationships()
Return any relationships to other schema attributes.
|
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.
|
AssetSchemaLink |
getExternalSchemaLink()
Return the SchemaType that relates to the type of this attribute.
|
AssetSchemaType |
getLocalSchemaType()
Return the SchemaType that relates to the type of this attribute.
|
protected SchemaAttribute |
getSchemaAttributeBean()
Return the bean with all of the properties.
|
String |
toString()
Standard toString method.
|
getAdditionalProperties, getMeanings, getQualifiedName, getReferenceableBean, setBeangetAssetClassifications, getElementHeaderBean, getExtendedProperties, getGUID, getType, getURL, hashCode, setBeangetParentAsset, getParentAssetName, getParentAssetTypeNameprotected SchemaAttribute schemaAttributeBean
protected AssetSchemaType localSchemaType
protected AssetSchemaLink externalSchemaLink
protected AssetSchemaAttribute(SchemaAttribute schemaAttributeBean)
schemaAttributeBean - bean containing all of the propertiespublic AssetSchemaAttribute(SchemaAttribute schemaAttributeBean, AssetSchemaType localSchemaType)
schemaAttributeBean - bean containing all of the propertieslocalSchemaType - type for this schema attributepublic AssetSchemaAttribute(SchemaAttribute schemaAttributeBean, AssetSchemaLink externalSchemaLink)
schemaAttributeBean - bean containing all of the propertiesexternalSchemaLink - indirect link to the type for this schema attributeprotected AssetSchemaAttribute(AssetDescriptor parentAsset, SchemaAttribute schemaAttributeBean)
parentAsset - description of the asset that this schema attribute is attached to.schemaAttributeBean - bean containing all of the propertiespublic AssetSchemaAttribute(AssetDescriptor parentAsset, SchemaAttribute schemaAttributeBean, AssetSchemaType localSchemaType)
parentAsset - description of the asset that this schema attribute is attached to.schemaAttributeBean - bean containing all of the propertieslocalSchemaType - type for this schema attributepublic AssetSchemaAttribute(AssetDescriptor parentAsset, SchemaAttribute schemaAttributeBean, AssetSchemaLink externalSchemaLink)
parentAsset - description of the asset that this schema attribute is attached to.schemaAttributeBean - bean containing all of the propertiesexternalSchemaLink - indirect link to the 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.public AssetSchemaAttribute cloneAssetSchemaAttribute(AssetDescriptor parentAsset)
parentAsset - description of the asset that this schema element is attached to.protected SchemaAttribute getSchemaAttributeBean()
public String getAttributeName()
public int getElementPosition()
public String getCardinality()
public String getDefaultValueOverride()
public AssetSchemaType getLocalSchemaType()
public AssetSchemaLink getExternalSchemaLink()
public List<SchemaAttributeRelationship> getAttributeRelationships()
public String toString()
toString in class AssetReferenceablepublic boolean equals(Object objectToCompare)
equals in class AssetReferenceableobjectToCompare - supplied objectCopyright © 2018–2020 ODPi. All rights reserved.