public class SchemaAttributeProperties extends SchemaElementProperties
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
aliases |
protected boolean |
allowsDuplicateValues |
protected String |
attributeName |
protected List<SchemaAttributeRelationship> |
attributeRelationships |
protected SchemaType |
attributeType |
protected String |
defaultValueOverride |
protected int |
elementPosition |
protected SchemaLink |
externalAttributeType |
protected boolean |
isNullable |
protected int |
length |
protected int |
maxCardinality |
protected int |
minCardinality |
protected int |
minimumLength |
protected String |
nativeJavaClass |
protected boolean |
orderedValues |
protected int |
significantDigits |
protected DataItemSortOrder |
sortOrder |
additionalProperties, classifications, extendedProperties, meanings, qualifiedName, typeName| Constructor and Description |
|---|
SchemaAttributeProperties()
Default constructor
|
SchemaAttributeProperties(SchemaAttributeProperties template)
Copy/clone constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SchemaAttribute |
cloneProperties(SchemaAttribute objectToFill)
Copy/clone operator.
|
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.
|
String |
getAttributeName()
Return the name of this schema attribute.
|
List<SchemaAttributeRelationship> |
getAttributeRelationships()
Return any relationships to other schema attributes.
|
SchemaType |
getAttributeType()
Return the SchemaType that relates to the type of this 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.
|
SchemaLink |
getExternalAttributeType()
Set up optional link to another attribute.
|
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.
|
int |
getSignificantDigits()
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.
|
boolean |
isAllowsDuplicateValues()
Return whether the same value can be used by more than one instance of this attribute.
|
boolean |
isNullable()
Return whether the field is nullable or not.
|
boolean |
isOrderedValues()
Return whether the attribute instances are arranged in an order.
|
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)
Set up the name of this schema attribute.
|
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 |
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 |
setExternalAttributeType(SchemaLink externalAttributeType)
Set up optional links to another attribute.
|
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 |
setNullable(boolean nullable)
Set up whether the field is nullable or not.
|
void |
setOrderedValues(boolean orderedValues)
Set up whether the attribute instances are arranged in an order.
|
void |
setSignificantDigits(int significantDigits)
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.
|
getDescription, getDisplayName, hashCode, isDeprecated, setDeprecated, setDescription, setDisplayNamegetAdditionalProperties, getClassifications, getExtendedProperties, getMeanings, getQualifiedName, getTypeName, setAdditionalProperties, setClassifications, setExtendedProperties, setMeanings, setQualifiedName, setTypeNameprotected String attributeName
protected int elementPosition
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 significantDigits
protected boolean isNullable
protected SchemaType attributeType
protected SchemaLink externalAttributeType
protected List<SchemaAttributeRelationship> attributeRelationships
protected String nativeJavaClass
public SchemaAttributeProperties()
public SchemaAttributeProperties(SchemaAttributeProperties template)
template - template schema attribute to copy.public SchemaAttribute cloneProperties(SchemaAttribute objectToFill)
objectToFill - schema attribute objectpublic String getAttributeName()
public void setAttributeName(String attributeName)
attributeName - String attribute namepublic int getElementPosition()
public void setElementPosition(int elementPosition)
elementPosition - int position in schema - 0 means firstpublic int getMinCardinality()
public void setMinCardinality(int minCardinality)
minCardinality - intpublic int getMaxCardinality()
public void setMaxCardinality(int maxCardinality)
maxCardinality - int (-1 means infinite)public boolean isAllowsDuplicateValues()
public void setAllowsDuplicateValues(boolean allowsDuplicateValues)
allowsDuplicateValues - boolean flagpublic boolean isOrderedValues()
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 getSignificantDigits()
public void setSignificantDigits(int significantDigits)
significantDigits - intpublic boolean isNullable()
public void setNullable(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 SchemaLink getExternalAttributeType()
public void setExternalAttributeType(SchemaLink externalAttributeType)
externalAttributeType - SchemaLink objectpublic 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 SchemaElementPropertiespublic boolean equals(Object objectToCompare)
equals in class SchemaElementPropertiesobjectToCompare - supplied objectCopyright © 2018–2020 ODPi. All rights reserved.