Class AssetSchemaElement
- 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
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AssetSchemaType
public abstract class AssetSchemaElement extends AssetReferenceable
The AssetSchemaElement object provides a base class for the pieces that make up a schema for a data asset. A schema provides information about how the data is structured in the asset.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SchemaElementschemaElementBean-
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 protectedAssetSchemaElement(AssetDescriptor parentAsset)Constructor used by the subclassesAssetSchemaElement(AssetDescriptor parentAsset, AssetSchemaElement 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.AssetSchemaElement(AssetDescriptor parentAsset, SchemaElement schemaElementBean)Bean constructor with parent.AssetSchemaElement(SchemaElement schemaElementBean)Bean 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.StringgetDescription()Returns the stored description property for the schema element.StringgetDisplayName()Return the simple name of the schema element.protected SchemaElementgetSchemaElementBean()Return this schema type bean.inthashCode()Hash of propertiesbooleanisDeprecated()Is the schema element deprecated?protected voidsetBean(SchemaElement schemaElementBean)Set up the bean that contains the properties of the schema element.StringtoString()Standard toString method.-
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
-
schemaElementBean
protected SchemaElement schemaElementBean
-
-
Constructor Detail
-
AssetSchemaElement
protected AssetSchemaElement(AssetDescriptor parentAsset)
Constructor used by the subclasses- Parameters:
parentAsset- descriptor of asset that this property relates to.
-
AssetSchemaElement
public AssetSchemaElement(SchemaElement schemaElementBean)
Bean constructor- Parameters:
schemaElementBean- bean containing the schema element properties
-
AssetSchemaElement
public AssetSchemaElement(AssetDescriptor parentAsset, SchemaElement schemaElementBean)
Bean constructor with parent.- Parameters:
parentAsset- descriptor of asset that this property relates to.schemaElementBean- bean containing the schema element properties
-
AssetSchemaElement
public AssetSchemaElement(AssetDescriptor parentAsset, AssetSchemaElement 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
-
setBean
protected void setBean(SchemaElement schemaElementBean)
Set up the bean that contains the properties of the schema element.- Parameters:
schemaElementBean- bean containing all of the properties
-
getSchemaElementBean
protected SchemaElement getSchemaElementBean()
Return this schema type bean.- Returns:
- An instance of the appropriate subclass of SchemaElement bean
-
isDeprecated
public boolean isDeprecated()
Is the schema element deprecated?- Returns:
- boolean flag
-
getDisplayName
public String getDisplayName()
Return the simple name of the schema element.- Returns:
- string name
-
getDescription
public String getDescription()
Returns the stored description property for the schema element.- Returns:
- string description
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classAssetReferenceable- 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 classAssetReferenceable- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classAssetReferenceable- Returns:
- int
-
-