Package wt.occurrence
Class OccurrenceHelper
java.lang.Object
wt.occurrence.OccurrenceHelper
- All Implemented Interfaces:
Externalizable,Serializable
This helper is used to access an implementation of
Supported API: true
Extendable: false
OccurrenceService
via the static reference OccurrenceHelper.service.
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasTerminalParentPathOccurrence(CombinedPathOccurrence combinedPathOccurrence) Tests to see if the givenCombinedPathOccurrencehas a terminal parentPathOccurrence(one which allows nosuperPaths).static booleanisRoot(PathOccurrence pathOccurrence) Tests to see if the givenPathOccurrenceis a root (meaning that it allows nosubPath).static booleanisTerminal(PathOccurrence pathOccurrence) Tests to see if the givenPathOccurrenceis terminal (meaning that it allows nosuperPaths).static booleanrequiresRootPathOccurrence(OccurrenceableLink occurrenceableLink) Tests to see if the givenOccurrenceablerequires a rootPathOccurrence(one which allows nosubPath).static booleanrequiresRootPathOccurrence(UsesOccurrence usesOccurrence) Tests to see if the givenUsesOccurrencerequires a rootPathOccurrence(one which allows nosubPath).static booleanrequiresTerminalPathOccurrence(OccurrenceableLink occurrenceableLink) Tests to see if the givenOccurrenceableLinkrequires a terminalPathOccurrence(one which allows nosuperPaths).static booleanrequiresTerminalPathOccurrence(UsesOccurrence usesOccurrence) Tests to see if the givenUsesOccurrencerequires a terminalPathOccurrence(one which allows nosuperPaths).
-
Field Details
-
service
Supported API: true
-
-
Method Details
-
isRoot
Tests to see if the givenPathOccurrenceis a root (meaning that it allows nosubPath).
Supported API: true- Parameters:
pathOccurrence-- Returns:
- boolean
- Throws:
WTException
-
isTerminal
Tests to see if the givenPathOccurrenceis terminal (meaning that it allows nosuperPaths).
Supported API: true- Parameters:
pathOccurrence-- Returns:
- boolean
- Throws:
WTException
-
requiresRootPathOccurrence
public static boolean requiresRootPathOccurrence(OccurrenceableLink occurrenceableLink) throws WTException Tests to see if the givenOccurrenceablerequires a rootPathOccurrence(one which allows nosubPath).
Supported API: true- Parameters:
occurrenceableLink-- Returns:
- boolean
- Throws:
WTException
-
requiresRootPathOccurrence
Tests to see if the givenUsesOccurrencerequires a rootPathOccurrence(one which allows nosubPath).
Supported API: true- Parameters:
usesOccurrence-- Returns:
- boolean
- Throws:
WTException
-
requiresTerminalPathOccurrence
public static boolean requiresTerminalPathOccurrence(OccurrenceableLink occurrenceableLink) throws WTException Tests to see if the givenOccurrenceableLinkrequires a terminalPathOccurrence(one which allows nosuperPaths).
Supported API: true- Parameters:
occurrenceableLink-- Returns:
- boolean
- Throws:
WTException
-
requiresTerminalPathOccurrence
public static boolean requiresTerminalPathOccurrence(UsesOccurrence usesOccurrence) throws WTException Tests to see if the givenUsesOccurrencerequires a terminalPathOccurrence(one which allows nosuperPaths).
Supported API: true- Parameters:
usesOccurrence-- Returns:
- boolean
- Throws:
WTException
-
hasTerminalParentPathOccurrence
public static boolean hasTerminalParentPathOccurrence(CombinedPathOccurrence combinedPathOccurrence) throws WTException Tests to see if the givenCombinedPathOccurrencehas a terminal parentPathOccurrence(one which allows nosuperPaths).
Supported API: true- Parameters:
combinedPathOccurrence-- Returns:
- boolean
- Throws:
WTException
-