Class AssetPrimitiveSchemaType
- 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
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPrimitiveSchemaType
-
- All Implemented Interfaces:
Serializable
public class AssetPrimitiveSchemaType extends AssetSimpleSchemaType
PrimitiveSchemaType 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 PrimitiveSchemaTypeprimitiveSchemaTypeBean-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetSimpleSchemaType
simpleSchemaTypeBean
-
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 protectedAssetPrimitiveSchemaType(AssetDescriptor parentAsset)Constructor used by the subclassesAssetPrimitiveSchemaType(AssetDescriptor parentAsset, AssetPrimitiveSchemaType 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.AssetPrimitiveSchemaType(AssetDescriptor parentAsset, PrimitiveSchemaType primitiveSchemaTypeBean)Bean constructor with parent assetAssetPrimitiveSchemaType(PrimitiveSchemaType primitiveSchemaTypeBean)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.protected PrimitiveSchemaTypegetPrimitiveSchemaTypeBean()Return the bean with all of the properties.protected SchemaTypegetSchemaTypeBean()Return this schema element bean.inthashCode()Hash of propertiesprotected voidsetBean(PrimitiveSchemaType 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.AssetSimpleSchemaType
getDataType, getDefaultValue, getSimpleSchemaTypeBean, setBean
-
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
-
primitiveSchemaTypeBean
protected PrimitiveSchemaType primitiveSchemaTypeBean
-
-
Constructor Detail
-
AssetPrimitiveSchemaType
protected AssetPrimitiveSchemaType(AssetDescriptor parentAsset)
Constructor used by the subclasses- Parameters:
parentAsset- descriptor of asset that this property relates to.
-
AssetPrimitiveSchemaType
public AssetPrimitiveSchemaType(PrimitiveSchemaType primitiveSchemaTypeBean)
Bean constructor- Parameters:
primitiveSchemaTypeBean- bean containing the schema element properties
-
AssetPrimitiveSchemaType
public AssetPrimitiveSchemaType(AssetDescriptor parentAsset, PrimitiveSchemaType primitiveSchemaTypeBean)
Bean constructor with parent asset- Parameters:
parentAsset- descriptor for parent assetprimitiveSchemaTypeBean- bean containing the schema element properties
-
AssetPrimitiveSchemaType
public AssetPrimitiveSchemaType(AssetDescriptor parentAsset, AssetPrimitiveSchemaType 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
-
getPrimitiveSchemaTypeBean
protected PrimitiveSchemaType getPrimitiveSchemaTypeBean()
Return the bean with all of the properties.- Returns:
- primitive element bean
-
cloneAssetSchemaType
protected AssetSchemaType cloneAssetSchemaType(AssetDescriptor parentAsset)
Return a clone of this schema element. This method is needed because AssetSchemaType is abstract.- Overrides:
cloneAssetSchemaTypein classAssetSimpleSchemaType- 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 classAssetSimpleSchemaType- Returns:
- An instance of the appropriate subclass of SchemaElement bean
-
setBean
protected void setBean(PrimitiveSchemaType 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 classAssetSimpleSchemaType- 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 classAssetSimpleSchemaType- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classAssetSimpleSchemaType- Returns:
- int
-
-