-
- All Known Subinterfaces:
Discriminator
public interface EDIElementPositionSpecification 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:
Discriminator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description intgetComponentPosition()Get the component position within a composite element.intgetElementPosition()Get 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 Detail
-
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
default boolean matchesLocation(Location location)
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
-
-