public class PredicateFactory extends Object implements PredicateFactoryIF
Modifier and Type | Field and Description |
---|---|
protected LocatorIF |
base |
protected Map |
predicatesById |
protected TopicMapIF |
topicmap |
Constructor and Description |
---|
PredicateFactory(TopicMapIF topicmap,
LocatorIF base) |
Modifier and Type | Method and Description |
---|---|
ModuleIF |
createModule(String uri)
INTERNAL: Creates a module instance for the specified URI.
|
PredicateIF |
createPredicate(ParsedRule rule)
INTERNAL: Creates a rule predicate for the parsed rule.
|
PredicateIF |
createPredicate(String name)
INTERNAL: Looks up a built-in predicate by its name.
|
PredicateIF |
createPredicate(TopicIF type,
boolean assoc)
INTERNAL: Creates a dynamic predicate for the given topic; either
an association predicate or an occurrence predicate, depending on
the value of the assoc parameter.
|
boolean |
isBuiltInPredicate(String name)
INTERNAL: Used to find out if the given predicate name is the
name of a built-in predicate.
|
protected Map predicatesById
protected TopicMapIF topicmap
protected LocatorIF base
public PredicateFactory(TopicMapIF topicmap, LocatorIF base)
public PredicateIF createPredicate(String name)
PredicateFactoryIF
createPredicate
in interface PredicateFactoryIF
public PredicateIF createPredicate(ParsedRule rule)
PredicateFactoryIF
createPredicate
in interface PredicateFactoryIF
public PredicateIF createPredicate(TopicIF type, boolean assoc)
PredicateFactoryIF
createPredicate
in interface PredicateFactoryIF
public ModuleIF createModule(String uri)
PredicateFactoryIF
createModule
in interface PredicateFactoryIF
public boolean isBuiltInPredicate(String name)
PredicateFactoryIF
isBuiltInPredicate
in interface PredicateFactoryIF