Class SimpleSchemaType
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaElement
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaType
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.SimpleSchemaType
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EnumSchemaType,PrimitiveSchemaType
public class SimpleSchemaType extends SchemaType
SimpleSchemaType describes a schema element that has a primitive or enum type.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdataTypeprotected StringdefaultValue-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaType
author, encodingStandard, formula, namespace, queries, usage, versionNumber
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaElement
anchorGUID, description, displayName, expression, isCalculatedValue, isDeprecated
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
additionalProperties, confidenceGovernanceClassification, confidentialityGovernanceClassification, criticalityGovernanceClassification, latestChange, latestChangeDetails, meanings, qualifiedName, retentionGovernanceClassification, searchKeywords, securityTags
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
classifications, extendedProperties, guid, type, url
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description SimpleSchemaType()Default constructor used by subclassesSimpleSchemaType(SimpleSchemaType template)Copy/clone Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.StringgetDataType()Return the data type for this element.StringgetDefaultValue()Return the default value for the element.inthashCode()Hash of propertiesvoidsetDataType(String dataType)Set up the data type for this element.voidsetDefaultValue(String defaultValue)Set up the default value for the element.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaType
cloneSchemaElement, cloneSchemaType, getAuthor, getEncodingStandard, getFormula, getNamespace, getQueries, getUsage, getVersionNumber, setAuthor, setEncodingStandard, setFormula, setNamespace, setQueries, setUsage, setVersionNumber
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaElement
getAnchorGUID, getDescription, getDisplayName, getExpression, getIsDeprecated, isCalculatedValue, setAnchorGUID, setCalculatedValue, setDescription, setDisplayName, setExpression, setIsDeprecated
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
getAdditionalProperties, getConfidenceGovernanceClassification, getConfidentialityGovernanceClassification, getCriticalityGovernanceClassification, getLatestChange, getLatestChangeDetails, getMeanings, getQualifiedName, getRetentionGovernanceClassification, getSearchKeywords, getSecurityTags, setAdditionalProperties, setConfidenceGovernanceClassification, setConfidentialityGovernanceClassification, setCriticalityGovernanceClassification, setLatestChange, setLatestChangeDetails, setMeanings, setQualifiedName, setRetentionGovernanceClassification, setSearchKeywords, setSecurityTags
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
getClassifications, getExtendedProperties, getGUID, getType, getURL, setClassifications, setExtendedProperties, setGUID, setType, setURL
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
-
-
-
Constructor Detail
-
SimpleSchemaType
public SimpleSchemaType()
Default constructor used by subclasses
-
SimpleSchemaType
public SimpleSchemaType(SimpleSchemaType template)
Copy/clone Constructor.- Parameters:
template- template object to copy.
-
-
Method Detail
-
getDataType
public String getDataType()
Return the data type for this element. Null means unknown data type.- Returns:
- String data type name
-
setDataType
public void setDataType(String dataType)
Set up the data type for this element. Null means unknown data type.- Parameters:
dataType- data type name
-
getDefaultValue
public String getDefaultValue()
Return the default value for the element. Null means no default value set up.- Returns:
- String containing default value
-
setDefaultValue
public void setDefaultValue(String defaultValue)
Set up the default value for the element. Null means no default value set up.- Parameters:
defaultValue- String containing default value
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classSchemaType- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classSchemaType- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classSchemaType- Returns:
- int
-
-