Class LiteralSchemaTypeProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.datamanager.properties.ReferenceableProperties
-
- org.odpi.openmetadata.accessservices.datamanager.properties.SchemaElementProperties
-
- org.odpi.openmetadata.accessservices.datamanager.properties.SchemaTypeProperties
-
- org.odpi.openmetadata.accessservices.datamanager.properties.LiteralSchemaTypeProperties
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LiteralSchemaTypeRequestBody
public class LiteralSchemaTypeProperties extends SchemaTypeProperties
LiteralSchemaTypeProperties carries the specialized parameters for creating or updating literal schema types.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LiteralSchemaTypeProperties()
Default constructorLiteralSchemaTypeProperties(LiteralSchemaTypeProperties template)
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
getFixedValue()
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.String
toString()
Standard toString method.-
Methods inherited from class org.odpi.openmetadata.accessservices.datamanager.properties.SchemaTypeProperties
getAuthor, getEncodingStandard, getNamespace, getUsage, getVersionNumber, setAuthor, setEncodingStandard, setNamespace, setUsage, setVersionNumber
-
Methods inherited from class org.odpi.openmetadata.accessservices.datamanager.properties.SchemaElementProperties
getDescription, getDisplayName, getIsDeprecated, setDescription, setDisplayName, setIsDeprecated
-
Methods inherited from class org.odpi.openmetadata.accessservices.datamanager.properties.ReferenceableProperties
getAdditionalProperties, getEffectiveFrom, getEffectiveTo, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
-
-
-
Constructor Detail
-
LiteralSchemaTypeProperties
public LiteralSchemaTypeProperties()
Default constructor
-
LiteralSchemaTypeProperties
public LiteralSchemaTypeProperties(LiteralSchemaTypeProperties template)
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 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
-
getFixedValue
public String getFixedValue()
Return the fixed value for the element. Null means fixed value is null.- Returns:
- String containing fixed value
-
setFixedValue
public void setFixedValue(String fixedValue)
Set up the fixed value for the element. Null means fixed value is null.- Parameters:
fixedValue
- String containing fixed value
-
toString
public String toString()
Standard toString method.- Overrides:
toString
in classSchemaTypeProperties
- 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:
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
-
-