org.inria.ns.reflex.processor.catalog
Class AbstractIdentifierAction

java.lang.Object
  extended by org.inria.ns.reflex.processor.core.AbstractAction
      extended by org.inria.ns.reflex.processor.catalog.GroupAction
          extended by org.inria.ns.reflex.processor.catalog.AbstractIdentifierAction
All Implemented Interfaces:
CatalogEntry, Executable, Presentable, NamespaceContextFactory
Direct Known Subclasses:
ResourceAction, URIAction

public abstract class AbstractIdentifierAction
extends GroupAction
implements CatalogEntry

A support to match a URI, a system ID, a public ID, or even a qualified name ; also deal with selectors.

See $cat:system-id, $cat:public-id, $cat:uri, and $cat:resource. Other properties are also used : $cat:selector and $cat:prefer.

Author:
Philippe Poulard
See Also:
ResourceAction

Nested Class Summary
 
Nested classes/interfaces inherited from class org.inria.ns.reflex.processor.core.AbstractAction
AbstractAction.ParameterAdapter, AbstractAction.UselessAction
 
Field Summary
 
Fields inherited from class org.inria.ns.reflex.processor.core.AbstractAction
actions, parent, processorInstance
 
Constructor Summary
AbstractIdentifierAction(Object identifier, Expression alternate, QName selector, Element element, AbstractAction parent)
          Creates a new instance of AbstractIdentifierAction.
 
Method Summary
 void runAction(DataSet dataSet)
          Check if a candidate identifier matches this identifier.
 
Methods inherited from class org.inria.ns.reflex.processor.catalog.GroupAction
unmarshal
 
Methods inherited from class org.inria.ns.reflex.processor.core.AbstractAction
addAction, addFallbackAction, createContext, getCanonicalPath, getFallbackAction, getLocalFallbackAction, getLogger, getNamespaceContext, getNode, getParent, recover, recover, removeFallbackAction, reorganize, run, runActions, toPrettyString, toPrettyString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.inria.ns.reflex.processor.catalog.CatalogEntry
feedContext, isMatching
 

Constructor Detail

AbstractIdentifierAction

public AbstractIdentifierAction(Object identifier,
                                Expression alternate,
                                QName selector,
                                Element element,
                                AbstractAction parent)
                         throws XPathException
Creates a new instance of AbstractIdentifierAction.

Parameters:
identifier - The identifier to match.
alternate - The alternate resource.
element - The element from which the action has been unmarshalled. Used for namespace prefix resolution when performing XPath expressions.
parent - The action depending from.
Throws:
XPathException
Method Detail

runAction

public void runAction(DataSet dataSet)
               throws ExecutionException,
                      XPathException
Check if a candidate identifier matches this identifier. Candidate identifiers are stored in the data set.

Overrides:
runAction in class GroupAction
Parameters:
dataSet - The set of datas used when the action is running.
Throws:
ExecutionException - If the action can't be performed.
XPathException