Class SchemaTypeProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetmanager.properties.ReferenceableProperties
-
- org.odpi.openmetadata.accessservices.assetmanager.properties.SupplementaryProperties
-
- org.odpi.openmetadata.accessservices.assetmanager.properties.SchemaProperties
-
- org.odpi.openmetadata.accessservices.assetmanager.properties.SchemaTypeProperties
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ComplexSchemaTypeProperties,LiteralSchemaTypeProperties,MapSchemaTypeProperties,SchemaTypeChoiceProperties,SimpleSchemaTypeProperties
public class SchemaTypeProperties extends SchemaProperties
SchemaTypeProperties carries the common parameters for creating or updating schema types.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SchemaTypeProperties()Default constructorSchemaTypeProperties(SchemaTypeProperties template)Copy/clone 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.StringgetAuthor()Return the name of the author of the schema element.StringgetEncodingStandard()Return the format (encoding standard) used for this schema.StringgetFormula()Return the formula used to combine the values of the queries.StringgetNamespace()Return the name of the namespace that this type belongs to.List<QueryTargetProperties>getQueries()Return the list of queries that are used to create the derived schema element.StringgetVersionNumber()Return the version number of the schema element - null means no version number.inthashCode()Return hash code based on properties.voidsetAuthor(String author)Set up the name of the author of the schema element.voidsetEncodingStandard(String encodingStandard)Set up the format (encoding standard) used for this schema.voidsetFormula(String formula)Set up the formula used to combine the values of the queries.voidsetNamespace(String namespace)Set up the name of the namespace that this type belongs to.voidsetQueries(List<QueryTargetProperties> queries)Set up the list of queries that are used to create the derived schema element.voidsetVersionNumber(String versionNumber)Set up the version number of the schema element - null means no version number.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.accessservices.assetmanager.properties.SchemaProperties
getIsDeprecated, getTechnicalDescription, getTechnicalName, setIsDeprecated, setTechnicalDescription, setTechnicalName
-
Methods inherited from class org.odpi.openmetadata.accessservices.assetmanager.properties.SupplementaryProperties
getAbbreviation, getDescription, getDisplayName, getSummary, getUsage, setAbbreviation, setDescription, setDisplayName, setSummary, setUsage
-
Methods inherited from class org.odpi.openmetadata.accessservices.assetmanager.properties.ReferenceableProperties
getAdditionalProperties, getEffectiveFrom, getEffectiveTo, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
-
-
-
Constructor Detail
-
SchemaTypeProperties
public SchemaTypeProperties()
Default constructor
-
SchemaTypeProperties
public SchemaTypeProperties(SchemaTypeProperties template)
Copy/clone Constructor.- Parameters:
template- template object to copy.
-
-
Method Detail
-
getVersionNumber
public String getVersionNumber()
Return the version number of the schema element - null means no version number.- Returns:
- String version number
-
setVersionNumber
public void setVersionNumber(String versionNumber)
Set up the version number of the schema element - null means no version number.- Parameters:
versionNumber- String version number
-
getAuthor
public String getAuthor()
Return the name of the author of the schema element. Null means the author is unknown.- Returns:
- String author name
-
setAuthor
public void setAuthor(String author)
Set up the name of the author of the schema element. Null means the author is unknown.- Parameters:
author- String author name
-
getEncodingStandard
public String getEncodingStandard()
Return the format (encoding standard) used for this schema. It may be XML, JSON, SQL DDL or something else. Null means the encoding standard is unknown or there are many choices.- Returns:
- String encoding standard
-
setEncodingStandard
public void setEncodingStandard(String encodingStandard)
Set up the format (encoding standard) used for this schema. It may be XML, JSON, SQL DDL or something else. Null means the encoding standard is unknown or there are many choices.- Parameters:
encodingStandard- String encoding standard
-
getNamespace
public String getNamespace()
Return the name of the namespace that this type belongs to.- Returns:
- string name
-
setNamespace
public void setNamespace(String namespace)
Set up the name of the namespace that this type belongs to.- Parameters:
namespace- string name
-
getFormula
public String getFormula()
Return the formula used to combine the values of the queries. Each query is numbers 0, 1, ... and the formula has placeholders in it to show how the query results are combined.- Returns:
- String formula
-
setFormula
public void setFormula(String formula)
Set up the formula used to combine the values of the queries. Each query is numbers 0, 1, ... and the formula has placeholders in it to show how the query results are combined.- Parameters:
formula- String formula
-
getQueries
public List<QueryTargetProperties> getQueries()
Return the list of queries that are used to create the derived schema element.- Returns:
- list of queries
-
setQueries
public void setQueries(List<QueryTargetProperties> queries)
Set up the list of queries that are used to create the derived schema element.- Parameters:
queries- list of queries
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classSchemaProperties- 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 classSchemaProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return hash code based on properties.- Overrides:
hashCodein classSchemaProperties- Returns:
- int
-
-