public class SchemaTypeBuilder extends ReferenceableBuilder
additionalProperties, extendedProperties, latestChange, qualifiedName, typeId, typeNameclassifications, errorHandler, repositoryHelper, serverName, serviceName| Constructor and Description |
|---|
SchemaTypeBuilder(String qualifiedName,
String displayName,
OMRSRepositoryHelper repositoryHelper,
String serviceName,
String serverName)
Minimal constructor
|
SchemaTypeBuilder(String qualifiedName,
String typeName,
String typeId,
OMRSRepositoryHelper repositoryHelper,
String serviceName,
String serverName)
Simple typed constructor
|
SchemaTypeBuilder(String qualifiedName,
String displayName,
String description,
String versionNumber,
boolean isDeprecated,
String author,
String usage,
String encodingStandard,
String namespace,
Map<String,String> additionalProperties,
String anchorGUID,
String typeName,
String typeId,
Map<String,Object> extendedProperties,
OMRSRepositoryHelper repositoryHelper,
String serviceName,
String serverName)
Constructor supporting all common properties.
|
| Modifier and Type | Method and Description |
|---|---|
InstanceProperties |
getInstanceProperties(String methodName)
Return the supplied bean properties in an InstanceProperties object.
|
SchemaTypeBuilder |
getMapFrom()
Return the builder for the type of the value that is in the domain of the map.
|
SchemaTypeBuilder |
getMapTo()
Return the builder for the type of the value that is in the range of the map.
|
InstanceProperties |
getNameInstanceProperties(String methodName)
Return the supplied bean properties that represent a name in an InstanceProperties object.
|
InstanceProperties |
getQualifiedNameInstanceProperties(String methodName)
Return the supplied bean properties that represent a name in an InstanceProperties object.
|
List<SchemaTypeBuilder> |
getSchemaOptions()
Return the list of types that are represented by a schema option type.
|
InstanceProperties |
getTypeEmbeddedInstanceProperties(String methodName)
Return the supplied bean properties in an InstanceProperties object for a TypeEmbeddedAttribute
classification.
|
boolean |
isDerived()
Return whether the schema has a derived value of not.
|
void |
setDataType(String dataType)
Set up the type of data (for simple and literal types)
|
void |
setDefaultValue(String defaultValue)
Set up the default value of a field (for simple types).
|
void |
setDerivedProperties(String formula,
List<DerivedSchemaTypeQueryTarget> queries)
Set up the properties that indicate that the schema element's value is not stored, it is derived from other values.
|
void |
setFixedValue(String fixedValue)
Set up the fixed data value (for literal types).
|
void |
setMapTypes(SchemaTypeBuilder mapFrom,
SchemaTypeBuilder mapTo)
Set up the builder to support a map type.
|
void |
setMaximumElements(int maximumElements)
Deprecated.
|
void |
setSchemaOptions(List<SchemaTypeBuilder> schemaOptions)
Set up the list of types that are represented by a schema option type.
|
getEntityClassifications, getSearchInstanceProperties, getTypeId, getTypeNamegetEntityClassifications, setClassificationspublic SchemaTypeBuilder(String qualifiedName, String displayName, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
qualifiedName - unique namedisplayName - new value for the display name.repositoryHelper - helper methodsserviceName - name of this OMASserverName - name of local serverpublic SchemaTypeBuilder(String qualifiedName, String typeName, String typeId, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
qualifiedName - unique nametypeName - name of the type for this schema elementtypeId - unique identifier of the type for this schema elementrepositoryHelper - helper methodsserviceName - name of this OMASserverName - name of local serverpublic SchemaTypeBuilder(String qualifiedName, String displayName, String description, String versionNumber, boolean isDeprecated, String author, String usage, String encodingStandard, String namespace, Map<String,String> additionalProperties, String anchorGUID, String typeName, String typeId, Map<String,Object> extendedProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
qualifiedName - unique name of schema type itselfdisplayName - new value for the display name.description - description of the schema type.versionNumber - version of the schema type.isDeprecated - is the schema type deprecatedauthor - name of the authorusage - guidance on how the schema should be used.encodingStandard - format of the schema.namespace - namespace where the schema is defined.additionalProperties - additional propertiesanchorGUID - unique identifier of the anchor object for this schema typetypeName - unique name of schema sub typetypeId - unique identifier of the schema subtypeextendedProperties - properties from the subtype.repositoryHelper - helper methodsserviceName - name of this OMASserverName - name of local serverpublic void setDataType(String dataType)
dataType - string namepublic void setDefaultValue(String defaultValue)
defaultValue - string valuepublic void setFixedValue(String fixedValue)
fixedValue - string valuepublic void setMapTypes(SchemaTypeBuilder mapFrom, SchemaTypeBuilder mapTo)
mapFrom - the type of the value that is in the domain of the mapmapTo - the type of the value that is in the rage of the mappublic SchemaTypeBuilder getMapFrom()
public SchemaTypeBuilder getMapTo()
public void setSchemaOptions(List<SchemaTypeBuilder> schemaOptions)
schemaOptions - list of builderspublic List<SchemaTypeBuilder> getSchemaOptions()
public void setDerivedProperties(String formula, List<DerivedSchemaTypeQueryTarget> queries)
formula - expression, possibly with place holders to insert the values returned from the queriesqueries - optional queries to supply values to insert into the formulapublic boolean isDerived()
@Deprecated public void setMaximumElements(int maximumElements)
maximumElements - intpublic InstanceProperties getInstanceProperties(String methodName) throws InvalidParameterException
getInstanceProperties in class ReferenceableBuildermethodName - name of the calling methodInvalidParameterException - there is a problem with the propertiespublic InstanceProperties getTypeEmbeddedInstanceProperties(String methodName) throws InvalidParameterException
methodName - name of the calling methodInvalidParameterException - there is a problem with the propertiespublic InstanceProperties getNameInstanceProperties(String methodName)
getNameInstanceProperties in class ReferenceableBuildermethodName - name of the calling methodpublic InstanceProperties getQualifiedNameInstanceProperties(String methodName)
getQualifiedNameInstanceProperties in class ReferenceableBuildermethodName - name of the calling methodCopyright © 2018–2020 ODPi. All rights reserved.