org.jbpm.xml
Class Bindings

java.lang.Object
  extended by org.jbpm.xml.Bindings

public class Bindings
extends java.lang.Object

a set of Bindings divided into categories managed by a Parser. See also 'Bindinds'

Author:
Tom Baeyens
See Also:
Parser

Field Summary
protected  java.util.Map<java.lang.String,java.util.Map<javax.xml.namespace.QName,Binding>> categories
           
 
Constructor Summary
Bindings()
           
Bindings(Bindings other)
          to be used when you want to customize the binding behaviour of a Parser.
 
Method Summary
 void addBinding(javax.xml.namespace.QName tagName, Binding binding)
           
 void addBinding(javax.xml.namespace.QName tagName, Binding binding, java.lang.String category)
           
 void addBinding(java.lang.String tagName, Binding binding)
          add an elementParser to this parser that will handle parsing of elements of the given tagName for the default category.
 void addBinding(java.lang.String tagName, Binding binding, java.lang.String category)
          add an elementParser to this parser that will handle parsing of elements of the given tagName for the given category.
 Binding getBinding(org.w3c.dom.Element element)
          get a binding for the given element and category.
 Binding getBinding(org.w3c.dom.Element element, java.lang.String category)
          get a binding for the given element and category.
 Binding getBinding(javax.xml.namespace.QName tagName)
          looks up a binding for a given tagName in the default category.
 Binding getBinding(javax.xml.namespace.QName tagName, java.lang.String category)
          looks up a binding for a given tagName and category.
 java.util.Set<javax.xml.namespace.QName> getTagNames(java.lang.String category)
          the set of all tagNames for which there is a binding specified in the given category
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

categories

protected java.util.Map<java.lang.String,java.util.Map<javax.xml.namespace.QName,Binding>> categories
Constructor Detail

Bindings

public Bindings()

Bindings

public Bindings(Bindings other)
to be used when you want to customize the binding behaviour of a Parser.

Method Detail

getBinding

public Binding getBinding(org.w3c.dom.Element element)
get a binding for the given element and category. If the category is null, then all the categories will be searched for a binding in random order.


getBinding

public Binding getBinding(org.w3c.dom.Element element,
                          java.lang.String category)
get a binding for the given element and category. If the category is null, then all the categories will be searched for a binding in random order.


getBinding

public Binding getBinding(javax.xml.namespace.QName tagName)
looks up a binding for a given tagName in the default category.


getBinding

public Binding getBinding(javax.xml.namespace.QName tagName,
                          java.lang.String category)
looks up a binding for a given tagName and category.


addBinding

public void addBinding(java.lang.String tagName,
                       Binding binding)
add an elementParser to this parser that will handle parsing of elements of the given tagName for the default category.


addBinding

public void addBinding(javax.xml.namespace.QName tagName,
                       Binding binding)

addBinding

public void addBinding(java.lang.String tagName,
                       Binding binding,
                       java.lang.String category)
add an elementParser to this parser that will handle parsing of elements of the given tagName for the given category.


addBinding

public void addBinding(javax.xml.namespace.QName tagName,
                       Binding binding,
                       java.lang.String category)

getTagNames

public java.util.Set<javax.xml.namespace.QName> getTagNames(java.lang.String category)
the set of all tagNames for which there is a binding specified in the given category