Class CAP3EndUserAddress

    • Constructor Detail

      • CAP3EndUserAddress

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

      • copyOf

        public static CAP3EndUserAddress copyOf​(CAP3EndUserAddress 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:
        CAP3EndUserAddress
      • 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
      • getPDPAddress

        public byte[] getPDPAddress()
        Gets the value of the field pDPAddress.
        Returns:
        value of field pDPAddress, or null if not present
      • getPDPTypeNumber

        public byte[] getPDPTypeNumber()
        Gets the value of the field pDPTypeNumber.
        Returns:
        value of field pDPTypeNumber, or null if not present
      • getPDPTypeOrganization

        public byte[] getPDPTypeOrganization()
        Gets the value of the field pDPTypeOrganization.
        Returns:
        value of field pDPTypeOrganization, or null if not present
      • hasPDPAddress

        public boolean hasPDPAddress()
        Tests whether the field pDPAddress has a value.
        Returns:
        whether the field pDPAddress has a value
      • hasPDPTypeNumber

        public boolean hasPDPTypeNumber()
        Tests whether the field pDPTypeNumber has a value.
        Returns:
        whether the field pDPTypeNumber has a value
      • hasPDPTypeOrganization

        public boolean hasPDPTypeOrganization()
        Tests whether the field pDPTypeOrganization has a value.
        Returns:
        whether the field pDPTypeOrganization has a value
      • setPDPAddress

        public CAP3EndUserAddress setPDPAddress​(byte[] value)
                                         throws IllegalStateException
        Sets the value of the field pDPAddress. If null, marks the field as absent.
        Parameters:
        value - the new value for the field
        Returns:
        this
        Throws:
        IllegalStateException - if this instance has been marked as read-only
      • setPDPTypeOrganization

        public CAP3EndUserAddress setPDPTypeOrganization​(byte[] value)
                                                  throws IllegalStateException
        Sets the value of the field pDPTypeOrganization.
        Parameters:
        value - the new value for the field
        Returns:
        this
        Throws:
        IllegalStateException - if this instance has been marked as read-only