Expression
instead.public interface RuleTree extends Cloneable
Modifier and Type | Method and Description |
---|---|
void |
addResolver(String objectPrefix,
Map resolvableMap)
Deprecated.
Add resolvable properties as map to the map of resolvers.
|
void |
addResolver(String objectPrefix,
PropertyResolver resolver)
Deprecated.
Add a property resolver to the map of resolvers.
|
void |
addResolver(String objectPrefix,
Resolvable resolvable)
Deprecated.
Add a property resolver to the map of resolvers.
|
Object |
clone()
Deprecated.
Clone the ruletree
|
void |
concat(RuleTree ruletree,
LogicalOperator operator)
Deprecated.
adds the given ruletree to the current ruletree, linking it with the
given operator.
|
RuleTree |
deepCopy()
Deprecated.
Creates a deep copy of the rule tree and all operands,operators,functions & co
|
Expression |
getExpression()
Deprecated.
Get the parsed expression of this ruletree.
|
String |
getRuleString()
Deprecated.
get the parsed string of the rule (given via
parse(String) ). |
boolean |
hasChanged(long timestamp)
Deprecated.
Check whether the properties evaluated in this ruletree have changed since the given timestamp
|
Iterator |
iterator()
Deprecated.
this method will not be implemented in future implementations
and should not be used
|
void |
parse(String ruleString)
Deprecated.
Parse the given string into a ruletree.
|
void |
removeResolver(String objectPrefix)
Deprecated.
Remove a property resolver from the map of resolvers
|
Object |
resolve(String objectPrefix,
String attribute)
Deprecated.
Resolve the given attribute for a resolver with the given objectPrefix
|
int |
size()
Deprecated.
this method will not be implemented in future implementations
and should not be used
|
Iterator iterator()
int size()
void parse(String ruleString) throws ParserException
ruleString
- rule given as stringParserException
- when the given string is not a valid ruleString getRuleString()
parse(String)
).void addResolver(String objectPrefix, PropertyResolver resolver)
objectPrefix
- object prefixresolver
- property resolvervoid addResolver(String objectPrefix, Resolvable resolvable)
objectPrefix
- object prefixresolvable
- resolvable objectvoid addResolver(String objectPrefix, Map resolvableMap)
objectPrefix
- object prefixresolvableMap
- object properties as mapvoid removeResolver(String objectPrefix)
objectPrefix
- object prefixObject resolve(String objectPrefix, String attribute) throws UnknownPropertyException
objectPrefix
- object prefixattribute
- name of the attribute to resolveUnknownPropertyException
- when the property is not knownvoid concat(RuleTree ruletree, LogicalOperator operator)
ruletree
- the ruletree to add to the current object.operator
- the operator to link current object and given ruletree.Object clone() throws CloneNotSupportedException
CloneNotSupportedException
RuleTree deepCopy()
boolean hasChanged(long timestamp)
timestamp
- timestamp in msExpression getExpression()
Copyright © 2016 Gentics Software GmbH. All Rights Reserved.