wt.occurrence
Class OccurrenceHelper

java.lang.Object
  extended by wt.occurrence.OccurrenceHelper
All Implemented Interfaces:
Externalizable, Serializable

public class OccurrenceHelper
extends Object
implements Externalizable

This helper is used to access an implementation of OccurrenceService via the static reference OccurrenceHelper.service.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
static OccurrenceService service
          

Supported API: true
 
Method Summary
static boolean hasTerminalParentPathOccurrence(CombinedPathOccurrence combinedPathOccurrence)
          Tests to see if the given CombinedPathOccurrence has a terminal parent PathOccurrence (one which allows no superPaths).
static boolean isRoot(PathOccurrence pathOccurrence)
          Tests to see if the given PathOccurrence is a root (meaning that it allows no subPath).
static boolean isTerminal(PathOccurrence pathOccurrence)
          Tests to see if the given PathOccurrence is terminal (meaning that it allows no superPaths).
static boolean requiresRootPathOccurrence(OccurrenceableLink occurrenceableLink)
          Tests to see if the given Occurrenceable requires a root PathOccurrence (one which allows no subPath).
static boolean requiresRootPathOccurrence(UsesOccurrence usesOccurrence)
          Tests to see if the given UsesOccurrence requires a root PathOccurrence (one which allows no subPath).
static boolean requiresTerminalPathOccurrence(OccurrenceableLink occurrenceableLink)
          Tests to see if the given OccurrenceableLink requires a terminal PathOccurrence (one which allows no superPaths).
static boolean requiresTerminalPathOccurrence(UsesOccurrence usesOccurrence)
          Tests to see if the given UsesOccurrence requires a terminal PathOccurrence (one which allows no superPaths).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

public static final OccurrenceService service


Supported API: true

Method Detail

isRoot

public static boolean isRoot(PathOccurrence pathOccurrence)
                      throws WTException
Tests to see if the given PathOccurrence is a root (meaning that it allows no subPath).

Supported API: true

Parameters:
pathOccurrence -
Returns:
boolean
Throws:
WTException

isTerminal

public static boolean isTerminal(PathOccurrence pathOccurrence)
                          throws WTException
Tests to see if the given PathOccurrence is terminal (meaning that it allows no superPaths).

Supported API: true

Parameters:
pathOccurrence -
Returns:
boolean
Throws:
WTException

requiresRootPathOccurrence

public static boolean requiresRootPathOccurrence(OccurrenceableLink occurrenceableLink)
                                          throws WTException
Tests to see if the given Occurrenceable requires a root PathOccurrence (one which allows no subPath).

Supported API: true

Parameters:
occurrenceableLink -
Returns:
boolean
Throws:
WTException

requiresRootPathOccurrence

public static boolean requiresRootPathOccurrence(UsesOccurrence usesOccurrence)
                                          throws WTException
Tests to see if the given UsesOccurrence requires a root PathOccurrence (one which allows no subPath).

Supported API: true

Parameters:
usesOccurrence -
Returns:
boolean
Throws:
WTException

requiresTerminalPathOccurrence

public static boolean requiresTerminalPathOccurrence(OccurrenceableLink occurrenceableLink)
                                              throws WTException
Tests to see if the given OccurrenceableLink requires a terminal PathOccurrence (one which allows no superPaths).

Supported API: true

Parameters:
occurrenceableLink -
Returns:
boolean
Throws:
WTException

requiresTerminalPathOccurrence

public static boolean requiresTerminalPathOccurrence(UsesOccurrence usesOccurrence)
                                              throws WTException
Tests to see if the given UsesOccurrence requires a terminal PathOccurrence (one which allows no superPaths).

Supported API: true

Parameters:
usesOccurrence -
Returns:
boolean
Throws:
WTException

hasTerminalParentPathOccurrence

public static boolean hasTerminalParentPathOccurrence(CombinedPathOccurrence combinedPathOccurrence)
                                               throws WTException
Tests to see if the given CombinedPathOccurrence has a terminal parent PathOccurrence (one which allows no superPaths).

Supported API: true

Parameters:
combinedPathOccurrence -
Returns:
boolean
Throws:
WTException