public class SchemaAttribute extends SchemaElement
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
aliases |
protected boolean |
allowsDuplicateValues |
protected List<SchemaAttributeRelationship> |
attributeRelationships |
protected SchemaType |
attributeType |
protected String |
cardinality |
protected String |
defaultValueOverride |
protected int |
elementPosition |
protected boolean |
isNullable |
protected int |
length |
protected int |
maxCardinality |
protected int |
minCardinality |
protected int |
minimumLength |
protected String |
nativeJavaClass |
protected boolean |
orderedValues |
protected int |
precision |
protected DataItemSortOrder |
sortOrder |
anchorGUID, description, displayName, expression, isCalculatedValue, isDeprecatedadditionalProperties, confidenceGovernanceClassification, confidentialityGovernanceClassification, criticalityGovernanceClassification, latestChange, latestChangeDetails, meanings, qualifiedName, retentionGovernanceClassification, searchKeywords, securityTagsclassifications, extendedProperties, guid, type, urlCURRENT_AUDIT_HEADER_VERSION| Constructor and Description |
|---|
SchemaAttribute()
Default constructor
|
SchemaAttribute(SchemaAttribute template)
Copy/clone constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SchemaElement |
cloneSchemaElement()
Return a clone of this schema element.
|
boolean |
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
|
List<String> |
getAliases()
Return a list of alternative names for the attribute.
|
boolean |
getAllowsDuplicateValues()
Return whether the same value can be used by more than one instance of this attribute.
|
String |
getAttributeName()
Deprecated.
|
List<SchemaAttributeRelationship> |
getAttributeRelationships()
Return any relationships to other schema attributes.
|
SchemaType |
getAttributeType()
Return the SchemaType that relates to the type of this attribute.
|
String |
getCardinality()
Return the display version of 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.
|
boolean |
getIsNullable()
Return whether the field is nullable or not.
|
int |
getLength()
Return the length of the data field.
|
int |
getMaxCardinality()
Return the maximum number of instances allowed for this attribute.
|
int |
getMinCardinality()
Return this minimum number of instances allowed for this attribute.
|
int |
getMinimumLength()
Return the minimum length of the data.
|
String |
getNativeJavaClass()
Return the name of the Java class to use to represent this type.
|
boolean |
getOrderedValues()
Return whether the attribute instances are arranged in an order.
|
int |
getPrecision()
Return the number of significant digits to the right of decimal point.
|
DataItemSortOrder |
getSortOrder()
Return the order that the attribute instances are arranged in - if any.
|
int |
hashCode()
Return a number that represents the contents of this object.
|
void |
setAliases(List<String> aliases)
Set up a list of alternative names for the attribute.
|
void |
setAllowsDuplicateValues(boolean allowsDuplicateValues)
Set up whether the same value can be used by more than one instance of this attribute.
|
void |
setAttributeName(String attributeName)
Deprecated.
|
void |
setAttributeRelationships(List<SchemaAttributeRelationship> attributeRelationships)
Set up any relationships to other schema attributes.
|
void |
setAttributeType(SchemaType attributeType)
Set up the SchemaType that relates to the type of this attribute.
|
void |
setCardinality(String cardinality)
Set up the display version of the cardinality defined for this schema attribute.
|
void |
setCategory(SchemaAttributeCategory category)
Set up the category of the schema attribute.
|
void |
setDefaultValueOverride(String defaultValueOverride)
Set up 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).
|
void |
setElementPosition(int elementPosition)
Set up the position of this schema attribute in its parent schema.
|
void |
setIsNullable(boolean nullable)
Set up whether the field is nullable or not.
|
void |
setLength(int length)
Set up the length of the data field.
|
void |
setMaxCardinality(int maxCardinality)
Set up the maximum number of instances allowed for this attribute.
|
void |
setMinCardinality(int minCardinality)
Set up the minimum number of instances allowed for this attribute.
|
void |
setMinimumLength(int minimumLength)
Set up the minimum length of the data.
|
void |
setNativeJavaClass(String nativeJavaClass)
Set up the name of the Java class to use to represent this type.
|
void |
setOrderedValues(boolean orderedValues)
Set up whether the attribute instances are arranged in an order.
|
void |
setPrecision(int precision)
Set up the number of significant digits to the right of decimal point.
|
void |
setSortOrder(DataItemSortOrder sortOrder)
Set up the order that the attribute instances are arranged in - if any.
|
String |
toString()
Standard toString method.
|
getAnchorGUID, getDescription, getDisplayName, getExpression, getIsDeprecated, isCalculatedValue, setAnchorGUID, setCalculatedValue, setDescription, setDisplayName, setExpression, setIsDeprecatedgetAdditionalProperties, getConfidenceGovernanceClassification, getConfidentialityGovernanceClassification, getCriticalityGovernanceClassification, getLatestChange, getLatestChangeDetails, getMeanings, getQualifiedName, getRetentionGovernanceClassification, getSearchKeywords, getSecurityTags, setAdditionalProperties, setConfidenceGovernanceClassification, setConfidentialityGovernanceClassification, setCriticalityGovernanceClassification, setLatestChange, setLatestChangeDetails, setMeanings, setQualifiedName, setRetentionGovernanceClassification, setSearchKeywords, setSecurityTagsgetClassifications, getExtendedProperties, getGUID, getType, getURL, setClassifications, setExtendedProperties, setGUID, setType, setURLgetHeaderVersion, setHeaderVersionprotected int elementPosition
protected String cardinality
protected int minCardinality
protected int maxCardinality
protected boolean allowsDuplicateValues
protected boolean orderedValues
protected String defaultValueOverride
protected DataItemSortOrder sortOrder
protected int minimumLength
protected int length
protected int precision
protected boolean isNullable
protected SchemaType attributeType
protected List<SchemaAttributeRelationship> attributeRelationships
protected String nativeJavaClass
public SchemaAttribute()
public SchemaAttribute(SchemaAttribute template)
template - template schema attribute to copy.public SchemaElement cloneSchemaElement()
cloneSchemaElement in class SchemaElement@Deprecated public String getAttributeName()
@Deprecated public void setAttributeName(String attributeName)
attributeName - String attribute namepublic int getElementPosition()
public void setElementPosition(int elementPosition)
elementPosition - int position in schema - 0 means firstpublic SchemaAttributeCategory getCategory()
public void setCategory(SchemaAttributeCategory category)
category - enum SchemaAttributeCategorypublic String getCardinality()
public void setCardinality(String cardinality)
cardinality - String cardinality defined for this schema attribute.public int getMinCardinality()
public void setMinCardinality(int minCardinality)
minCardinality - intpublic int getMaxCardinality()
public void setMaxCardinality(int maxCardinality)
maxCardinality - int (-1 means infinite)public boolean getAllowsDuplicateValues()
public void setAllowsDuplicateValues(boolean allowsDuplicateValues)
allowsDuplicateValues - boolean flagpublic boolean getOrderedValues()
public void setOrderedValues(boolean orderedValues)
orderedValues - boolean flagpublic DataItemSortOrder getSortOrder()
public void setSortOrder(DataItemSortOrder sortOrder)
sortOrder - DataItemSortOrder enumpublic int getMinimumLength()
public void setMinimumLength(int minimumLength)
minimumLength - intpublic int getLength()
public void setLength(int length)
length - intpublic int getPrecision()
public void setPrecision(int precision)
precision - intpublic boolean getIsNullable()
public void setIsNullable(boolean nullable)
nullable - booleanpublic String getDefaultValueOverride()
public void setDefaultValueOverride(String defaultValueOverride)
defaultValueOverride - String default value overridepublic SchemaType getAttributeType()
public void setAttributeType(SchemaType attributeType)
attributeType - SchemaTypepublic List<SchemaAttributeRelationship> getAttributeRelationships()
public void setAttributeRelationships(List<SchemaAttributeRelationship> attributeRelationships)
attributeRelationships - list of attribute relationshipspublic String getNativeJavaClass()
public void setNativeJavaClass(String nativeJavaClass)
nativeJavaClass - fully qualified Java class namepublic List<String> getAliases()
public void setAliases(List<String> aliases)
aliases - list of namespublic String toString()
toString in class SchemaElementpublic boolean equals(Object objectToCompare)
equals in class SchemaElementobjectToCompare - supplied objectpublic int hashCode()
hashCode in class SchemaElementCopyright © 2018–2020 ODPi. All rights reserved.