public class SchemaAttribute extends SchemaElement
| Modifier and Type | Field and Description |
|---|---|
protected String |
attributeName |
protected List<SchemaAttributeRelationship> |
attributeRelationships |
protected SchemaType |
attributeType |
protected String |
cardinality |
protected String |
defaultValueOverride |
protected int |
elementPosition |
protected SchemaLink |
externalAttributeType |
additionalProperties, meanings, qualifiedNameclassifications, extendedProperties, guid, type, url| 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.
|
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 |
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.
|
SchemaLink |
getExternalAttributeType()
Set up optional link to another 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 SchemaElement that relates to the type of this attribute.
|
void |
setCardinality(String cardinality)
Set up the cardinality defined for this 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 |
setExternalAttributeType(SchemaLink externalAttributeType)
Set up optional links to another attribute.
|
String |
toString()
Standard toString method.
|
getAdditionalProperties, getMeanings, getQualifiedName, hashCode, setAdditionalProperties, setMeanings, setQualifiedNamegetClassifications, getExtendedProperties, getGUID, getType, getURL, setClassifications, setExtendedProperties, setGUID, setType, setURLprotected String attributeName
protected int elementPosition
protected String cardinality
protected String defaultValueOverride
protected SchemaType attributeType
protected SchemaLink externalAttributeType
protected List<SchemaAttributeRelationship> attributeRelationships
public SchemaAttribute()
public SchemaAttribute(SchemaAttribute template)
template - template schema attribute to copy.public SchemaElement cloneSchemaElement()
cloneSchemaElement in class SchemaElementpublic 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 String getCardinality()
public void setCardinality(String cardinality)
cardinality - String cardinality defined for this schema attribute.public String getDefaultValueOverride()
public void setDefaultValueOverride(String defaultValueOverride)
defaultValueOverride - String default value overridepublic SchemaType getAttributeType()
public void setAttributeType(SchemaType attributeType)
attributeType - SchemaElementpublic 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 toString()
toString in class SchemaElementpublic boolean equals(Object objectToCompare)
equals in class ReferenceableobjectToCompare - supplied objectCopyright © 2018–2020 ODPi. All rights reserved.