Class CAP1ExtensionField

    • Constructor Detail

      • CAP1ExtensionField

        public CAP1ExtensionField()
        Constructs an object with uninitialised state.
    • Method Detail

      • copyOf

        public static CAP1ExtensionField copyOf​(CAP1ExtensionField from)
        Creates a new object of this type, cloning the values of common fields from the given object of any subclass of the same base type.
        Parameters:
        from - the object from which to copy
        Returns:
        CAP1ExtensionField
      • getCriticality

        public CAP1CriticalityType getCriticality()
        Gets the value of the field criticality.
        Returns:
        value of field criticality, or null if not present
      • getFieldAccessors

        public static FieldAccessor[] getFieldAccessors()
        Gets a new array of the accessors for fields of this type.
        Returns:
        FieldAccessor[]
      • getFieldsMap

        public Map<String,​Object> getFieldsMap​(boolean withAbsents)
        Gets a Map from field-name to field-value. For a field of primitive type, the field-value is boxed. For an absent optional field, the field-value is AbstractFieldsObject.FIELD_ABSENT. For an unitialised mandatory field, the field-value is AbstractFieldsObject.FIELD_UNINITIALISED.
        Specified by:
        getFieldsMap in class AbstractFieldsObject
        Parameters:
        withAbsents - whether to put absent optional fields into Map
        Returns:
        Map from field-name to field-value
      • getType

        public OpenId getType()
        Gets the value of the field type.
        Returns:
        value of field type, or null if not present
      • getValue

        public ContainingOctetString getValue()
        Gets the value of the field value.
        Returns:
        value of field value, or null if not present
      • hasCriticality

        public boolean hasCriticality()
        Tests whether the field criticality has a value.
        Returns:
        whether the field criticality has a value
      • hasType

        public boolean hasType()
        Tests whether the field type has a value.
        Returns:
        whether the field type has a value
      • hasValue

        public boolean hasValue()
        Tests whether the field value has a value.
        Returns:
        whether the field value has a value