xdoclet.util.predicates
Class SimplePredicateFactory
java.lang.Object
|
+--xdoclet.util.predicates.SimplePredicateFactory
- All Implemented Interfaces:
- PredicateFactory
- public class SimplePredicateFactory
- extends Object
- implements PredicateFactory
Simple predicate factory. Should be subclassed to add domain-specific predicates.
- Author:
- Aslak Hellesøy
- See Also:
And
,
Or
,
Not
,
True
,
False
,
HasClassTag
,
IsA
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimplePredicateFactory
public SimplePredicateFactory()
- Constructs a new SimplePredicateFactory.
createPredicate
public Predicate createPredicate(String name)
throws PredicateException
- Creates a predicate instance. Valid values for name are
and
,
or
, not
, true
, false
,
has-class-tag
and is-a
.
- Specified by:
createPredicate
in interface PredicateFactory
- Parameters:
name
- the predicate name
- Returns:
- an instance of the requested predicate
- Throws:
PredicateException
- If the requested predicate is not registered.
Copyright © 2000-2003 XDoclet Team. All Rights Reserved.