public class SchemaTypeBuilder extends ReferenceableBuilder
qualifiedNameerrorHandler, existingClassifications, extendedProperties, instanceStatus, newClassifications, properties, repositoryHelper, serverName, serviceName, typeGUID, typeName| Constructor and Description |
|---|
SchemaTypeBuilder(String qualifiedName,
String displayName,
OMRSRepositoryHelper repositoryHelper,
String serviceName,
String serverName)
Minimal constructor
|
SchemaTypeBuilder(String qualifiedName,
String typeId,
String typeName,
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 typeId,
String typeName,
Map<String,Object> extendedProperties,
OMRSRepositoryHelper repositoryHelper,
String serviceName,
String serverName)
Constructor supporting all common properties.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExternalSchemaTypeGUID()
Return the unique identifier for an external schema type.
|
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.
|
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.
|
String |
getValidValuesSetGUID()
Return the unique identifier of the valid values set that lists the permitted values for the attached
schema attribute.
|
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)
Set up the properties that indicate that the schema element's value is not stored, it is derived from other values.
|
void |
setExternalSchemaTypeGUID(String guid)
Set up the unique identifier for an external schema type.
|
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 |
setSchemaOptions(List<SchemaTypeBuilder> schemaOptions)
Set up the list of types that are represented by a schema option type.
|
void |
setValidValuesSetGUID(String validValuesSetGUID)
Set up the unique identifier of the valid values set that lists the permitted values for the attached
schema attribute.
|
getQualifiedName, setSecurityTags, setTemplategetEntityClassificationProperties, getEntityClassifications, getExistingEntityClassificationHeader, getInstanceStatus, getTypeGUID, getTypeName, setAnchors, setClassification, setLatestChange, setTemplateClassificationspublic 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 typeId, String typeName, 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 typeId, String typeName, 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 propertiestypeName - 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 setExternalSchemaTypeGUID(String guid)
guid - string guidpublic String getExternalSchemaTypeGUID()
public void setValidValuesSetGUID(String validValuesSetGUID)
validValuesSetGUID - string guidpublic String getValidValuesSetGUID()
public 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)
formula - expression, possibly with place holders to insert the values returned from the queriespublic boolean isDerived()
public 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 propertiesCopyright © 2018–2020 ODPi. All rights reserved.