Class NodeCountryImpl

java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
se.swedenconnect.opensaml.eidas.ext.impl.NodeCountryImpl
All Implemented Interfaces:
XMLObject, SAMLObject, NodeCountry

public class NodeCountryImpl extends AbstractXMLObject implements NodeCountry
Concrete implementation of NodeCountry.
Author:
Martin Lindström
  • Constructor Details

    • NodeCountryImpl

      public NodeCountryImpl(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

    • getNodeCountry

      public String getNodeCountry()
      Returns the node country.
      Specified by:
      getNodeCountry in interface NodeCountry
      Returns:
      the nationality code of the country or international organization in ISO 3166-1 alpha-2 format
    • setNodeCountry

      public void setNodeCountry(String nodeCountry) throws IllegalArgumentException
      Assigns the node country.

      The nodeCountry parameter must be the nationality code of the country or international organization in ISO 3166-1 alpha-2 format.

      Specified by:
      setNodeCountry in interface NodeCountry
      Parameters:
      nodeCountry - the country code
      Throws:
      IllegalArgumentException - if the nodeCountry parameter is not given in ISO 3166-1 alpha-2 format
    • getOrderedChildren

      public List<XMLObject> getOrderedChildren()
      Specified by:
      getOrderedChildren in interface XMLObject