Class MetadataListImpl
- java.lang.Object
-
- org.opensaml.core.xml.AbstractXMLObject
-
- se.litsec.eidas.opensaml.metadata.impl.MetadataListImpl
-
- All Implemented Interfaces:
AttributeExtensibleXMLObject
,XMLObject
,SAMLObject
,MetadataList
public class MetadataListImpl extends AbstractXMLObject implements MetadataList
Implementation class forMetadataList
.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Field Summary
-
Fields inherited from interface se.litsec.eidas.opensaml.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MetadataLocation>
getMetadataLocations()
Returns a reference to the list of metadata location elements.List<XMLObject>
getOrderedChildren()
boolean
getSuspend()
For the Swedish eIDAS configuration, a flag,Suspend
is used to indicate whether a metadata list for a specific territory is suspended.String
getTerritory()
Returns the territory country identifier for this metadata list.AttributeMap
getUnknownAttributes()
void
setSuspend(boolean suspendFlag)
Assigns theSuspend
flag.void
setTerritory(String territory)
Assigns the territory country identifier for this metadata list.-
Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, 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, 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 Detail
-
MetadataListImpl
protected MetadataListImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
Constructor.- Parameters:
namespaceURI
- the namespace the element is inelementLocalName
- the local name of the XML element this Object representsnamespacePrefix
- the prefix for the given namespace
-
-
Method Detail
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
- Specified by:
getOrderedChildren
in interfaceXMLObject
-
getUnknownAttributes
public AttributeMap getUnknownAttributes()
- Specified by:
getUnknownAttributes
in interfaceAttributeExtensibleXMLObject
-
getMetadataLocations
public List<MetadataLocation> getMetadataLocations()
Returns a reference to the list of metadata location elements.- Specified by:
getMetadataLocations
in interfaceMetadataList
- Returns:
- metadata location elements
-
getTerritory
public String getTerritory()
Returns the territory country identifier for this metadata list.- Specified by:
getTerritory
in interfaceMetadataList
- Returns:
- country code
-
setTerritory
public void setTerritory(String territory)
Assigns the territory country identifier for this metadata list.- Specified by:
setTerritory
in interfaceMetadataList
- 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 short cut instead of usingAttributeExtensibleXMLObject.getUnknownAttributes()
.- Specified by:
getSuspend
in interfaceMetadataList
- Returns:
- if the
Suspend
flag has been set totrue
this method returnstrue
, otherwisefalse
-
setSuspend
public void setSuspend(boolean suspendFlag)
Assigns theSuspend
flag. SeeMetadataList.getSuspend()
.- Specified by:
setSuspend
in interfaceMetadataList
- Parameters:
suspendFlag
- the suspend flag
-
-