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 classSMGlobalNamespaceNamespace that is global and shared for allSMOutputContext)s (~= XML documents or sub-trees).classSMLocalNamespaceNamespace 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) SMNamespaceSMOutputContext. _currElemNSNamespace of the last START_ELEMENT output.protected SMNamespaceSMOutputContext. _defaultNSCurrently active default namespace; one that is in effect within current scope (inside currently open element, if any; if none, within root level).protected SMNamespaceSMOAttribute. _namespaceprotected SMNamespaceSMOAttribute.Binary. _namespaceprotected SMNamespaceSMOAttribute.IntAttribute. _namespace(package private) SMNamespaceSMONamespace. _namespaceprotected SMNamespaceSMOutputElement. _namespaceNamespace of this element.(package private) SMNamespace[]SMOutputContext. _nsStackStack of bound non-default namespaces.protected SMNamespaceSMOutputElement. _parentDefaultNsNamespace that was bound as the default namespace in the context where this element gets output.(package private) SMNamespaceSMONamespace. _parentDefaultNSDefault namespace in effect for the parent element of the element on which this namespace (pre)declaration applies.protected static SMNamespaceSMOutputContext. NS_EMPTYprotected static SMNamespaceSMOutputContext. NS_XMLprotected static SMNamespaceSMOutputContext. NS_XMLNSFields 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. _localNsMapMap 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. sGlobalNsMapMethods in org.codehaus.staxmate.out that return SMNamespace Modifier and Type Method Description protected SMNamespaceSMOutputContainer. _verifyNamespaceArg(SMNamespace ns)Method called to ensure that the passed-in namespace can be used for actual output operation.static SMNamespaceSMOutputContext. getEmptyNamespace()SMNamespaceSMOutputContainer. 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).SMNamespaceSMOutputContainer. 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.SMNamespaceSMOutputContext. getNamespace(java.lang.String uri)SMNamespaceSMOutputContext. getNamespace(java.lang.String uri, java.lang.String prefPrefix)SMNamespaceSMOutputElement. getNamespace()Method that can be used to get the namespace of the element.SMNamespaceSMOutputContext. 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.StringSMOutputContext. _ensureBindingForAttribute(SMNamespace ns)protected SMNamespaceSMOutputContainer. _verifyNamespaceArg(SMNamespace ns)Method called to ensure that the passed-in namespace can be used for actual output operation.voidSMOutputElement. addAttribute(SMNamespace ns, java.lang.String localName, boolean value)Typed Access write method to use for adding attribute with boolean value.SMOutputElementSMOutputElement. 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)voidSMOutputElement. addAttribute(SMNamespace ns, java.lang.String localName, int value)Typed Access write method to use for adding attribute with integer value.voidSMOutputElement. addAttribute(SMNamespace ns, java.lang.String localName, long value)Typed Access write method to use for adding attribute with long value.voidSMOutputElement. addAttribute(SMNamespace ns, java.lang.String localName, java.lang.String value)Method for adding an attribute to this element.SMOutputElementSMOutputContainer. addElement(SMNamespace ns, java.lang.String localName)Method for adding specified element as a child of this container.SMOutputElementSMOutputContainer. 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 SMSimpleOutputSMOAttribute. attribute(SMNamespace namespace, java.lang.String localName, byte[] value)static SMSimpleOutputSMOAttribute. attribute(SMNamespace namespace, java.lang.String localName, int value)static SMSimpleOutputSMOAttribute. attribute(SMNamespace namespace, java.lang.String localName, java.lang.String value)private voidSMOutputContext. 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.SMOutputtableSMOutputContext. createAttribute(SMNamespace ns, java.lang.String localName, byte[] value)SMOutputtableSMOutputContext. createAttribute(SMNamespace ns, java.lang.String localName, int value)SMOutputtableSMOutputContext. createAttribute(SMNamespace ns, java.lang.String localName, java.lang.String value)SMBufferedElementSMOutputContainer. createBufferedElement(SMNamespace ns, java.lang.String localName)Method constructing a buffer element Contents of buffered elements are not immediately output to the underlying stream.SMOutputtableSMOutputContext. createNamespace(SMNamespace ns, SMNamespace parentDefaultNS, int parentNsCount)Method called bySMOutputElementto add buffered namespace pre-declaration.java.lang.StringSMOutputContext. findRootPrefix(SMNamespace ns)(package private) booleanSMOutputContext. isDefaultNs(SMNamespace ns)voidSMOutputContext. predeclareNamespace(SMNamespace ns, SMNamespace parentDefaultNS, int parentNsCount)Method called to try to pre-declare given namespacevoidSMOutputElement. 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.voidSMOutputContext. writeAttribute(SMNamespace ns, java.lang.String localName, byte[] value)voidSMOutputContext. writeAttribute(SMNamespace ns, java.lang.String localName, int value)voidSMOutputContext. writeAttribute(SMNamespace ns, java.lang.String localName, java.lang.String value)voidSMOutputContext. writeEndElement(int parentNsCount, SMNamespace parentDefNs)SMNamespaceSMOutputContext. 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)
-