Class AssetLiteralSchemaType
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetElementHeader
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetReferenceable
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetSchemaElement
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetSchemaType
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetLiteralSchemaType
-
- All Implemented Interfaces:
Serializable
public class AssetLiteralSchemaType extends AssetSchemaType
AssetLiteralSchemaType describes a schema element that has a primitive type and a fixed value. This class stores which type of primitive type it is and the fixed value.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected LiteralSchemaTypeliteralSchemaTypeBean-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetSchemaElement
schemaElementBean
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetReferenceable
referenceableBean
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
parentAsset
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAssetLiteralSchemaType(AssetDescriptor parentAsset)Constructor used by the subclassesAssetLiteralSchemaType(AssetDescriptor parentAsset, AssetLiteralSchemaType templateSchemaElement)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.AssetLiteralSchemaType(AssetDescriptor parentAsset, LiteralSchemaType literalSchemaTypeBean)Bean constructor with parent assetAssetLiteralSchemaType(LiteralSchemaType literalSchemaTypeBean)Bean constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AssetSchemaTypecloneAssetSchemaType(AssetDescriptor parentAsset)Return a clone of this schema element.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.StringgetFixedValue()Return the fixed value for the element.protected LiteralSchemaTypegetLiteralSchemaTypeBean()Return the bean with all of the properties.protected SchemaTypegetSchemaTypeBean()Return this schema element bean.inthashCode()Hash of propertiesprotected voidsetBean(LiteralSchemaType bean)Set up the bean that contains the properties of the schema.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetSchemaType
createAssetSchemaType, getAuthor, getEncodingStandard, getFormula, getQueries, getUsage, getVersionNumber, setBean
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetSchemaElement
getDescription, getDisplayName, getSchemaElementBean, isDeprecated, setBean
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetReferenceable
getAdditionalProperties, getMeanings, getQualifiedName, getReferenceableBean, getSecurityTags, setBean
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetElementHeader
getAssetClassifications, getElementHeaderBean, getExtendedProperties, getGUID, getType, getURL, setBean
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
getParentAsset, getParentAssetName, getParentAssetTypeName
-
-
-
-
Field Detail
-
literalSchemaTypeBean
protected LiteralSchemaType literalSchemaTypeBean
-
-
Constructor Detail
-
AssetLiteralSchemaType
protected AssetLiteralSchemaType(AssetDescriptor parentAsset)
Constructor used by the subclasses- Parameters:
parentAsset- descriptor of asset that this property relates to.
-
AssetLiteralSchemaType
public AssetLiteralSchemaType(LiteralSchemaType literalSchemaTypeBean)
Bean constructor- Parameters:
literalSchemaTypeBean- bean containing the schema element properties
-
AssetLiteralSchemaType
public AssetLiteralSchemaType(AssetDescriptor parentAsset, LiteralSchemaType literalSchemaTypeBean)
Bean constructor with parent asset- Parameters:
parentAsset- descriptor for parent assetliteralSchemaTypeBean- bean containing the schema element properties
-
AssetLiteralSchemaType
public AssetLiteralSchemaType(AssetDescriptor parentAsset, AssetLiteralSchemaType templateSchemaElement)
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:
parentAsset- description of the asset that this schema element is attached to.templateSchemaElement- template object to copy.
-
-
Method Detail
-
getLiteralSchemaTypeBean
protected LiteralSchemaType getLiteralSchemaTypeBean()
Return the bean with all of the properties.- Returns:
- primitive element bean
-
getDataType
public String getDataType()
Return the data type for this element. Null means unknown data type.- Returns:
- String DataType
-
getFixedValue
public String getFixedValue()
Return the fixed value for the element. Null means this literal represents null.- Returns:
- String containing fixed value
-
cloneAssetSchemaType
protected AssetSchemaType cloneAssetSchemaType(AssetDescriptor parentAsset)
Return a clone of this schema element. This method is needed because AssetSchemaType is abstract.- Specified by:
cloneAssetSchemaTypein classAssetSchemaType- Parameters:
parentAsset- description of the asset that this schema element is attached to.- Returns:
- An instance of the this object's subclass
-
getSchemaTypeBean
protected SchemaType getSchemaTypeBean()
Return this schema element bean. This method is needed because SchemaElement is abstract.- Overrides:
getSchemaTypeBeanin classAssetSchemaType- Returns:
- An instance of the appropriate subclass of SchemaElement bean
-
setBean
protected void setBean(LiteralSchemaType bean)
Set up the bean that contains the properties of the schema.- Parameters:
bean- bean containing the schema properties
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classAssetSchemaType- 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 classAssetSchemaType- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classAssetSchemaType- Returns:
- int
-
-