|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViewClassBasedFoldingRule
This interface defines a class-based folding rule.
Class-based folding rules are resolved while traversing the topology resulting from the query the view is based on. If the triplet isX--Y-->Z
(source class is X, link class is Y, target class is Z), then for a result
triplet (CI/Relation/CI) x--y-->z
, z will appear as a child of x.X<--Y--Z
(source class is X, link class is Y, target class is Z, against link direction),
then for a result triplet x--y-->z
, x will appear as a child of z.
Note the cycles restriction from RuleBasedViewDefinition is in effect.
Method Summary | |
---|---|
ViewClassBasedFoldingRule |
againstTheLink(java.lang.String linkClassName)
Sets the link class name and direction. |
ViewClassBasedFoldingRule |
alongTheLink(java.lang.String linkClassName)
Sets the link class name and direction. |
java.lang.String |
from()
CIs of this class are considered as sources. |
ViewClassBasedFoldingRule |
from(java.lang.String sourceClassName)
Sets the source class name. |
boolean |
isAlongDirection()
If true, the rule is evaluated along the link direction. |
java.lang.String |
link()
Relations of this class are valid. |
ViewClassBasedFoldingRule |
setAlongDirection(boolean alongDirection)
Sets the direction the rule is evaluated. |
java.lang.String |
to()
CIs of this class are considered as targets. |
ViewClassBasedFoldingRule |
to(java.lang.String targetClassName)
Sets the target class name. |
ViewClassBasedFoldingRule |
withLinkClassName(java.lang.String linkClassName)
Sets the link class name. |
Method Detail |
---|
java.lang.String from()
ViewClassBasedFoldingRule from(java.lang.String sourceClassName)
from()
java.lang.String to()
ViewClassBasedFoldingRule to(java.lang.String targetClassName)
to()
ViewClassBasedFoldingRule alongTheLink(java.lang.String linkClassName)
'source'--'link'-->'target'as:
'source' 'target'(target below source)
ViewClassBasedFoldingRule againstTheLink(java.lang.String linkClassName)
'source'<--'link'--'target'as:
'target' 'source'(target below source)
java.lang.String link()
boolean isAlongDirection()
ViewClassBasedFoldingRule setAlongDirection(boolean alongDirection)
isAlongDirection()
ViewClassBasedFoldingRule withLinkClassName(java.lang.String linkClassName)
link()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |