org.inria.ns.reflex.processor.asl
Class ElementAction.Matcher

java.lang.Object
  extended by org.inria.ns.reflex.processor.asl.ItemMatcher
      extended by org.inria.ns.reflex.processor.asl.ElementAction.Matcher
All Implemented Interfaces:
Reducible
Direct Known Subclasses:
ElementAction.NameRef.ElementNameMatcher, ElementAction.NamespaceRef.ElementNamespaceMatcher
Enclosing class:
ElementAction

public abstract class ElementAction.Matcher
extends ItemMatcher

A material item based on an element.


Field Summary
 
Fields inherited from class org.inria.ns.reflex.processor.asl.ItemMatcher
FOUND, NOT_FOUND
 
Constructor Summary
ElementAction.Matcher()
           
 
Method Summary
 AbstractAction getAction()
          Return the action that has created this material item (used to report errors).
 TypedData matches(Object o, DataSet dataSet)
          Test if an object matches this material.
abstract  TypedData matches(QName elementName, DataSet dataSet)
          Test if an element name matches this material.
 
Methods inherited from class org.inria.ns.reflex.processor.asl.ItemMatcher
canUse, getExceptions, getInterimStep, getMaxInit, getMaxRest, getMinInit, getMinRest, mustUse, reportError, reset, runInterim, setBoundaries, setInterimStep, use
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementAction.Matcher

public ElementAction.Matcher()
Method Detail

matches

public TypedData matches(Object o,
                         DataSet dataSet)
Test if an object matches this material.

Specified by:
matches in class ItemMatcher
Parameters:
o - The object to test.
dataSet - The set of datas used when the matcher is matching.
Returns:
FOUND if the object matches this material and carries no data, a TypedData if the object matches this material and carries a data, NOT_FOUND otherwise.
See Also:
ItemMatcher.matches(Object,org.inria.ns.reflex.processor.DataSet)

matches

public abstract TypedData matches(QName elementName,
                                  DataSet dataSet)
Test if an element name matches this material.

Parameters:
elementName - The name of the element to test.
dataSet - The set of datas used when the matcher is matching.
Returns:
FOUND if the object matches this material and carries no data, a TypedData if the object matches this material and carries a data, NOT_FOUND otherwise.
See Also:
ItemMatcher.matches(Object,org.inria.ns.reflex.processor.DataSet)

getAction

public AbstractAction getAction()
Return the action that has created this material item (used to report errors).

Specified by:
getAction in class ItemMatcher
Returns:
The action that has created this material item.