Class AttributeMapping

java.lang.Object
se.swedenconnect.cert.extensions.data.saci.AbstractDomData
se.swedenconnect.cert.extensions.data.saci.AttributeMapping

public class AttributeMapping extends AbstractDomData
Attribute mapping element
  • Field Details

  • Constructor Details

    • AttributeMapping

      public AttributeMapping(Element element, boolean strictMode) throws CertificateException
      Constructing attribute mapping from xml element
      Parameters:
      element - xml element holding the attribute mapping data
      strictMode - true to strictly enforce content requirement rules
      Throws:
      CertificateException - content validation error
  • Method Details

    • getAnyList

      public List<Element> getAnyList()
      Get the list of additional elements. If this list is absent, a new list will be created
      Returns:
      the list of additional elements
    • validate

      protected void validate() throws CertificateException
      Validates the data fields of this object to assert that it meets basic content requirements
      Specified by:
      validate in class AbstractDomData
      Throws:
      CertificateException - validation errors
    • getElement

      public Element getElement(Document document)
      Gets a DOM element from the element data fields
      Specified by:
      getElement in class AbstractDomData
      Parameters:
      document - the document this element shall belong to
      Returns:
      DOM element populated with the field data of this object
    • setValuesFromElement

      protected void setValuesFromElement(Element element) throws CertificateException
      Creates an instance of this elements data from a DOM element
      Specified by:
      setValuesFromElement in class AbstractDomData
      Parameters:
      element - xml element providing content data
      Throws:
      CertificateException - content validation error