Class PolicyAttributeTypeDescription

    • Method Detail

      • attributeName

        public final String attributeName()

        The name of the attribute.

        Returns:
        The name of the attribute.
      • attributeType

        public final String attributeType()

        The type of the attribute. For example, Boolean or Integer.

        Returns:
        The type of the attribute. For example, Boolean or Integer.
      • description

        public final String description()

        A description of the attribute.

        Returns:
        A description of the attribute.
      • defaultValue

        public final String defaultValue()

        The default value of the attribute, if applicable.

        Returns:
        The default value of the attribute, if applicable.
      • cardinality

        public final String cardinality()

        The cardinality of the attribute.

        Valid values:

        • ONE(1) : Single value required

        • ZERO_OR_ONE(0..1) : Up to one value is allowed

        • ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed

        • ONE_OR_MORE(1..*0) : Required. Multiple values are allowed

        Returns:
        The cardinality of the attribute.

        Valid values:

        • ONE(1) : Single value required

        • ZERO_OR_ONE(0..1) : Up to one value is allowed

        • ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed

        • ONE_OR_MORE(1..*0) : Required. Multiple values are allowed

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)