Class SimpleSchemaTypeProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaElementProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaTypeProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SimpleSchemaTypeProperties
- Direct Known Subclasses:
EnumSchemaTypeProperties
,PrimitiveSchemaTypeProperties
SimpleSchemaTypeProperties describes the properties of type that has a single value.
-
Constructor Summary
ConstructorDescriptionDefault constructor used by subclassesCopy/clone Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the data type for this element.Return the default value for the element.int
hashCode()
Return hash code for this objectvoid
setDataType
(String dataType) Set up the data type for this element.void
setDefaultValue
(String defaultValue) Set up the default value for the element.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaTypeProperties
getAuthor, getEncodingStandard, getFormula, getFormulaType, getNamespace, getQueries, getUsage, getVersionNumber, setAuthor, setEncodingStandard, setFormula, setFormulaType, setNamespace, setQueries, setUsage, setVersionNumber
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaElementProperties
getDescription, getDisplayName, getIsDeprecated, setDescription, setDisplayName, setIsDeprecated
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
getAdditionalProperties, getQualifiedName, getVendorProperties, setAdditionalProperties, setQualifiedName, setVendorProperties
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, getTypeName, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setTypeName
-
Constructor Details
-
SimpleSchemaTypeProperties
public SimpleSchemaTypeProperties()Default constructor used by subclasses -
SimpleSchemaTypeProperties
Copy/clone Constructor.- Parameters:
template
- template object to copy.
-
-
Method Details
-
getDataType
Return the data type for this element. Null means unknown data type.- Returns:
- String data type name
-
setDataType
Set up the data type for this element. Null means unknown data type.- Parameters:
dataType
- data type name
-
getDefaultValue
Return the default value for the element. Null means no default value set up.- Returns:
- String containing default value
-
setDefaultValue
Set up the default value for the element. Null means no default value set up.- Parameters:
defaultValue
- String containing default value
-
toString
Standard toString method.- Overrides:
toString
in classSchemaTypeProperties
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classSchemaTypeProperties
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classSchemaTypeProperties
- Returns:
- int hash code
-