com.sun.xml.bind.v2.runtime.output
public abstract class XmlOutputAbstractImpl extends Object implements XmlOutput
Field Summary | |
---|---|
protected NamespaceContextImpl | nsContext
Set by the marshaller before the start tag is written for the root element. |
protected int[] | nsUriIndex2prefixIndex
The conversion table from the namespace URI index to prefix index.
|
protected XMLSerializer | serializer |
Method Summary | |
---|---|
void | attribute(Name name, String value) |
abstract void | attribute(int prefix, String localName, String value) |
void | beginStartTag(Name name)
Writes a start tag.
|
abstract void | beginStartTag(int prefix, String localName) |
void | endDocument(boolean fragment)
Called at the very end.
|
abstract void | endStartTag() |
void | endTag(Name name) |
abstract void | endTag(int prefix, String localName) |
void | startDocument(XMLSerializer serializer, boolean fragment, int[] nsUriIndex2prefixIndex, NamespaceContextImpl nsContext)
Called at the very beginning.
|
Parameters: prefix -1 if this attribute does not have a prefix (this handling differs from that of elements.)
At this point nsContext holds namespace declarations needed for this new element.
This method is used for writing tags that are indexed.
Parameters: fragment false if we are writing the whole document.
Parameters: serializer the XMLSerializer that coordinates this whole marshalling episode. fragment true if we are marshalling a fragment.