public class PrimitiveSchemaType extends SchemaType
| Modifier and Type | Field and Description |
|---|---|
protected String |
dataType |
protected String |
defaultValue |
author, displayName, encodingStandard, usage, versionNumberadditionalProperties, meanings, qualifiedNameclassifications, extendedProperties, guid, type, url| Constructor and Description |
|---|
PrimitiveSchemaType()
Default constructor used by subclasses
|
PrimitiveSchemaType(PrimitiveSchemaType templateSchemaElement)
Copy/clone Constructor the parentAsset is passed separately to the template because it is also
likely to be being cloned in the same operation and we want the definitions clone to point to the
asset clone and not the original asset.
|
| Modifier and Type | Method and Description |
|---|---|
SchemaElement |
cloneSchemaElement()
Returns a clone of this object as the abstract SchemaElement class.
|
SchemaType |
cloneSchemaType()
Returns a clone of this object as the abstract SchemaType class.
|
boolean |
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
|
String |
getDataType()
Return the data type for this element.
|
String |
getDefaultValue()
Return the default value for the element.
|
void |
setDataType(String dataType)
Set up the data type for this element.
|
void |
setDefaultValue(String defaultValue)
Set up the default value for the element.
|
String |
toString()
Standard toString method.
|
getAuthor, getDisplayName, getEncodingStandard, getUsage, getVersionNumber, setAuthor, setDisplayName, setEncodingStandard, setUsage, setVersionNumbergetAdditionalProperties, getMeanings, getQualifiedName, hashCode, setAdditionalProperties, setMeanings, setQualifiedNamegetClassifications, getExtendedProperties, getGUID, getType, getURL, setClassifications, setExtendedProperties, setGUID, setType, setURLpublic PrimitiveSchemaType()
public PrimitiveSchemaType(PrimitiveSchemaType templateSchemaElement)
templateSchemaElement - template object to copy.public String getDataType()
public void setDataType(String dataType)
dataType - data type namepublic String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue - String containing default valuepublic SchemaElement cloneSchemaElement()
cloneSchemaElement in class SchemaTypepublic SchemaType cloneSchemaType()
cloneSchemaType in class SchemaTypepublic String toString()
toString in class SchemaTypepublic boolean equals(Object objectToCompare)
equals in class SchemaTypeobjectToCompare - supplied objectCopyright © 2018–2020 ODPi. All rights reserved.