Class NamespaceContextImpl.Element

  • Enclosing class:
    NamespaceContextImpl

    public final class NamespaceContextImpl.Element
    extends java.lang.Object
    This model of namespace declarations maintain the following invariants.
    • If a non-empty prefix is declared, it will never be reassigned to different namespace URIs.
    • Method Detail

      • isRootElement

        public boolean isRootElement()
        Returns true if this NamespaceContextImpl.Element represents the root element that we are marshalling.
      • setTagName

        public void setTagName​(int prefix,
                               java.lang.String localName,
                               java.lang.Object outerPeer)
      • setTagName

        public void setTagName​(Name tagName,
                               java.lang.Object outerPeer)
      • startElement

        public void startElement​(XmlOutput out,
                                 java.lang.Object innerPeer)
                          throws java.io.IOException,
                                 javax.xml.stream.XMLStreamException
        Throws:
        java.io.IOException
        javax.xml.stream.XMLStreamException
      • endElement

        public void endElement​(XmlOutput out)
                        throws java.io.IOException,
                               org.xml.sax.SAXException,
                               javax.xml.stream.XMLStreamException
        Throws:
        java.io.IOException
        org.xml.sax.SAXException
        javax.xml.stream.XMLStreamException
      • count

        public final int count()
        Gets the number of bindings declared on this element.
      • getPrefix

        public final java.lang.String getPrefix​(int idx)
        Gets the prefix declared in this context.
        Parameters:
        idx - between 0 and count()
      • getNsUri

        public final java.lang.String getNsUri​(int idx)
        Gets the namespace URI declared in this context.
        Parameters:
        idx - between 0 and count()
      • getBase

        public int getBase()
      • getOuterPeer

        public java.lang.Object getOuterPeer()
      • getInnerPeer

        public java.lang.Object getInnerPeer()