Class SchemaAttributeBuilder


  • public class SchemaAttributeBuilder
    extends ReferenceableBuilder
    SchemaAttributeBuilder creates instance properties for a schema attribute.
    • Constructor Detail

      • SchemaAttributeBuilder

        public SchemaAttributeBuilder​(String qualifiedName,
                                      String displayName,
                                      OMRSRepositoryHelper repositoryHelper,
                                      String serviceName,
                                      String serverName)
        Minimal constructor
        Parameters:
        qualifiedName - unique name
        displayName - new value for the display name.
        repositoryHelper - helper methods
        serviceName - name of this OMAS
        serverName - name of local server
      • SchemaAttributeBuilder

        @Deprecated
        public SchemaAttributeBuilder​(String qualifiedName,
                                      String displayName,
                                      int elementPosition,
                                      String cardinality,
                                      String defaultValueOverride,
                                      Map<String,​String> additionalProperties,
                                      Map<String,​Object> extendedProperties,
                                      OMRSRepositoryHelper repositoryHelper,
                                      String serviceName,
                                      String serverName)
        Deprecated.
        Constructor supporting original properties. Deprecated because uses old form of cardinality.
        Parameters:
        qualifiedName - unique name
        displayName - 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 properties
        extendedProperties - properties from the subtype.
        repositoryHelper - helper methods
        serviceName - name of this OMAS
        serverName - name of local server
      • SchemaAttributeBuilder

        public SchemaAttributeBuilder​(String qualifiedName,
                                      String displayName,
                                      String description,
                                      int elementPosition,
                                      int minCardinality,
                                      int maxCardinality,
                                      boolean isDeprecated,
                                      String defaultValueOverride,
                                      boolean allowsDuplicateValues,
                                      boolean orderedValues,
                                      EnumPropertyValue sortOrder,
                                      int minimumLength,
                                      int length,
                                      int significantDigits,
                                      boolean isNullable,
                                      String nativeJavaClass,
                                      List<String> aliases,
                                      Map<String,​String> additionalProperties,
                                      String anchorGUID,
                                      String typeName,
                                      String typeId,
                                      Map<String,​Object> extendedProperties,
                                      OMRSRepositoryHelper repositoryHelper,
                                      String serviceName,
                                      String serverName)
        Constructor supporting all properties for a schema attribute entity.
        Parameters:
        qualifiedName - unique name
        displayName - 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 ordered
        minimumLength - minimum length of data in field
        length - size of data field
        significantDigits - number of digits on right of decimal point
        isNullable - can the value be null?
        nativeJavaClass - name of implementation class for Java
        aliases - aliases for the field
        additionalProperties - additional properties
        anchorGUID - unique identifier of any attached asset
        typeName - name of the type for this schema element
        typeId - unique identifier of the type for this schema element
        extendedProperties - properties from the subtype.
        repositoryHelper - helper methods
        serviceName - name of this OMAS
        serverName - name of local server