|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Navigator<N>
A Navigator is a bridge between MSD and a document model.
| Method Summary | |
|---|---|
int |
childCount(N node)
Returns the number of children of the specified node. |
N |
chooseCanonical(List<Compactor.Edge> eqCls)
Choose the canonical node from among equivalent nodes. |
N |
getChild(N node,
int index)
Returns the child of the specified node with the specified child index. |
int |
getHeight(N node)
Returns the height of the specified node. |
Object |
getVisitToken(N node)
Returns the visit token of the specified node. |
boolean |
isOutside(N node)
Returns true if the specified node is outside the bounds
for the discrimination. |
void |
setChild(N node,
int index,
N child)
Replaces an existing reference to a child node. |
void |
setHeight(N node,
int height)
Sets the height of the specified node. |
void |
setVisitToken(N node,
Object token)
Sets the visit token of the specified node. |
| Method Detail |
|---|
N getChild(N node,
int index)
void setChild(N node,
int index,
N child)
int childCount(N node)
Object getVisitToken(N node)
void setVisitToken(N node,
Object token)
int getHeight(N node)
void setHeight(N node,
int height)
boolean isOutside(N node)
true if the specified node is outside the bounds
for the discrimination. The node will not be visited.
N chooseCanonical(List<Compactor.Edge> eqCls)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||