Class SchemaTypeElement
java.lang.Object
org.odpi.openmetadata.accessservices.assetmanager.metadataelements.SchemaTypeElement
- All Implemented Interfaces:
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CorrelatedMetadataElement,org.odpi.openmetadata.frameworks.openmetadata.metadataelements.MetadataElement
public class SchemaTypeElement
extends Object
implements org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CorrelatedMetadataElement
SchemaTypeElement contains the properties and header for a schema type retrieved from the metadata repository.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorSchemaTypeElement(SchemaTypeElement template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn comparison result based on the content of the properties.intReturn the count of attributes in this schema type.List<org.odpi.openmetadata.frameworks.openmetadata.properties.MetadataCorrelationHeader>Return the details of the external identifier and other correlation properties about the metadata source.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeaderReturn 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.List<org.odpi.openmetadata.frameworks.openmetadata.properties.schema.DerivedSchemaTypeQueryTargetProperties>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.org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaTypePropertiesReturn the properties for the schema.inthashCode()Return hash code for this objectvoidsetAttributeCount(int attributeCount) Set up the count of attributes in this schema typevoidsetCorrelationHeaders(List<org.odpi.openmetadata.frameworks.openmetadata.properties.MetadataCorrelationHeader> correlationHeaders) Set up the details of the external identifier and other correlation properties about the metadata source.voidsetElementHeader(org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader elementHeader) Set up the element header associated with the properties.voidsetExternalSchemaType(SchemaTypeElement externalSchemaType) Set up the schema type that is reusable amongst assets.voidsetFormula(String formula) Set up the formula used to combine the values of the queries.voidsetFormulaType(String formulaType) Set up the specification language for the formula.voidsetMapFromElement(SchemaTypeElement mapFromElement) Set up the type of schema element that represents the key or property name for the map.voidsetMapToElement(SchemaTypeElement mapToElement) Set up the type of schema element that represents the property value for the map.voidsetQueries(List<org.odpi.openmetadata.frameworks.openmetadata.properties.schema.DerivedSchemaTypeQueryTargetProperties> queries) Set up the list of individual query targets for a derived column.voidsetSchemaOptions(List<SchemaTypeElement> schemaOptions) Set up the list of alternative schema types that this attribute or asset may use.voidsetSchemaTypeProperties(org.odpi.openmetadata.frameworks.openmetadata.properties.schema.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
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader getElementHeader()Return the element header associated with the properties.- Specified by:
getElementHeaderin interfaceorg.odpi.openmetadata.frameworks.openmetadata.metadataelements.MetadataElement- Returns:
- element header object
-
setElementHeader
public void setElementHeader(org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader elementHeader) Set up the element header associated with the properties.- Specified by:
setElementHeaderin interfaceorg.odpi.openmetadata.frameworks.openmetadata.metadataelements.MetadataElement- Parameters:
elementHeader- element header object
-
getCorrelationHeaders
public List<org.odpi.openmetadata.frameworks.openmetadata.properties.MetadataCorrelationHeader> getCorrelationHeaders()Return the details of the external identifier and other correlation properties about the metadata source. There is one entry in the list for each element in the third party technology that maps to the single open source element.- Specified by:
getCorrelationHeadersin interfaceorg.odpi.openmetadata.frameworks.openmetadata.metadataelements.CorrelatedMetadataElement- Returns:
- list of correlation properties objects
-
setCorrelationHeaders
public void setCorrelationHeaders(List<org.odpi.openmetadata.frameworks.openmetadata.properties.MetadataCorrelationHeader> correlationHeaders) Set up the details of the external identifier and other correlation properties about the metadata source. There is one entry in the list for each element in the third party technology that maps to the single open source element.- Specified by:
setCorrelationHeadersin interfaceorg.odpi.openmetadata.frameworks.openmetadata.metadataelements.CorrelatedMetadataElement- Parameters:
correlationHeaders- list of correlation properties objects
-
getSchemaTypeProperties
public org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaTypeProperties getSchemaTypeProperties()Return the properties for the schema.- Returns:
- schema properties (using appropriate subclass)
-
setSchemaTypeProperties
public void setSchemaTypeProperties(org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaTypeProperties schemaTypeProperties) 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
public List<org.odpi.openmetadata.frameworks.openmetadata.properties.schema.DerivedSchemaTypeQueryTargetProperties> getQueries()Return the list of individual query targets for a derived column.- Returns:
- list of queries and their target element
-
setQueries
public void setQueries(List<org.odpi.openmetadata.frameworks.openmetadata.properties.schema.DerivedSchemaTypeQueryTargetProperties> queries) 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
-