public class StreamingSTRTransform.STRNodeReader
extends oracle.security.xmlsec.util.NodeReader
| Constructor and Description |
|---|
StreamingSTRTransform.STRNodeReader(oracle.security.xmlsec.util.NodeReader nr, java.util.Map<WSSecurityTokenReference,WSSecurityToken> STRToST) |
| Modifier and Type | Method and Description |
|---|---|
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.Map |
getNamespaces()
Returns all the namespaces on this START_ELEMENT.
|
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
|
java.util.SortedMap |
getSortedAttributes()
Returns all the attributes (not namespaces) on this START_ELEMENT.
|
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).
|
boolean |
isElementIncluded()
For special case when some of an element's attributes are in the node set but the element itself is not
|
boolean |
isElementInheritingNamespaces()
Whether the element inherits all the namespaces of its parents.
|
boolean |
isUnnecessaryEmptyDefaultNsRequired()
This is only used for STR-Transform and Decrpyt Transform where apex nodes in replacement nodesets should have xmlns="" if the apex node doesn't define the default namespace.
|
int |
next()
Get next parsing event.
|
public StreamingSTRTransform.STRNodeReader(oracle.security.xmlsec.util.NodeReader nr,
java.util.Map<WSSecurityTokenReference,WSSecurityToken> STRToST)
throws oracle.security.xmlsec.util.NodeReaderException
oracle.security.xmlsec.util.NodeReaderException
public int next()
throws oracle.security.xmlsec.util.NodeReaderException
oracle.security.xmlsec.util.NodeReadernext in class oracle.security.xmlsec.util.NodeReaderoracle.security.xmlsec.util.NodeReaderException
public java.util.Collection getAncestorXmlAttributes(boolean c14n11)
throws oracle.security.xmlsec.util.NodeReaderException
oracle.security.xmlsec.util.NodeReadergetAncestorXmlAttributes in class oracle.security.xmlsec.util.NodeReaderc14n11 - 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 ancestorsoracle.security.xmlsec.util.NodeReaderExceptionpublic java.util.Iterator getAttributes()
oracle.security.xmlsec.util.NodeReaderAll 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 oracle.security.xmlsec.util.NodeReaderpublic int getEventType()
oracle.security.xmlsec.util.NodeReadergetEventType in class oracle.security.xmlsec.util.NodeReaderpublic java.lang.String getLocalName()
oracle.security.xmlsec.util.NodeReadergetLocalName in class oracle.security.xmlsec.util.NodeReaderpublic java.util.Map getNamespaces()
oracle.security.xmlsec.util.NodeReadergetNamespaces in class oracle.security.xmlsec.util.NodeReaderpublic java.lang.String getNamespaceURI()
oracle.security.xmlsec.util.NodeReadergetNamespaceURI in class oracle.security.xmlsec.util.NodeReaderpublic org.w3c.dom.Node getNode()
oracle.security.xmlsec.util.NodeReadergetNode in class oracle.security.xmlsec.util.NodeReaderpublic java.lang.String getPIData()
oracle.security.xmlsec.util.NodeReadergetPIData in class oracle.security.xmlsec.util.NodeReaderpublic java.lang.String getPITarget()
oracle.security.xmlsec.util.NodeReadergetPITarget in class oracle.security.xmlsec.util.NodeReaderpublic java.lang.String getPrefix()
oracle.security.xmlsec.util.NodeReadergetPrefix in class oracle.security.xmlsec.util.NodeReaderpublic java.util.SortedMap getSortedAttributes()
oracle.security.xmlsec.util.NodeReadergetSortedAttributes in class oracle.security.xmlsec.util.NodeReaderpublic char[] getText()
oracle.security.xmlsec.util.NodeReadergetText in class oracle.security.xmlsec.util.NodeReaderpublic int getTextLength()
getTextLength in class oracle.security.xmlsec.util.NodeReaderpublic int getTextStart()
getTextStart in class oracle.security.xmlsec.util.NodeReader
public boolean hasNext()
throws oracle.security.xmlsec.util.NodeReaderException
oracle.security.xmlsec.util.NodeReaderhasNext in class oracle.security.xmlsec.util.NodeReaderoracle.security.xmlsec.util.NodeReaderExceptionpublic boolean isElementAnOrphan()
oracle.security.xmlsec.util.NodeReaderisElementAnOrphan in class oracle.security.xmlsec.util.NodeReaderpublic boolean isElementIncluded()
oracle.security.xmlsec.util.NodeReaderisElementIncluded in class oracle.security.xmlsec.util.NodeReaderpublic boolean isElementInheritingNamespaces()
oracle.security.xmlsec.util.NodeReaderisElementInheritingNamespaces in class oracle.security.xmlsec.util.NodeReaderpublic boolean isUnnecessaryEmptyDefaultNsRequired()
oracle.security.xmlsec.util.NodeReaderisUnnecessaryEmptyDefaultNsRequired in class oracle.security.xmlsec.util.NodeReader