public class SchemaAttributeProperties extends SchemaProperties
| Constructor and Description |
|---|
SchemaAttributeProperties()
Default constructor
|
SchemaAttributeProperties(SchemaAttributeProperties template)
Copy/clone 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.
|
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 |
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.
|
SchemaTypeProperties |
getSchemaType()
Set up SchemaType for this schema attribute.
|
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 |
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 |
setSchemaType(SchemaTypeProperties schemaType)
Set up SchemaType for this schema attribute.
|
void |
setSortOrder(DataItemSortOrder sortOrder)
Set up the order that the attribute instances are arranged in - if any.
|
String |
toString()
Standard toString method.
|
getIsDeprecated, getTechnicalDescription, getTechnicalName, setIsDeprecated, setTechnicalDescription, setTechnicalNamegetAbbreviation, getDescription, getDisplayName, getSummary, getUsage, setAbbreviation, setDescription, setDisplayName, setSummary, setUsagegetAdditionalProperties, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setExtendedProperties, setQualifiedName, setTypeName, setVendorPropertiespublic SchemaAttributeProperties()
public SchemaAttributeProperties(SchemaAttributeProperties template)
template - template schema attribute to copy.public 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 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 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 SchemaTypeProperties getSchemaType()
public void setSchemaType(SchemaTypeProperties schemaType)
schemaType - schema type propertiespublic String toString()
toString in class SchemaPropertiespublic boolean equals(Object objectToCompare)
equals in class SchemaPropertiesobjectToCompare - supplied objectpublic int hashCode()
hashCode in class SchemaPropertiesCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.