public abstract class BaseBinder2<O extends PatternOptions> extends java.lang.Object implements Binder2<O>
| Constructor and Description |
|---|
BaseBinder2() |
| Modifier and Type | Method and Description |
|---|---|
abstract BinderResult |
bind(BinderParams<O> params)
To be implemented by subclasses.
|
boolean |
canRebind(org.w3c.dom.Node parent,
org.w3c.dom.Node toBind)
By default, Binders have the option of checking the DOM tree further to see if they
can be bound to it.
|
O |
generateOptions(BinderParams<O> params)
Binders can provide an options class that can be used to configure the environment
based on what is already there.
|
protected org.w3c.dom.Element |
getSingleBindRoot(org.w3c.dom.Node bindRoots)
Convenience method to return a single element from the set of bind roots.
|
public abstract BinderResult bind(BinderParams<O> params)
bind in interface Binder2<O extends PatternOptions>params - See BinderParams for a complete listpublic boolean canRebind(org.w3c.dom.Node parent,
org.w3c.dom.Node toBind)
@SimpleRebindChecking(true)canRebind in interface Binder2<O extends PatternOptions>parent - The parent of the nodes to be boundtoBind - The nodes to bind. Typically either a DocumentFragment or Elementpublic O generateOptions(BinderParams<O> params)
generateOptions in interface Binder2<O extends PatternOptions>params - See BinderParams for a complete listprotected org.w3c.dom.Element getSingleBindRoot(org.w3c.dom.Node bindRoots)
bindRoots - binding roots