Class SchemaTypeProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaElementProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaTypeProperties
- Direct Known Subclasses:
APIOperationProperties
,ComplexSchemaTypeProperties
,ExternalSchemaTypeProperties
,LiteralSchemaTypeProperties
,MapSchemaTypeProperties
,SchemaTypeChoiceProperties
,SchemaTypeRequestBody
,SimpleSchemaTypeProperties
SchemaTypeProperties carries the common parameters for creating or updating schema types.
-
Constructor Summary
ConstructorDescriptionDefault constructorSchemaTypeProperties
(SchemaTypeProperties template) Copy/clone Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the name of the author of the schema element.Return the format (encoding standard) used for this schema.Return the formula used to combine the values of the queries.Return the specification language for the formula.Return the name of the namespace that this type belongs to.Return the list of queries that are used to create the derived schema element.getUsage()
Return the usage guidance for this schema element.Return the version number of the schema element - null means no version number.int
hashCode()
Return hash code based on properties.void
Set up the name of the author of the schema element.void
setEncodingStandard
(String encodingStandard) Set up the format (encoding standard) used for this schema.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
setNamespace
(String namespace) Set up the name of the namespace that this type belongs to.void
Set up the list of queries that are used to create the derived schema element.void
Set up the usage guidance for this schema element.void
setVersionNumber
(String versionNumber) Set up the version number of the schema element - null means no version number.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaElementProperties
getDescription, getDisplayName, getIsDeprecated, setDescription, setDisplayName, setIsDeprecated
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
getAdditionalProperties, getQualifiedName, getVendorProperties, setAdditionalProperties, setQualifiedName, setVendorProperties
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, getTypeName, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setTypeName
-
Constructor Details
-
SchemaTypeProperties
public SchemaTypeProperties()Default constructor -
SchemaTypeProperties
Copy/clone Constructor.- Parameters:
template
- template object to copy.
-
-
Method Details
-
getVersionNumber
Return the version number of the schema element - null means no version number.- Returns:
- String version number
-
setVersionNumber
Set up the version number of the schema element - null means no version number.- Parameters:
versionNumber
- String version number
-
getAuthor
Return the name of the author of the schema element. Null means the author is unknown.- Returns:
- String author name
-
setAuthor
Set up the name of the author of the schema element. Null means the author is unknown.- Parameters:
author
- String author name
-
getUsage
Return the usage guidance for this schema element. Null means no guidance available.- Returns:
- String usage guidance
-
setUsage
Set up the usage guidance for this schema element. Null means no guidance available.- Parameters:
usage
- String usage guidance
-
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
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
Return the name of the namespace that this type belongs to.- Returns:
- string name
-
setNamespace
Set up the name of the namespace that this type belongs to.- Parameters:
namespace
- string name
-
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
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
-
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 queries that are used to create the derived schema element.- Returns:
- list of queries
-
setQueries
Set up the list of queries that are used to create the derived schema element.- Parameters:
queries
- list of queries
-
toString
Standard toString method.- Overrides:
toString
in classSchemaElementProperties
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classSchemaElementProperties
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classSchemaElementProperties
- Returns:
- int
-