package at.gv.egiz.eaaf.modules.pvp2.impl.reqattr; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.opensaml.common.impl.AbstractSAMLObject; import org.opensaml.xml.XMLObject; import org.opensaml.xml.util.IndexedXMLObjectChildrenList; import at.gv.egiz.eaaf.modules.pvp2.api.reqattr.EAAFRequestedAttribute; import at.gv.egiz.eaaf.modules.pvp2.api.reqattr.EAAFRequestedAttributes; public class EAAFRequestedAttributesImpl extends AbstractSAMLObject implements EAAFRequestedAttributes { private final IndexedXMLObjectChildrenList indexedChildren; public EAAFRequestedAttributesImpl(String namespaceURI, String elementLocalName, String namespacePrefix) { super(namespaceURI, elementLocalName, namespacePrefix); indexedChildren = new IndexedXMLObjectChildrenList(this); } @Override public List getOrderedChildren() { final List children = new ArrayList(); children.addAll(indexedChildren); return Collections.unmodifiableList(children); } @Override public List getAttributes() { return (List) indexedChildren .subList(EAAFRequestedAttribute.DEFAULT_ELEMENT_NAME); } }