org.nodal.nav
Class PathOp.Factory

java.lang.Object
  extended byorg.nodal.nav.PathOp.Factory
Enclosing class:
PathOp

public abstract static class PathOp.Factory
extends java.lang.Object

An abstract Factory class for PathOp instances. This can be used by extending the class for each subclass of PathOp and then creating an instance of the derived class in a static initializer for the PathOp class. The Factory will then be automatically registered with the Paths registry and incorporated into the parsing and creation algorithms for Path objects.


Constructor Summary
protected PathOp.Factory(java.lang.String functionName)
          Register this Factory with the Paths registry.
 
Method Summary
abstract  PathOp create(java.lang.String[] args)
          Creates a PathOp with the given arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathOp.Factory

protected PathOp.Factory(java.lang.String functionName)
Register this Factory with the Paths registry.

Method Detail

create

public abstract PathOp create(java.lang.String[] args)
                       throws Path.Failure
Creates a PathOp with the given arguments.

Throws:
Path.Failure