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

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

public abstract class AttributeAction.Matcher
extends ItemMatcher

A material item based on an attribute.


Field Summary
 
Fields inherited from class org.inria.ns.reflex.processor.asl.ItemMatcher
FOUND, NOT_FOUND
 
Constructor Summary
AttributeAction.Matcher()
           
 
Method Summary
 AbstractAction getAction()
          Return the action that has created this material item (used to report errors).
 ActiveSchemaAction getSchema()
          Return the host schema of this attribute.
 boolean isLocal()
          Indicates whether the definition is local or not.
 TypedData matches(Object o, DataSet dataSet)
          Test if an object matches this material.
abstract  TypedData matches(QName attributeName, DataSet dataSet)
          Test if an attribute 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

AttributeAction.Matcher

public AttributeAction.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 attributeName,
                                  DataSet dataSet)
Test if an attribute name matches this material.

Parameters:
attributeName - The name of the attribute to test.
client - The schema client handler on behalf this matching will be performed. User defined matchers uses the client when the matcher is defined with active tags such as <asl:sequence>, <asl:choice> etc. Built-in matchers usually ignore it.
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.

isLocal

public boolean isLocal()
Indicates whether the definition is local or not.

Returns:
This implementation return false.

getSchema

public ActiveSchemaAction getSchema()
Return the host schema of this attribute.

Returns:
The host schema of this attribute.

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.