Class NodeCountryImpl

    • Constructor Detail

      • 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 Detail

      • 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