|
Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10680-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.util.NodeReader
oracle.security.xmlsec.util.NodeReaderForSubtree
public class NodeReaderForSubtree
FOR INTERNAL USE ONLY
Nested Class Summary | |
---|---|
class |
NodeReaderForSubtree.SimpleNamedNodeMap |
Nested classes/interfaces inherited from class oracle.security.xmlsec.util.NodeReader |
---|
NodeReader.NodeListener |
Field Summary |
---|
Fields inherited from class oracle.security.xmlsec.util.NodeReader |
---|
CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, PROCESSING_INSTRUCTION, START_DOCUMENT, START_ELEMENT |
Constructor Summary | |
---|---|
NodeReaderForSubtree(org.w3c.dom.Node subTree) |
Method Summary | |
---|---|
java.util.Collection |
getAncestorXmlAttributes(boolean c14n11) Get a list of all the xml attributes in the ancestors of this element, whether the elements are in the nodeset or not. |
java.util.Iterator |
getAttributes() Returns all the namespaces and attributes on this START_ELEMENT. |
int |
getEventType() Returns an integer code that indicates the type of the event the cursor is pointing to START_ELEMENT END_ELEMENT PROCESSING_INSTRUCTION CHARACTERS COMMENT START_DOCUMENT END_DOCUMENT |
java.lang.String |
getLocalName() Returns the (local) name of the current event. |
java.util.Iterator |
getNamespacesForMissingAncestors() Returns those inherited namespace declaration, for which the ancestor element that declares the namespace is missing from the nodeset. |
java.lang.String |
getNamespaceURI() If the current event is a START_ELEMENT or END_ELEMENT this method returns the URI of the prefix or the default namespace |
org.w3c.dom.Node |
getNode() Returns the current node. |
java.lang.String |
getPIData() Get the data section of a processing instruction |
java.lang.String |
getPITarget() Get the target of a processing instruction |
java.lang.String |
getPrefix() Returns the prefix of the current event or null if the event does not have a prefix |
char[] |
getText() Returns the current value of the parse event as a character array, this returns the string value of a CHARACTERS event, returns the value of a COMMENT, |
int |
getTextLength() |
int |
getTextStart() |
boolean |
hasNext() Returns true if there are more parsing events and false if there are no more events. |
boolean |
isElementAnOrphan() Returns whether this element in an orphan (i.e the element is included but its parent is not included in the nodeset). |
int |
next() Get next parsing event. |
Methods inherited from class oracle.security.xmlsec.util.NodeReader |
---|
addListener, fireConsumeNode, getNamespaces, getSortedAttributes, isElementIncluded, isElementInheritingNamespaces, isUnnecessaryEmptyDefaultNsRequired, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeReaderForSubtree(org.w3c.dom.Node subTree)
Method Detail |
---|
public final int next()
NodeReader
next
in class NodeReader
public final int getEventType()
NodeReader
getEventType
in class NodeReader
public final java.lang.String getLocalName()
NodeReader
getLocalName
in class NodeReader
public final java.lang.String getNamespaceURI()
NodeReader
getNamespaceURI
in class NodeReader
public final java.lang.String getPrefix()
NodeReader
getPrefix
in class NodeReader
public final java.lang.String getPIData()
NodeReader
getPIData
in class NodeReader
public final java.lang.String getPITarget()
NodeReader
getPITarget
in class NodeReader
public final char[] getText()
NodeReader
getText
in class NodeReader
public final int getTextStart()
getTextStart
in class NodeReader
public final int getTextLength()
getTextLength
in class NodeReader
public final boolean hasNext()
NodeReader
hasNext
in class NodeReader
public final org.w3c.dom.Node getNode()
NodeReader
getNode
in class NodeReader
public final java.util.Iterator getAttributes()
NodeReader
All NodeReaders must implement this. Additionally a node reader may implement the NodeReader.getNamespaces()
and NodeReader.getSortedAttributes()
methods to return the namespaces and attributes separately.
getAttributes
in class NodeReader
public boolean isElementAnOrphan()
NodeReader
isElementAnOrphan
in class NodeReader
public java.util.Collection getAncestorXmlAttributes(boolean c14n11) throws NodeReaderException
NodeReader
getAncestorXmlAttributes
in class NodeReader
c14n11
- follow C14n 1.1 rules, i.e. for simple inheritable attributes - xml:lang and xml:space, return the nearest ancestor, and for xml:base merge the values from missing ancestorsNodeReaderException
public java.util.Iterator getNamespacesForMissingAncestors()
NodeReader
E.gfor this xml <foo xmlns:n1="n1"> <bar xmlns:n2="n2"/> </foo>
if foo is not included in the nodeset, but bar is included, bar inherits the n1 namespace declaration. So n1 should be returned by this function and both n1 and n2 should be returned by getAttributes
getNamespacesForMissingAncestors
in class NodeReader
|
Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10680-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |