|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.p13n.expression.ExpressionFactory
A factory class to create instances of the various implementation classes in the expression package.
Constructor Summary | |
ExpressionFactory()
|
Method Summary | |
static Evaluator |
createEvaluator(Map environment)
Creates a stateful Evaluator using the supplied environment. |
static Evaluator |
createEvaluator(Map environment,
UnificationList unificationList)
Creates an Evaluator object using the supplied environment and
a UnificationList . |
static Executor |
createExecutor(Map environment)
Creates an Executor if it is not cached, otherwise returns the cached
Executor . |
static Expression |
createExpression(Map environment,
Reader reader)
Creates an Expression using the supplied environment, reading and parsing
the characters from the supplied reader. |
static Expression |
createExpression(Map environment,
String xmlString)
Creates an Expression using the supplied environment and parsing the
supplied string. |
static Optimizer |
createOptimizer(Map environment,
ObjectFilter objectFilter)
Creates an Optimizer using the supplied environment and an
ObjectFilter . |
static UnificationList |
createUnificationList(Map environment)
Creates a UnificationList using the supplied environment. |
static Unifier |
createUnifier(Map environment,
UnificationList unificationList)
Creates a Unifier using the supplied
environment and the UnificationList . |
static Validator |
createValidator(Map environment)
Creates a stateful Evaluator object using the supplied environment. |
static Validator |
createValidator(Map environment,
Evaluator evaluator)
Creates a Validator object using the supplied environment and
an Evaluator . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExpressionFactory()
Method Detail |
public static Evaluator createEvaluator(Map environment)
Evaluator
using the supplied environment.
environment
- The environment information to be used during creation
of an Evaluator
.
Evaluator
that can evaluate an expression.Evaluator
public static Evaluator createEvaluator(Map environment, UnificationList unificationList)
Evaluator
object using the supplied environment and
a UnificationList
. If the supplied UnificationList
is null
then a stateful Evaluator
is returned, otherwise a stateless
Evaluator
is created by associating the supplied UnificationList
.
environment
- The environment information to be used during creation
of an Evaluator
.unificationList
- An UnificationList.
Evaluator
that can evaluate an expression.Evaluator
public static Executor createExecutor(Map environment)
Executor
if it is not cached, otherwise returns the cached
Executor
.
environment
- The environment information to be used during creation
of an Executor
.
Executor
that can execute an expression.Executor
public static Expression createExpression(Map environment, Reader reader) throws ExpressionException
Expression
using the supplied environment, reading and parsing
the characters from the supplied reader.
environment
- The information that is used to create an Expression
.reader
- The reader from which the characters will be read and
parsed into an expression object.
Expression
.
ExpressionException
- If an error occurs during reading or parsing.Expression
public static Expression createExpression(Map environment, String xmlString) throws ExpressionException
Expression
using the supplied environment and parsing the
supplied string.
environment
- The information that is used to create an Expression
.xmlString
- The XML string that is read and parsed into an expression object.
Expression
.
ExpressionException
- If an error occurs during parsing.Expression
public static Optimizer createOptimizer(Map environment, ObjectFilter objectFilter)
Optimizer
using the supplied environment and an
ObjectFilter
.
environment
- The information that is used to create an Optimizer
.objectFilter
- An ObjectFilter
that is used during optimization.
Optimizer
that can optimize an expression.Optimizer
public static UnificationList createUnificationList(Map environment)
UnificationList
using the supplied environment.
environment
- A Map
containing the environment
information that is used to create a UnificationList
.
UnificationList
.UnificationList
public static Unifier createUnifier(Map environment, UnificationList unificationList)
Unifier
using the supplied
environment and the UnificationList
.
environment
- A Map
containing
environment information that is used to create a
Unifier
.unificationList
- A UnificationList
that
is used to bind variables to their values.
Unifier
that can unify an expression.Unifier
public static Validator createValidator(Map environment)
Evaluator
object using the supplied environment.
environment
- The environment information to be used during creation
of the Evaluator
.
Validator
that can validate an expression.Validator
public static Validator createValidator(Map environment, Evaluator evaluator)
Validator
object using the supplied environment and
an Evaluator
. If the supplied Evaluator
is null
then a stateful Validator
is returned otherwise a stateless
Validator
is created by associating the given Evaluator
.
environment
- The environment information to be used during creation
of the Validator
.evaluator
- An Evaluator
to evaluate an expression during validation.
Validator
that can validate an expression.Validator
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |