Class SchemaTypeElement
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.SchemaTypeElement
- All Implemented Interfaces:
MetadataElement
SchemaTypeElement contains the properties and header for a reference data asset retrieved from the metadata repository.
-
Constructor Summary
ConstructorDescriptionDefault constructorSchemaTypeElement
(SchemaTypeElement template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return comparison result based on the content of the properties.int
Return the count of attributes in this schema type.Return the element header associated with the properties.Return the schema type that is reusable amongst assets.Return the formula used to combine the values of the queries.Return the specification language for the formula.Return the type of schema element that represents the key or property name for the map.Return the type of schema element that represents the property value for the map.Return the list of individual query targets for a derived column.Return the list of alternative schema types that this attribute or asset may use.Return the properties for the schema.int
hashCode()
Return hash code for this objectvoid
setAttributeCount
(int attributeCount) Set up the count of attributes in this schema typevoid
setElementHeader
(ElementHeader elementHeader) Set up the element header associated with the properties.void
setExternalSchemaType
(SchemaTypeElement externalSchemaType) Set up the schema type that is reusable amongst assets.void
setFormula
(String formula) Set up the formula used to combine the values of the queries.void
setFormulaType
(String formulaType) Set up the specification language for the formula.void
setMapFromElement
(SchemaTypeElement mapFromElement) Set up the type of schema element that represents the key or property name for the map.void
setMapToElement
(SchemaTypeElement mapToElement) Set up the type of schema element that represents the property value for the map.void
Set up the list of individual query targets for a derived column.void
setSchemaOptions
(List<SchemaTypeElement> schemaOptions) Set up the list of alternative schema types that this attribute or asset may use.void
setSchemaTypeProperties
(SchemaTypeProperties schemaTypeProperties) Set up the properties for the schema.toString()
JSON-style toString
-
Constructor Details
-
SchemaTypeElement
public SchemaTypeElement()Default constructor -
SchemaTypeElement
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getElementHeader
Return the element header associated with the properties.- Specified by:
getElementHeader
in interfaceMetadataElement
- Returns:
- element header object
-
setElementHeader
Set up the element header associated with the properties.- Specified by:
setElementHeader
in interfaceMetadataElement
- Parameters:
elementHeader
- element header object
-
getSchemaTypeProperties
Return the properties for the schema.- Returns:
- schema properties (using appropriate subclass)
-
setSchemaTypeProperties
Set up the properties for the schema.- Parameters:
schemaTypeProperties
- schema properties
-
getAttributeCount
public int getAttributeCount()Return the count of attributes in this schema type.- Returns:
- String data type name
-
setAttributeCount
public void setAttributeCount(int attributeCount) Set up the count of attributes in this schema type- Parameters:
attributeCount
- data type name
-
getMapFromElement
Return the type of schema element that represents the key or property name for the map. This is also called the domain of the map.- Returns:
- SchemaElement
-
setMapFromElement
Set up the type of schema element that represents the key or property name for the map. This is also called the domain of the map.- Parameters:
mapFromElement
- SchemaElement
-
getMapToElement
Return the type of schema element that represents the property value for the map. This is also called the range of the map.- Returns:
- SchemaElement
-
setMapToElement
Set up the type of schema element that represents the property value for the map. This is also called the range of the map.- Parameters:
mapToElement
- SchemaType
-
getExternalSchemaType
Return the schema type that is reusable amongst assets.- Returns:
- bean describing external schema
-
setExternalSchemaType
Set up the schema type that is reusable amongst assets.- Parameters:
externalSchemaType
- bean describing external schema
-
getSchemaOptions
Return the list of alternative schema types that this attribute or asset may use.- Returns:
- list of schema types
-
setSchemaOptions
Set up the list of alternative schema types that this attribute or asset may use.- Parameters:
schemaOptions
- list of schema types
-
getFormula
Return the formula used to combine the values of the queries. Each query is has a identifier and the formula has placeholders for these identifiers in it to show how the query results are combined.- Returns:
- String formula
-
setFormula
Set up the formula used to combine the values of the queries. Each query is has a identifier and the formula has placeholders for these identifiers in it to show how the query results are combined.- Parameters:
formula
- String formula
-
getFormulaType
Return the specification language for the formula.- Returns:
- string description
-
setFormulaType
Set up the specification language for the formula.- Parameters:
formulaType
- string description
-
getQueries
Return the list of individual query targets for a derived column.- Returns:
- list of queries and their target element
-
setQueries
Set up the list of individual query targets for a derived column.- Parameters:
queries
- list of queries and their target element
-
toString
JSON-style toString -
equals
Return comparison result based on the content of the properties. -
hashCode
public int hashCode()Return hash code for this object
-