Class AssetEnumSchemaType
- 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.AssetEnumSchemaType
-
- All Implemented Interfaces:
Serializable
public class AssetEnumSchemaType extends AssetSimpleSchemaType
EnumSchemaType 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 EnumSchemaTypeenumSchemaTypeBean-
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 protectedAssetEnumSchemaType(AssetDescriptor parentAsset)Constructor used by the subclassesAssetEnumSchemaType(AssetDescriptor parentAsset, AssetEnumSchemaType 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.AssetEnumSchemaType(AssetDescriptor parentAsset, EnumSchemaType enumSchemaTypeBean)Bean constructor with parent assetAssetEnumSchemaType(EnumSchemaType enumSchemaTypeBean)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 EnumSchemaTypegetEnumSchemaTypeBean()Return the bean with all of the properties.protected SchemaTypegetSchemaTypeBean()Return this schema element bean.inthashCode()Hash of propertiesprotected voidsetBean(EnumSchemaType 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
-
enumSchemaTypeBean
protected EnumSchemaType enumSchemaTypeBean
-
-
Constructor Detail
-
AssetEnumSchemaType
protected AssetEnumSchemaType(AssetDescriptor parentAsset)
Constructor used by the subclasses- Parameters:
parentAsset- descriptor of asset that this property relates to.
-
AssetEnumSchemaType
public AssetEnumSchemaType(EnumSchemaType enumSchemaTypeBean)
Bean constructor- Parameters:
enumSchemaTypeBean- bean containing the schema element properties
-
AssetEnumSchemaType
public AssetEnumSchemaType(AssetDescriptor parentAsset, EnumSchemaType enumSchemaTypeBean)
Bean constructor with parent asset- Parameters:
parentAsset- descriptor for parent assetenumSchemaTypeBean- bean containing the schema element properties
-
AssetEnumSchemaType
public AssetEnumSchemaType(AssetDescriptor parentAsset, AssetEnumSchemaType 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
-
getEnumSchemaTypeBean
protected EnumSchemaType getEnumSchemaTypeBean()
Return the bean with all of the properties.- Returns:
- enum 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(EnumSchemaType 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
-
-