Class MetadataListImpl

java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
se.swedenconnect.opensaml.eidas.metadata.impl.MetadataListImpl
All Implemented Interfaces:
org.opensaml.core.xml.AttributeExtensibleXMLObject, org.opensaml.core.xml.XMLObject, org.opensaml.saml.common.SAMLObject, MetadataList

public class MetadataListImpl extends org.opensaml.core.xml.AbstractXMLObject implements MetadataList
Implementation class for MetadataList.
Author:
Martin Lindström
  • Field Summary

    Fields inherited from interface se.swedenconnect.opensaml.eidas.metadata.MetadataList

    DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, TERRITORY_ATTR_NAME, TYPE_LOCAL_NAME, TYPE_NAME
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    MetadataListImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a reference to the list of metadata location elements.
    List<org.opensaml.core.xml.XMLObject>
    boolean
    For the Swedish eIDAS configuration, a flag, Suspend is used to indicate whether a metadata list for a specific territory is suspended.
    Returns the territory country identifier for this metadata list.
    org.opensaml.core.xml.util.AttributeMap
    void
    setSuspend(boolean suspendFlag)
    Assigns the Suspend flag.
    void
    setTerritory(String territory)
    Assigns the territory country identifier for this metadata list.

    Methods inherited from class org.opensaml.core.xml.AbstractXMLObject

    detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.opensaml.core.xml.XMLObject

    detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
  • Constructor Details

    • MetadataListImpl

      protected MetadataListImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
      Parameters:
      namespaceURI - the namespace the element is in
      elementLocalName - the local name of the XML element this Object represents
      namespacePrefix - the prefix for the given namespace
  • Method Details

    • getOrderedChildren

      public List<org.opensaml.core.xml.XMLObject> getOrderedChildren()
      Specified by:
      getOrderedChildren in interface org.opensaml.core.xml.XMLObject
    • getUnknownAttributes

      @Nonnull public org.opensaml.core.xml.util.AttributeMap getUnknownAttributes()
      Specified by:
      getUnknownAttributes in interface org.opensaml.core.xml.AttributeExtensibleXMLObject
    • getMetadataLocations

      public List<MetadataLocation> getMetadataLocations()
      Returns a reference to the list of metadata location elements.
      Specified by:
      getMetadataLocations in interface MetadataList
      Returns:
      metadata location elements
    • getTerritory

      public String getTerritory()
      Returns the territory country identifier for this metadata list.
      Specified by:
      getTerritory in interface MetadataList
      Returns:
      country code
    • setTerritory

      public void setTerritory(String territory)
      Assigns the territory country identifier for this metadata list.
      Specified by:
      setTerritory in interface MetadataList
      Parameters:
      territory - country code
    • getSuspend

      public boolean getSuspend()
      For the Swedish eIDAS configuration, a flag, Suspend is used to indicate whether a metadata list for a specific territory is suspended. This method is just a shortcut instead of using AttributeExtensibleXMLObject.getUnknownAttributes().
      Specified by:
      getSuspend in interface MetadataList
      Returns:
      if the Suspend flag has been set to true this method returns true, otherwise false 
    • setSuspend

      public void setSuspend(boolean suspendFlag)
      Assigns the Suspend flag. See MetadataList.getSuspend().
      Specified by:
      setSuspend in interface MetadataList
      Parameters:
      suspendFlag - the suspend flag