- All Known Subinterfaces:
Discriminator
public interface EDIElementPosition
Specification of the position of an element. Provides information about the
element position within a segment and (optionally) a component element
position within a composite element.
- Since:
- 1.18
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintGet the component position within a composite element.intGet the element position within a segment.default booleanmatchesLocation(Location location) Determine if the given location's element and component matches this element position specification.
-
Method Details
-
getElementPosition
int getElementPosition()Get the element position within a segment.- Returns:
- the element position within a segment
-
getComponentPosition
int getComponentPosition()Get the component position within a composite element. Returns -1 if not available.- Returns:
- the component position with a composite element or -1
-
matchesLocation
Determine if the given location's element and component matches this element position specification.- Parameters:
location- the location to match against this position- Returns:
- true if the element and component positions match, otherwise false
-