public class RelatedTopics extends Object
Modifier and Type | Class and Description |
---|---|
class |
RelatedTopics.Association |
class |
RelatedTopics.Heading |
Modifier and Type | Field and Description |
---|---|
static int |
ORDERING_ASC
PUBLIC: Flag used to indicated ascending ordering.
|
static int |
ORDERING_DESC
PUBLIC: Flag used to indicated descending ordering.
|
Constructor and Description |
---|
RelatedTopics() |
Modifier and Type | Method and Description |
---|---|
List |
makeModel(TopicIF topic)
PUBLIC: Builds a model representing the associations of the given
topic.
|
void |
setAggregateAssociations(Set aggregateAssociations)
PUBLIC: Sets the association types to do hierarchy aggregation
for.
|
void |
setAggregateHierarchy(boolean aggregateHierarchy)
PUBLIC: Sets the flag indicating whether to do hierarchy
aggregation or not.
|
void |
setChildOrdering(int childOrdering)
PUBLIC: Sets the ordering direction to be used for children.
|
void |
setChildOrderQuery(String childOrderQueryString)
PUBLIC: Sets the query to use to get the sort key of each
child topic.
|
void |
setExcludeAssociationTypes(Set types)
PUBLIC: Set the set of association types which is not to be
shown.
|
void |
setExcludeRoleTypes(Set types)
PUBLIC: Set the set of near roles types which is not to be included.
|
void |
setExcludeTopicTypes(Set types)
PUBLIC: Set the set of topic types which is not to be shown.
|
void |
setFilterQuery(String query)
PUBLIC: Sets a query to be used to filter topics shown as
related.
|
void |
setHeadingOrdering(int headingOrdering)
PUBLIC: Sets the ordering direction to be used for headings.
|
void |
setHeadingOrderQuery(String headingOrderQueryString)
PUBLIC: Sets the query to use to get the sort key of each
heading topic.
|
void |
setIncludeAssociationTypes(Set types)
PUBLIC: Set the set of association types which is to be
shown.
|
void |
setIncludeTopicTypes(Set types)
PUBLIC: Set the set of topic types which is to be shown.
|
void |
setMaxChildren(int maxchildren)
PUBLIC: Sets the maximum number of children for a heading to show
by default.
|
void |
setTologContext(DeclarationContextIF tologctx)
PUBLIC: Passes in a tolog declaration context to be used when
parsing tolog queries.
|
void |
setUseOntopolyNames(boolean useOntopolyNames) |
void |
setWeakAssociationTypes(Set weaktypes)
PUBLIC: Set the set of association types which is to be
considered weak in the sense that associations of these
types are to be listed under the heading for the topic type of
the associated topics, and not under the association type.
|
public static final int ORDERING_ASC
public static final int ORDERING_DESC
public void setWeakAssociationTypes(Set weaktypes)
public void setExcludeAssociationTypes(Set types)
public void setExcludeRoleTypes(Set types)
public void setExcludeTopicTypes(Set types)
public void setIncludeAssociationTypes(Set types)
public void setIncludeTopicTypes(Set types)
public void setFilterQuery(String query)
public void setMaxChildren(int maxchildren)
public void setHeadingOrderQuery(String headingOrderQueryString)
public void setHeadingOrdering(int headingOrdering)
public void setChildOrderQuery(String childOrderQueryString)
public void setChildOrdering(int childOrdering)
public void setAggregateHierarchy(boolean aggregateHierarchy)
public void setAggregateAssociations(Set aggregateAssociations)
public void setTologContext(DeclarationContextIF tologctx)
public List makeModel(TopicIF topic)
public void setUseOntopolyNames(boolean useOntopolyNames)