|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.xml.AbstractXMLObject
org.opensaml.xml.validation.AbstractValidatingXMLObject
org.opensaml.xml.ElementProxy
public class ElementProxy
An XMLObject that proxies a DOM element. This can be used represent the content of elements that do not have their own XMLObject representation. Generally this would be used as a catch-all mechanism such as when working with XML documents that contain content that may not be known at the time, such as elements defined in XML Schema that contain <any> constructs.
Constructor Summary | |
---|---|
protected |
ElementProxy(java.lang.String namespaceURI,
java.lang.String elementLocalName,
java.lang.String namespacePrefix)
Constructor. |
Method Summary | |
---|---|
java.util.List<XMLObject> |
getOrderedChildren()
Gets the list of child XMLObjects in insertion order. |
java.lang.String |
getTextContent()
Gets the text content for the proxied DOM Element. |
AttributeMap |
getUnknownAttributes()
Gets a mutable map of the attributes. |
java.util.List<XMLObject> |
getUnknownXMLObjects()
Gets the list of XMLObjects added to this XMLObject as part of the "any" content model. |
void |
setElementQName(java.lang.String namespaceURI,
java.lang.String elementLocalName,
java.lang.String namespacePrefix)
Sets the name of the element this XMLObject is proxying. |
void |
setTextContent(java.lang.String newContent)
Sets the text content for the proxied DOM Element. |
Methods inherited from class org.opensaml.xml.validation.AbstractValidatingXMLObject |
---|
deregisterValidator, getValidators, registerValidator, validate, validateChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensaml.xml.XMLObject |
---|
addNamespace, getDOM, getElementQName, getIDIndex, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNoNamespaceSchemaLocation, setParent, setSchemaLocation |
Methods inherited from interface org.opensaml.xml.XMLObject |
---|
addNamespace, getDOM, getElementQName, getIDIndex, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNoNamespaceSchemaLocation, setParent, setSchemaLocation |
Constructor Detail |
---|
protected ElementProxy(java.lang.String namespaceURI, java.lang.String elementLocalName, java.lang.String namespacePrefix)
namespaceURI
- the namespace the proxied element is inelementLocalName
- the local name of the proxied elementnamespacePrefix
- the prefix for the given namespaceMethod Detail |
---|
public void setElementQName(java.lang.String namespaceURI, java.lang.String elementLocalName, java.lang.String namespacePrefix)
namespaceURI
- the namespace the proxied element is inelementLocalName
- the local name of the proxied elementnamespacePrefix
- the prefix for the given namespacepublic java.lang.String getTextContent()
public void setTextContent(java.lang.String newContent)
newContent
- the text content for the proxied DOM Elementpublic AttributeMap getUnknownAttributes()
getUnknownAttributes
in interface AttributeExtensibleXMLObject
public java.util.List<XMLObject> getUnknownXMLObjects()
getUnknownXMLObjects
in interface ElementExtensibleXMLObject
public java.util.List<XMLObject> getOrderedChildren()
getOrderedChildren
in interface XMLObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |