public class PrimitiveSchemaElement extends SchemaElement
| Modifier and Type | Field and Description |
|---|---|
protected String |
dataType |
protected String |
defaultValue |
author, encodingStandard, schemaProperties, usage, versionNumberadditionalProperties, qualifiedNameclassifications, guid, type, url| Constructor and Description |
|---|
PrimitiveSchemaElement()
Default constructor used by subclasses
|
PrimitiveSchemaElement(PrimitiveSchemaElement 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.
|
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, getEncodingStandard, getSchemaProperties, getUsage, getVersionNumber, setAuthor, setEncodingStandard, setSchemaProperties, setUsage, setVersionNumbergetAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedNamegetClassifications, getGUID, getType, getURL, hashCode, setClassifications, setGUID, setType, setURLpublic PrimitiveSchemaElement()
public PrimitiveSchemaElement(PrimitiveSchemaElement 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 SchemaElementpublic String toString()
toString in class SchemaElementpublic boolean equals(Object objectToCompare)
equals in class SchemaElementobjectToCompare - supplied objectCopyright © 2018 ODPi. All rights reserved.