|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tm4j.topicmap.utils.extractors.AssociatedTopicsExtractor
An extractor which returns a list of all topics associated with the input topic with an optionally specified association type and role specs for the the input topic and its associated topic.
Constructor Summary | |
AssociatedTopicsExtractor()
|
Method Summary | |
java.lang.Object |
fn(java.lang.Object o)
Function implementation. |
void |
setAssociationTester(uk.co.jezuk.mango.Predicate assocTester)
Sets the predicate which tests the associations traversed from the input topic to the set of returned topics. |
void |
setOtherRoleTester(uk.co.jezuk.mango.Predicate otherRoleTester)
Sets the predicate which filters the roles of the associations processed. |
void |
setThisRoleTester(uk.co.jezuk.mango.Predicate thisRoleTester)
Sets the predicate which filters the roles of the input topic for the associations to be processed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AssociatedTopicsExtractor()
Method Detail |
public java.lang.Object fn(java.lang.Object o)
o
. If the associationTester,
thisRoleTester or otherRoleTester properties are set,
then they will be used to filter the returns to only
those topics whose associations pass the associationTester
where the role played by o
passes the
thisRoleTester and the role played by the returned Topics
pass the otherRoleTester.
fn
in interface uk.co.jezuk.mango.UnaryFunction
o
- the Topic to get all associated topics for.
o
is
not a Topic, the return value is an empty list.public void setAssociationTester(uk.co.jezuk.mango.Predicate assocTester)
public void setThisRoleTester(uk.co.jezuk.mango.Predicate thisRoleTester)
public void setOtherRoleTester(uk.co.jezuk.mango.Predicate otherRoleTester)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |