Package | Description |
---|---|
org.codehaus.staxmate.out |
Package contains classes for output functionality.
|
Modifier and Type | Class and Description |
---|---|
class |
SMGlobalNamespace
Namespace that is global and shared for all
SMOutputContext )s
(~= XML documents or sub-trees). |
class |
SMLocalNamespace
Namespace that is local to a specific output context
(
SMOutputContext ), think of it as the document or sub-tree
StaxMate will output using a stream writer). |
Modifier and Type | Field and Description |
---|---|
protected SMNamespace |
SMOutputContext._defaultNS
Currently active default namespace; one that is in effect within
current scope (inside currently open element, if any; if none,
within root level).
|
protected SMNamespace |
SMOutputElement._namespace
Namespace of this element.
|
protected SMNamespace |
SMOAttribute._namespace |
protected SMNamespace |
SMOAttribute.IntAttribute._namespace |
protected SMNamespace |
SMOAttribute.Binary._namespace |
protected SMNamespace |
SMOutputElement._parentDefaultNs
Namespace that was bound as the default namespace in the context
where this element gets output.
|
protected static SMNamespace |
SMOutputContext.NS_EMPTY |
protected static SMNamespace |
SMOutputContext.NS_XML |
protected static SMNamespace |
SMOutputContext.NS_XMLNS |
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,SMNamespace> |
SMOutputContext._localNsMap
Map that contains all local namespaces, that is, namespaces
that have been created for use with documents output using
this context.
|
protected static HashMap<String,SMNamespace> |
SMOutputContext.sGlobalNsMap |
Modifier and Type | Method and Description |
---|---|
protected SMNamespace |
SMOutputContainer._verifyNamespaceArg(SMNamespace ns)
Method called to ensure that the passed-in namespace can be
used for actual output operation.
|
static SMNamespace |
SMOutputContext.getEmptyNamespace() |
SMNamespace |
SMOutputElement.getNamespace()
Method that can be used to get the namespace of the element.
|
SMNamespace |
SMOutputContext.getNamespace(String uri) |
SMNamespace |
SMOutputContainer.getNamespace(String uri)
Convenience method for getting namespace instance that
uniquely represents the specified URI (uniquely meaning
that for a given output context there are never more than
one instances for a given URI; which means that identity
comparison is enough to check for equality of two namespaces).
|
SMNamespace |
SMOutputContext.getNamespace(String uri,
String prefPrefix) |
SMNamespace |
SMOutputContainer.getNamespace(String uri,
String prefPrefix)
Method for getting namespace instance that
represents the specified URI, and if it is not yet bound,
tries to bind it to given prefix.
|
SMNamespace |
SMOutputContext.writeStartElement(SMNamespace ns,
String localName)
Method called by the element object when it is about to get written
out.
|
Modifier and Type | Method and Description |
---|---|
protected String |
SMOutputContext._ensureBindingForAttribute(SMNamespace ns) |
protected SMNamespace |
SMOutputContainer._verifyNamespaceArg(SMNamespace ns)
Method called to ensure that the passed-in namespace can be
used for actual output operation.
|
void |
SMOutputElement.addAttribute(SMNamespace ns,
String localName,
boolean value)
Typed Access write method to use for adding attribute with
boolean value.
|
SMOutputElement |
SMOutputElement.addAttribute(SMNamespace ns,
String localName,
byte[] value)
Typed Access write method to use for adding attribute with
base64-encoded binary value using appropriate default variant
(MIME, no linefeeds)
|
void |
SMOutputElement.addAttribute(SMNamespace ns,
String localName,
int value)
Typed Access write method to use for adding attribute with
integer value.
|
void |
SMOutputElement.addAttribute(SMNamespace ns,
String localName,
long value)
Typed Access write method to use for adding attribute with
long value.
|
void |
SMOutputElement.addAttribute(SMNamespace ns,
String localName,
String value)
Method for adding an attribute to this element.
|
SMOutputElement |
SMOutputContainer.addElement(SMNamespace ns,
String localName)
Method for adding specified element as a child of this
container.
|
SMOutputElement |
SMOutputContainer.addElementWithCharacters(SMNamespace ns,
String localName,
String text)
Convenience method for adding a child element (that has no
attributes) to this container, and adding specified text
as child of that child element.
|
static org.codehaus.staxmate.out.SMSimpleOutput |
SMOAttribute.attribute(SMNamespace namespace,
String localName,
byte[] value) |
static org.codehaus.staxmate.out.SMSimpleOutput |
SMOAttribute.attribute(SMNamespace namespace,
String localName,
int value) |
static org.codehaus.staxmate.out.SMSimpleOutput |
SMOAttribute.attribute(SMNamespace namespace,
String localName,
String value) |
SMOutputtable |
SMOutputContext.createAttribute(SMNamespace ns,
String localName,
byte[] value) |
SMOutputtable |
SMOutputContext.createAttribute(SMNamespace ns,
String localName,
int value) |
SMOutputtable |
SMOutputContext.createAttribute(SMNamespace ns,
String localName,
String value) |
SMBufferedElement |
SMOutputContainer.createBufferedElement(SMNamespace ns,
String localName)
Method constructing a buffer element
Contents of buffered elements are not immediately output
to the underlying stream.
|
SMOutputtable |
SMOutputContext.createNamespace(SMNamespace ns,
SMNamespace parentDefaultNS,
int parentNsCount)
Method called by
SMOutputElement to add buffered namespace
pre-declaration. |
String |
SMOutputContext.findRootPrefix(SMNamespace ns) |
void |
SMOutputElement.predeclareNamespace(SMNamespace ns)
Method that can be (but never has to) called to force declaration
of given namespace for this element, if that is possible (i.e.
|
void |
SMOutputContext.predeclareNamespace(SMNamespace ns,
SMNamespace parentDefaultNS,
int parentNsCount)
Method called to try to pre-declare given namespace
|
void |
SMOutputContext.writeAttribute(SMNamespace ns,
String localName,
byte[] value) |
void |
SMOutputContext.writeAttribute(SMNamespace ns,
String localName,
int value) |
void |
SMOutputContext.writeAttribute(SMNamespace ns,
String localName,
String value) |
void |
SMOutputContext.writeEndElement(int parentNsCount,
SMNamespace parentDefNs) |
SMNamespace |
SMOutputContext.writeStartElement(SMNamespace ns,
String localName)
Method called by the element object when it is about to get written
out.
|
Constructor and Description |
---|
SMBufferedElement(SMOutputContext ctxt,
String localName,
SMNamespace ns)
Note: although signature indicates we could throw an exception,
this sub-class never does.
|
SMOAttribute.Binary(SMNamespace namespace,
String localName,
byte[] value) |
SMOAttribute.IntAttribute(SMNamespace namespace,
String localName,
int value) |
SMOAttribute(SMNamespace namespace,
String localName,
String value)
Deprecated.
Since 2.2 Use factory methods instead of direct construction.
|
SMONamespace(SMNamespace ns,
SMNamespace parentDefaultNS,
int parentNsCount) |
SMOutputElement(SMOutputContext ctxt,
String localName,
SMNamespace ns) |
Copyright © 2013 FasterXML. All Rights Reserved.