Uses of Class
org.codehaus.staxmate.out.SMNamespace
Packages that use SMNamespace
-
Uses of SMNamespace in org.codehaus.staxmate.out
Subclasses of SMNamespace in org.codehaus.staxmate.outModifier and TypeClassDescriptionfinal class
Namespace that is global and shared for allSMOutputContext
)s (~= XML documents or sub-trees).final class
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 SMNamespaceModifier and TypeFieldDescription(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 final SMNamespace
SMOAttribute._namespace
protected final SMNamespace
SMOAttribute.Binary._namespace
protected final SMNamespace
SMOAttribute.IntAttribute._namespace
(package private) final SMNamespace
SMONamespace._namespace
protected final 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) final SMNamespace
SMONamespace._parentDefaultNS
Default namespace in effect for the parent element of the element on which this namespace (pre)declaration applies.protected static final SMNamespace
SMOutputContext.NS_EMPTY
protected static final SMNamespace
SMOutputContext.NS_XML
protected static final SMNamespace
SMOutputContext.NS_XMLNS
Fields in org.codehaus.staxmate.out with type parameters of type SMNamespaceModifier and TypeFieldDescriptionprotected 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 final HashMap
<String, SMNamespace> SMOutputContext.sGlobalNsMap
Methods in org.codehaus.staxmate.out that return SMNamespaceModifier and TypeMethodDescriptionprotected final SMNamespace
SMOutputContainer._verifyNamespaceArg
(SMNamespace ns) Method called to ensure that the passed-in namespace can be used for actual output operation.static final SMNamespace
SMOutputContext.getEmptyNamespace()
final 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).final 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.final SMNamespace
SMOutputContext.getNamespace
(String uri) final SMNamespace
SMOutputContext.getNamespace
(String uri, String prefPrefix) SMOutputElement.getNamespace()
Method that can be used to get the namespace of the element.SMOutputContext.writeStartElement
(SMNamespace ns, 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 SMNamespaceModifier and TypeMethodDescriptionprotected String
SMOutputContext._ensureBindingForAttribute
(SMNamespace ns) protected final 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.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.SMOutputContainer.addElement
(SMNamespace ns, String localName) Method for adding specified element as a child of this container.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 SMSimpleOutput
SMOAttribute.attribute
(SMNamespace namespace, String localName, byte[] value) static SMSimpleOutput
SMOAttribute.attribute
(SMNamespace namespace, String localName, int value) static SMSimpleOutput
SMOAttribute.attribute
(SMNamespace namespace, String localName, String value) private void
SMOutputContext.bindAndWriteNs
(SMNamespace ns, String prefix) Method for establishing binding between given namespace and a non-empty prefix, as well as writing resulting namespace declaration out.SMOutputContext.createAttribute
(SMNamespace ns, String localName, byte[] value) SMOutputContext.createAttribute
(SMNamespace ns, String localName, int value) SMOutputContext.createAttribute
(SMNamespace ns, String localName, String value) SMOutputContainer.createBufferedElement
(SMNamespace ns, String localName) Method constructing a buffer element Contents of buffered elements are not immediately output to the underlying stream.SMOutputContext.createNamespace
(SMNamespace ns, SMNamespace parentDefaultNS, int parentNsCount) Method called bySMOutputElement
to add buffered namespace pre-declaration.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, 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) SMOutputContext.writeStartElement
(SMNamespace ns, 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 SMNamespaceModifierConstructorDescriptionBinary
(SMNamespace namespace, String localName, byte[] value) IntAttribute
(SMNamespace namespace, String localName, int value) protected
SMBufferedElement
(SMOutputContext ctxt, String localName, SMNamespace ns) Note: although signature indicates we could throw an exception, this sub-class never does.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) protected
SMOutputElement
(SMOutputContext ctxt, String localName, SMNamespace ns)