Class Bpmn20NamespaceContext

  • All Implemented Interfaces:
    javax.xml.namespace.NamespaceContext

    public class Bpmn20NamespaceContext
    extends java.lang.Object
    implements javax.xml.namespace.NamespaceContext
    XML NamespaceContext containing the namespaces used by BPMN 2.0 XML documents. Can be used in XPath.setNamespaceContext(NamespaceContext).
    Author:
    Falko Menge
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BPMN  
      static java.lang.String BPMNDI  
      protected java.util.Map<java.lang.String,​java.lang.String> namespaceUris
      This is a protected filed so you can extend that context with your own namespaces if necessary
      static java.lang.String OMGDC  
      static java.lang.String OMGDI  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getNamespaceURI​(java.lang.String prefix)  
      java.lang.String getPrefix​(java.lang.String namespaceURI)  
      java.util.Iterator<java.lang.String> getPrefixes​(java.lang.String namespaceURI)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • namespaceUris

        protected java.util.Map<java.lang.String,​java.lang.String> namespaceUris
        This is a protected filed so you can extend that context with your own namespaces if necessary
    • Constructor Detail

      • Bpmn20NamespaceContext

        public Bpmn20NamespaceContext()
    • Method Detail

      • getNamespaceURI

        public java.lang.String getNamespaceURI​(java.lang.String prefix)
        Specified by:
        getNamespaceURI in interface javax.xml.namespace.NamespaceContext
      • getPrefix

        public java.lang.String getPrefix​(java.lang.String namespaceURI)
        Specified by:
        getPrefix in interface javax.xml.namespace.NamespaceContext
      • getPrefixes

        public java.util.Iterator<java.lang.String> getPrefixes​(java.lang.String namespaceURI)
        Specified by:
        getPrefixes in interface javax.xml.namespace.NamespaceContext