Package se.litsec.eidas.opensaml.ext
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 Summary
Fields Modifier and Type Field Description static StringDEFAULT_ELEMENT_LOCAL_NAMELocal name of NodeCountry.static QNameDEFAULT_ELEMENT_NAMEDefault element name.static StringTYPE_LOCAL_NAMELocal name of the XSI type.static QNameTYPE_NAMEQName of the XSI type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetNodeCountry()Returns the node country.voidsetNodeCountry(String nodeCountry)Assigns the node country.-
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
-
-
-
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_LOCAL_NAME
static final String TYPE_LOCAL_NAME
Local name of the XSI type.- See Also:
- Constant Field Values
-
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
nodeCountryparameter 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 thenodeCountryparameter is not given in ISO 3166-1 alpha-2 format
-
-