|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fu_berlin.ties.context.ElementPosition
A small immutable wrapper class that bundles the position of an element within a parent element and the number of children of the parent.
Constructor Summary | |
ElementPosition(int allChildElements,
int overallPos,
int typedChildElements,
int typedPos,
int processedPrecedingSiblings,
int processedFollowingSiblings)
Creates a new instance. |
Method Summary | |
int |
getAllChildren()
Returns the number of all children elements in the parent element. |
int |
getOverallPosition()
Returns the position of the represented element in the parent element, counting all children. |
int |
getProcessedFollowing()
Returns the number of preceding siblings that were processed by the context representation. |
int |
getProcessedPreceding()
Returns the number of following siblings that were processed by the context representation. |
int |
getTypedChildren()
Returns the number of children elements in the parent element with the type (qualified name) of the represented element. |
int |
getTypedPosition()
Returns the position of the represented element in the parent element, counting only children with the same type (qualified name). |
String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ElementPosition(int allChildElements, int overallPos, int typedChildElements, int typedPos, int processedPrecedingSiblings, int processedFollowingSiblings)
allChildElements
- the number of all children elements in the
parent elementoverallPos
- the position of the represented element in the
parent element, counting all childrentypedChildElements
- the number of children elements in the
parent element with the type (qualified name) of the represented
elementtypedPos
- the position of the represented element in the
parent element, counting only children with the same type
(qualified name)processedPrecedingSiblings
- the number of following siblings that
were processed by the context representationprocessedFollowingSiblings
- the number of preceding siblings that
were processed by the context representationMethod Detail |
public int getAllChildren()
public int getOverallPosition()
public int getProcessedFollowing()
public int getProcessedPreceding()
public int getTypedChildren()
public int getTypedPosition()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |