Class LiteralSchemaTypeProperties
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.LiteralSchemaTypeProperties
- Direct Known Subclasses:
LiteralSchemaTypeRequestBody
LiteralSchemaTypeProperties carries the specialized parameters for creating or updating literal schema types.
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/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. -
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 fixed value for the element.int
hashCode()
Create a hash code for this element type.void
setDataType
(String dataType) Set up the data type for this element.void
setFixedValue
(String fixedValue) Set up the fixed 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
-
LiteralSchemaTypeProperties
public LiteralSchemaTypeProperties()Default constructor -
LiteralSchemaTypeProperties
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.- 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
-
getFixedValue
Return the fixed value for the element. Null means fixed value is null.- Returns:
- String containing fixed value
-
setFixedValue
Set up the fixed value for the element. Null means fixed value is null.- Parameters:
fixedValue
- String containing fixed 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()Create a hash code for this element type.- Overrides:
hashCode
in classSchemaTypeProperties
- Returns:
- int hash code
-