Class AssetSimpleSchemaType
- 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.AssetSimpleSchemaType
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AssetEnumSchemaType,AssetPrimitiveSchemaType
public class AssetSimpleSchemaType extends AssetSchemaType
AssetSimpleSchemaType describes a schema element that has a primitive type. This class stores which type of primitive type it is an a default value if supplied.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SimpleSchemaTypesimpleSchemaTypeBean-
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 protectedAssetSimpleSchemaType(AssetDescriptor parentAsset)Constructor used by the subclassesAssetSimpleSchemaType(AssetDescriptor parentAsset, AssetSimpleSchemaType 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.AssetSimpleSchemaType(AssetDescriptor parentAsset, SimpleSchemaType simpleSchemaTypeBean)Bean constructor with parent assetAssetSimpleSchemaType(SimpleSchemaType simpleSchemaTypeBean)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.StringgetDefaultValue()Return the default value for the element.protected SchemaTypegetSchemaTypeBean()Return this schema element bean.protected SimpleSchemaTypegetSimpleSchemaTypeBean()Return the bean with all of the properties.inthashCode()Hash of propertiesprotected voidsetBean(SimpleSchemaType 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
-
simpleSchemaTypeBean
protected SimpleSchemaType simpleSchemaTypeBean
-
-
Constructor Detail
-
AssetSimpleSchemaType
protected AssetSimpleSchemaType(AssetDescriptor parentAsset)
Constructor used by the subclasses- Parameters:
parentAsset- descriptor of asset that this property relates to.
-
AssetSimpleSchemaType
public AssetSimpleSchemaType(SimpleSchemaType simpleSchemaTypeBean)
Bean constructor- Parameters:
simpleSchemaTypeBean- bean containing the schema element properties
-
AssetSimpleSchemaType
public AssetSimpleSchemaType(AssetDescriptor parentAsset, SimpleSchemaType simpleSchemaTypeBean)
Bean constructor with parent asset- Parameters:
parentAsset- descriptor for parent assetsimpleSchemaTypeBean- bean containing the schema element properties
-
AssetSimpleSchemaType
public AssetSimpleSchemaType(AssetDescriptor parentAsset, AssetSimpleSchemaType 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:
parentAsset- description of the asset that this schema element is attached to.template- template object to copy.
-
-
Method Detail
-
getSimpleSchemaTypeBean
protected SimpleSchemaType getSimpleSchemaTypeBean()
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
-
getDefaultValue
public String getDefaultValue()
Return the default value for the element. Null means no default value set up.- Returns:
- String containing default 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(SimpleSchemaType 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
-
-