public class SchemaAttributeBuilder extends ReferenceableBuilder
qualifiedNameclassifications, errorHandler, repositoryHelper, serverName, serviceName| Constructor and Description |
|---|
SchemaAttributeBuilder(String qualifiedName,
String attributeName,
int elementPosition,
String cardinality,
String defaultValueOverride,
Map<String,String> additionalProperties,
Map<String,Object> extendedProperties,
OMRSRepositoryHelper repositoryHelper,
String serviceName,
String serverName)
Deprecated.
|
SchemaAttributeBuilder(String qualifiedName,
String attributeName,
OMRSRepositoryHelper repositoryHelper,
String serviceName,
String serverName)
Minimal constructor
|
SchemaAttributeBuilder(String qualifiedName,
String attributeName,
String description,
int elementPosition,
int minCardinality,
int maxCardinality,
boolean isDeprecated,
String defaultValueOverride,
boolean allowsDuplicateValues,
boolean orderedValues,
DataItemSortOrder sortOrder,
String anchorGUID,
int minimumLength,
int length,
int significantDigits,
boolean isNullable,
String nativeJavaClass,
List<String> aliases,
Map<String,String> additionalProperties,
Map<String,Object> extendedProperties,
OMRSRepositoryHelper repositoryHelper,
String serviceName,
String serverName)
Constructor supporting all properties for a schema attribute entity.
|
| 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.
|
void |
setFormula(String formula)
Set up the formula for a derived schema attribute.
|
getEntityClassifications, setClassificationspublic SchemaAttributeBuilder(String qualifiedName, String attributeName, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
qualifiedName - unique nameattributeName - new value for the display name.repositoryHelper - helper methodsserviceName - name of this OMASserverName - name of local server@Deprecated public SchemaAttributeBuilder(String qualifiedName, String attributeName, int elementPosition, String cardinality, String defaultValueOverride, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
qualifiedName - unique nameattributeName - new value for the display name.elementPosition - position of the attribute in the parent schemaType.cardinality - does the attribute repeat?defaultValueOverride - override for the Type's default value.additionalProperties - additional propertiesextendedProperties - properties from the subtype.repositoryHelper - helper methodsserviceName - name of this OMASserverName - name of local serverpublic SchemaAttributeBuilder(String qualifiedName, String attributeName, String description, int elementPosition, int minCardinality, int maxCardinality, boolean isDeprecated, String defaultValueOverride, boolean allowsDuplicateValues, boolean orderedValues, DataItemSortOrder sortOrder, String anchorGUID, int minimumLength, int length, int significantDigits, boolean isNullable, String nativeJavaClass, List<String> aliases, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
qualifiedName - unique nameattributeName - new value for the display name.description - new value for the description.elementPosition - position of the attribute in the parent schemaType.minCardinality - is the attribute optional?maxCardinality - does the attribute repeat?isDeprecated - is this element deprecated?defaultValueOverride - override for the Type's default value.allowsDuplicateValues - unique values ?orderedValues - ordered values ?sortOrder - sort order if orderedanchorGUID - unique identifier of the anchor entityminimumLength - minimum length of data in fieldlength - size of data fieldsignificantDigits - number of digits on right of decimal pointisNullable - can the value be null?nativeJavaClass - name of implementation class for Javaaliases - aliases for the fieldadditionalProperties - additional propertiesextendedProperties - properties from the subtype.repositoryHelper - helper methodsserviceName - name of this OMASserverName - name of local serverpublic void setFormula(String formula)
formula - formula used to derive the attribute value.public InstanceProperties getInstanceProperties(String methodName) throws InvalidParameterException
getInstanceProperties in class ReferenceableBuildermethodName - 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.