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 classNamespace that is global and shared for allSMOutputContext)s (~= XML documents or sub-trees).final classNamespace 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) 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 final SMNamespaceSMOAttribute._namespaceprotected final SMNamespaceSMOAttribute.Binary._namespaceprotected final SMNamespaceSMOAttribute.IntAttribute._namespace(package private) final SMNamespaceSMONamespace._namespaceprotected final 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) final SMNamespaceSMONamespace._parentDefaultNSDefault namespace in effect for the parent element of the element on which this namespace (pre)declaration applies.protected static final SMNamespaceSMOutputContext.NS_EMPTYprotected static final SMNamespaceSMOutputContext.NS_XMLprotected static final SMNamespaceSMOutputContext.NS_XMLNSFields in org.codehaus.staxmate.out with type parameters of type SMNamespaceModifier and TypeFieldDescriptionprotected HashMap<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 final HashMap<String, SMNamespace> SMOutputContext.sGlobalNsMapMethods in org.codehaus.staxmate.out that return SMNamespaceModifier and TypeMethodDescriptionprotected final SMNamespaceSMOutputContainer._verifyNamespaceArg(SMNamespace ns) Method called to ensure that the passed-in namespace can be used for actual output operation.static final SMNamespaceSMOutputContext.getEmptyNamespace()final SMNamespaceSMOutputContainer.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 SMNamespaceSMOutputContainer.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 SMNamespaceSMOutputContext.getNamespace(String uri) final SMNamespaceSMOutputContext.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 StringSMOutputContext._ensureBindingForAttribute(SMNamespace ns) protected final SMNamespaceSMOutputContainer._verifyNamespaceArg(SMNamespace ns) Method called to ensure that the passed-in namespace can be used for actual output operation.voidSMOutputElement.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)voidSMOutputElement.addAttribute(SMNamespace ns, String localName, int value) Typed Access write method to use for adding attribute with integer value.voidSMOutputElement.addAttribute(SMNamespace ns, String localName, long value) Typed Access write method to use for adding attribute with long value.voidSMOutputElement.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 SMSimpleOutputSMOAttribute.attribute(SMNamespace namespace, String localName, byte[] value) static SMSimpleOutputSMOAttribute.attribute(SMNamespace namespace, String localName, int value) static SMSimpleOutputSMOAttribute.attribute(SMNamespace namespace, String localName, String value) private voidSMOutputContext.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 bySMOutputElementto add buffered namespace pre-declaration.SMOutputContext.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, String localName, byte[] value) voidSMOutputContext.writeAttribute(SMNamespace ns, String localName, int value) voidSMOutputContext.writeAttribute(SMNamespace ns, String localName, String value) voidSMOutputContext.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) protectedSMBufferedElement(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) protectedSMOutputElement(SMOutputContext ctxt, String localName, SMNamespace ns)