Interface NodeCountry

  • All Superinterfaces:
    SAMLObject, XMLObject
    All Known Implementing Classes:
    NodeCountryImpl

    public interface NodeCountry
    extends SAMLObject
    * The eIDAS <eidas:NodeCountry> element.
      
     <?xml version="1.0" encoding="UTF-8"?>
     <xsd:schema 
          xmlns="http://eidas.europa.eu/saml-extensions"
          xmlns:xsd="http://www.w3.org/2001/XMLSchema"
          targetNamespace="http://eidas.europa.eu/saml-extensions"
          elementFormDefault="qualified"
          attributeFormDefault="unqualified"
          version="1">
          
       <xsd:element name="NodeCountry" type="eidas:NodeCountryType"/>
       
       <xsd:simpleType name="NodeCountryType">
         <xsd:restriction base="xsd:string">
           <xsd:pattern value="[A-Z][A-Z]"/>
         </xsd:restriction>
       </xsd:simpleType>
       
     </xsd:schema>
     
    Author:
    Martin Lindström (martin.lindstrom@litsec.se)
    • Field Detail

      • DEFAULT_ELEMENT_LOCAL_NAME

        static final String DEFAULT_ELEMENT_LOCAL_NAME
        Local name of NodeCountry.
        See Also:
        Constant Field Values
      • DEFAULT_ELEMENT_NAME

        static final QName DEFAULT_ELEMENT_NAME
        Default element name.
      • TYPE_NAME

        static final QName TYPE_NAME
        QName of the XSI type.
    • Method Detail

      • getNodeCountry

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

        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.

        Parameters:
        nodeCountry - the country code
        Throws:
        IllegalArgumentException - if the nodeCountry parameter is not given in ISO 3166-1 alpha-2 format