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 of type SchemaType. SchemaType has many
| Modifier and Type | Field and Description |
|---|---|
protected SchemaAttribute |
schemaAttributeBean |
referenceableBeanparentAsset| Modifier | Constructor and Description |
|---|---|
|
AssetSchemaAttribute(AssetDescriptor parentAsset,
AssetSchemaAttribute template)
Copy/clone constructor.
|
|
AssetSchemaAttribute(AssetDescriptor parentAsset,
SchemaAttribute schemaAttributeBean)
Bean constructor with parent asset
|
protected |
AssetSchemaAttribute(SchemaAttribute schemaAttributeBean)
Bean constructor used by subclasses
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsDuplicateValues()
Return whether the same value can be used by more than one instance of this attribute.
|
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<AssetSchemaAttributeRelationship> |
getAttributeRelationships()
Return any relationships to other schema attributes.
|
AssetSchemaType |
getAttributeType()
Return the SchemaType that relates to the type of this attribute.
|
String |
getCardinality()
Return the cardinality defined for this schema attribute.
|
SchemaAttributeCategory |
getCategory()
Return the category of the 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.
|
AssetSchemaType |
getLocalSchemaType()
Deprecated.
|
int |
getMaxCardinality()
Return the maximum number of instances allowed for this attribute.
|
int |
getMinCardinality()
Return this minimum number of instances allowed for this attribute.
|
protected SchemaAttribute |
getSchemaAttributeBean()
Return the bean with all of the properties.
|
DataItemSortOrder |
getSortOrder()
Return the order that the attribute instances are arranged in - if any.
|
int |
hashCode()
Hash of properties
|
boolean |
hasOrderedValues()
Return whether the attribute instances are arranged in an order.
|
String |
toString()
Standard toString method.
|
getAdditionalProperties, getMeanings, getQualifiedName, getReferenceableBean, getSecurityTags, setBeangetAssetClassifications, getElementHeaderBean, getExtendedProperties, getGUID, getType, getURL, setBeangetParentAsset, getParentAssetName, getParentAssetTypeNameprotected SchemaAttribute schemaAttributeBean
protected AssetSchemaAttribute(SchemaAttribute schemaAttributeBean)
schemaAttributeBean - bean containing all of the propertiespublic 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, 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 SchemaAttributeCategory getCategory()
public String getCardinality()
public int getMinCardinality()
public int getMaxCardinality()
public boolean allowsDuplicateValues()
public boolean hasOrderedValues()
public DataItemSortOrder getSortOrder()
public String getDefaultValueOverride()
@Deprecated public AssetSchemaType getLocalSchemaType()
public AssetSchemaType getAttributeType()
public List<AssetSchemaAttributeRelationship> getAttributeRelationships()
public String toString()
toString in class AssetReferenceablepublic boolean equals(Object objectToCompare)
equals in class AssetReferenceableobjectToCompare - supplied objectpublic int hashCode()
hashCode in class AssetReferenceableCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.