Uses of Class
org.codehaus.staxmate.out.SMNamespace
-
Packages that use SMNamespace Package Description org.codehaus.staxmate.out Package contains classes for output functionality. -
-
Uses of SMNamespace in org.codehaus.staxmate.out
Subclasses of SMNamespace in org.codehaus.staxmate.out Modifier and Type Class Description class
SMGlobalNamespace
Namespace that is global and shared for allSMOutputContext
)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).Fields in org.codehaus.staxmate.out declared as SMNamespace Modifier and Type Field Description (package private) SMNamespace
SMOutputContext. _currElemNS
Namespace of the last START_ELEMENT output.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
SMOAttribute. _namespace
protected SMNamespace
SMOAttribute.Binary. _namespace
protected SMNamespace
SMOAttribute.IntAttribute. _namespace
(package private) SMNamespace
SMONamespace. _namespace
protected SMNamespace
SMOutputElement. _namespace
Namespace of this element.(package private) SMNamespace[]
SMOutputContext. _nsStack
Stack of bound non-default namespaces.protected SMNamespace
SMOutputElement. _parentDefaultNs
Namespace that was bound as the default namespace in the context where this element gets output.(package private) SMNamespace
SMONamespace. _parentDefaultNS
Default namespace in effect for the parent element of the element on which this namespace (pre)declaration applies.protected static SMNamespace
SMOutputContext. NS_EMPTY
protected static SMNamespace
SMOutputContext. NS_XML
protected static SMNamespace
SMOutputContext. NS_XMLNS
Fields in org.codehaus.staxmate.out with type parameters of type SMNamespace Modifier and Type Field Description protected java.util.HashMap<java.lang.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 java.util.HashMap<java.lang.String,SMNamespace>
SMOutputContext. sGlobalNsMap
Methods in org.codehaus.staxmate.out that return SMNamespace Modifier and Type Method 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
SMOutputContainer. getNamespace(java.lang.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
SMOutputContainer. getNamespace(java.lang.String uri, java.lang.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. getNamespace(java.lang.String uri)
SMNamespace
SMOutputContext. getNamespace(java.lang.String uri, java.lang.String prefPrefix)
SMNamespace
SMOutputElement. getNamespace()
Method that can be used to get the namespace of the element.SMNamespace
SMOutputContext. writeStartElement(SMNamespace ns, java.lang.String localName)
Method called by the element object when it is about to get written out.Methods in org.codehaus.staxmate.out with parameters of type SMNamespace Modifier and Type Method Description protected java.lang.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, java.lang.String localName, boolean value)
Typed Access write method to use for adding attribute with boolean value.SMOutputElement
SMOutputElement. addAttribute(SMNamespace ns, java.lang.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, java.lang.String localName, int value)
Typed Access write method to use for adding attribute with integer value.void
SMOutputElement. addAttribute(SMNamespace ns, java.lang.String localName, long value)
Typed Access write method to use for adding attribute with long value.void
SMOutputElement. addAttribute(SMNamespace ns, java.lang.String localName, java.lang.String value)
Method for adding an attribute to this element.SMOutputElement
SMOutputContainer. addElement(SMNamespace ns, java.lang.String localName)
Method for adding specified element as a child of this container.SMOutputElement
SMOutputContainer. addElementWithCharacters(SMNamespace ns, java.lang.String localName, java.lang.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 SMSimpleOutput
SMOAttribute. attribute(SMNamespace namespace, java.lang.String localName, byte[] value)
static SMSimpleOutput
SMOAttribute. attribute(SMNamespace namespace, java.lang.String localName, int value)
static SMSimpleOutput
SMOAttribute. attribute(SMNamespace namespace, java.lang.String localName, java.lang.String value)
private void
SMOutputContext. bindAndWriteNs(SMNamespace ns, java.lang.String prefix)
Method for establishing binding between given namespace and a non-empty prefix, as well as writing resulting namespace declaration out.SMOutputtable
SMOutputContext. createAttribute(SMNamespace ns, java.lang.String localName, byte[] value)
SMOutputtable
SMOutputContext. createAttribute(SMNamespace ns, java.lang.String localName, int value)
SMOutputtable
SMOutputContext. createAttribute(SMNamespace ns, java.lang.String localName, java.lang.String value)
SMBufferedElement
SMOutputContainer. createBufferedElement(SMNamespace ns, java.lang.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 bySMOutputElement
to add buffered namespace pre-declaration.java.lang.String
SMOutputContext. findRootPrefix(SMNamespace ns)
(package private) boolean
SMOutputContext. isDefaultNs(SMNamespace ns)
void
SMOutputContext. predeclareNamespace(SMNamespace ns, SMNamespace parentDefaultNS, int parentNsCount)
Method called to try to pre-declare given namespacevoid
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. writeAttribute(SMNamespace ns, java.lang.String localName, byte[] value)
void
SMOutputContext. writeAttribute(SMNamespace ns, java.lang.String localName, int value)
void
SMOutputContext. writeAttribute(SMNamespace ns, java.lang.String localName, java.lang.String value)
void
SMOutputContext. writeEndElement(int parentNsCount, SMNamespace parentDefNs)
SMNamespace
SMOutputContext. writeStartElement(SMNamespace ns, java.lang.String localName)
Method called by the element object when it is about to get written out.Constructors in org.codehaus.staxmate.out with parameters of type SMNamespace Constructor Description Binary(SMNamespace namespace, java.lang.String localName, byte[] value)
IntAttribute(SMNamespace namespace, java.lang.String localName, int value)
SMBufferedElement(SMOutputContext ctxt, java.lang.String localName, SMNamespace ns)
Note: although signature indicates we could throw an exception, this sub-class never does.SMOAttribute(SMNamespace namespace, java.lang.String localName, java.lang.String value)
Deprecated.Since 2.2 Use factory methods instead of direct construction.SMONamespace(SMNamespace ns, SMNamespace parentDefaultNS, int parentNsCount)
SMOutputElement(SMOutputContext ctxt, java.lang.String localName, SMNamespace ns)
-