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

java.lang.Object
  extended by org.ow2.orchestra.pvm.internal.xml.Bindings

public class Bindings
extends Object

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

Author:
Tom Baeyens
See Also:
Parser

Field Summary
protected  Map<String,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(Element element)
          get a binding for the given element and category.
protected  Binding getBinding(Element element, List<Binding> categoryBindings)
           
 Binding getBinding(Element element, String category)
          get a binding for the given element and category.
 Map<String,List<Binding>> getBindings()
           
 Set<String> getTagNames(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 Map<String,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(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(Element element,
                          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(Element element,
                             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 Set<String> getTagNames(String category)
the set of all tagNames for which there is a binding specified in the given category


getBindings

public Map<String,List<Binding>> getBindings()
Returns:
the bindings


Copyright © 2011 OW2 Consortium. All Rights Reserved.