Class SimpleSchemaTypeProperties
- 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.SimpleSchemaTypeProperties
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EnumSchemaTypeProperties,ExternalSchemaTypeProperties,PrimitiveSchemaTypeProperties
public class SimpleSchemaTypeProperties extends SchemaTypeProperties
SimpleSchemaTypeProperties describes the properties of type that has a single value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleSchemaTypeProperties()Default constructor used by subclassesSimpleSchemaTypeProperties(SimpleSchemaTypeProperties 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()Return hash code for this objectvoidsetDataType(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.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, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
-
-
-
Constructor Detail
-
SimpleSchemaTypeProperties
public SimpleSchemaTypeProperties()
Default constructor used by subclasses
-
SimpleSchemaTypeProperties
public SimpleSchemaTypeProperties(SimpleSchemaTypeProperties 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 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:
equalsin classSchemaTypeProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classSchemaTypeProperties- Returns:
- int hash code
-
-