public class SchemaTypeBuilder extends ReferenceableBuilder
qualifiedNameclassifications, errorHandler, repositoryHelper, serverName, serviceName| Constructor and Description |
|---|
SchemaTypeBuilder(String qualifiedName,
String displayName,
OMRSRepositoryHelper repositoryHelper,
String serviceName,
String serverName)
Minimal constructor
|
SchemaTypeBuilder(String typeName,
String qualifiedName,
String displayName,
String description,
String versionNumber,
boolean isDeprecated,
String author,
String usage,
String encodingStandard,
String namespace,
Map<String,String> additionalProperties,
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.
|
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.
|
InstanceProperties |
getTypeEmbeddedInstanceProperties(String methodName)
Return the supplied bean properties in an InstanceProperties object for a TypeEmbeddedAttribute
classification.
|
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 |
setFixedValue(String fixedValue)
Set up the fixed data value (for literal types).
|
void |
setMaximumElements(int maximumElements)
Deprecated.
|
void |
setTypeName(String typeName)
Set up the unique name for the sub type of this element.
|
getEntityClassifications, 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 typeName, String qualifiedName, String displayName, String description, String versionNumber, boolean isDeprecated, String author, String usage, String encodingStandard, String namespace, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
typeName - unique name of schema sub typequalifiedName - 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 propertiesextendedProperties - properties from the subtype.repositoryHelper - helper methodsserviceName - name of this OMASserverName - name of local serverpublic void setTypeName(String typeName)
typeName - string namepublic void setDataType(String dataType)
dataType - string namepublic void setDefaultValue(String defaultValue)
defaultValue - string valuepublic void setFixedValue(String fixedValue)
fixedValue - string value@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.