org.ow2.bonita.pvm.internal.xml
Class Bindings

java.lang.Object
  extended by org.ow2.bonita.pvm.internal.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.List<Binding>> bindings
          maps categories to a list of bindings
 
Constructor Summary
Bindings()
           
Bindings(Bindings other)
          to be used when you want to customize the binding behaviour of a Parser.
 
Method Summary
 void addBinding(Binding binding)
          add an elementParser to this parser that will handle parsing of elements of the given tagName for the default category.
 Binding getBinding(org.w3c.dom.Element element)
          get a binding for the given element and category.
protected  Binding getBinding(org.w3c.dom.Element element, java.util.List<Binding> categoryBindings)
           
 Binding getBinding(org.w3c.dom.Element element, java.lang.String category)
          get a binding for the given element and category.
 java.util.Set<java.lang.String> 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

bindings

protected java.util.Map<java.lang.String,java.util.List<Binding>> bindings
maps categories to a list of bindings

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

protected Binding getBinding(org.w3c.dom.Element element,
                             java.util.List<Binding> categoryBindings)

addBinding

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


getTagNames

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



Copyright © 2009 OW2 Consortium. All Rights Reserved.