public final class TagInfoset extends Object
This is used between StreamMessage
and StreamSOAPCodec
to capture the infoset of the s:Envelope, s:Header, and s:Body elements.
Since StAX and SAX uses different null vs empty string convention, one has to choose which format we store things. It can go either way, but I'm assuming that we'll be using StAX more in JAX-WS, so things are kept in the StAX style in this class.
Modifier and Type | Field and Description |
---|---|
org.xml.sax.helpers.AttributesImpl |
atts
Attributes on this tag.
|
String |
localName
Local name of the start tag.
|
String[] |
ns
Namespace declarations on this tag.
|
String |
nsUri
Namespace URI of the start tag in stax-style.
|
String |
prefix
Prefix of the start tag in stax-style.
|
Constructor and Description |
---|
TagInfoset(String nsUri,
String localName,
String prefix,
org.xml.sax.helpers.AttributesImpl atts,
String... ns) |
TagInfoset(XMLStreamReader reader)
Fills a
TagInfoset object by the current element
that the reader points to. |
Modifier and Type | Method and Description |
---|---|
List<String> |
allPrefixes(String namespaceURI) |
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String namespaceURI) |
void |
writeEnd(ContentHandler contentHandler)
Writes the end element event.
|
void |
writeStart(ContentHandler contentHandler)
Writes the start element event.
|
void |
writeStart(XMLStreamWriter w)
Writes the start element event.
|
@NotNull public final String[] ns
@NotNull public final org.xml.sax.helpers.AttributesImpl atts
@Nullable public final String prefix
@Nullable public final String nsUri
@NotNull public final String localName
public TagInfoset(String nsUri, String localName, String prefix, org.xml.sax.helpers.AttributesImpl atts, String... ns)
public TagInfoset(XMLStreamReader reader)
TagInfoset
object by the current element
that the reader points to.public void writeStart(ContentHandler contentHandler) throws SAXException
SAXException
public void writeEnd(ContentHandler contentHandler) throws SAXException
SAXException
public void writeStart(XMLStreamWriter w) throws XMLStreamException
XMLStreamException
Copyright © 2015 Oracle Corporation. All rights reserved.