Package wt.occurrence

Class OccurrenceHelper

java.lang.Object
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:
  • Field Details

  • Method Details

    • 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