Enum Class MatchPattern

java.lang.Object
java.lang.Enum<MatchPattern>
org.apache.jena.mem2.pattern.MatchPattern
All Implemented Interfaces:
Serializable, Comparable<MatchPattern>, Constable

public enum MatchPattern extends Enum<MatchPattern>
A pattern for matching triples. The pattern is defined by the wildcard positions for the subject, predicate and object.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Match a triple with a wildcard subject, predicate and object.
    Match a triple with a concrete object, and wildcard subject and predicate.
    Match a triple with a concrete predicate, and wildcard subject and object.
    Match a triple with a concrete predicate and object, and a wildcard subject.
    Match a triple with a concrete subject, and wildcard predicate and object.
    Match a triple with a concrete subject and object, and a wildcard predicate.
    Match a triple with a concrete subject and predicate, and a wildcard object.
    Match a triple with a concrete subject, predicate and object.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static MatchPattern[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • SUB_PRE_OBJ

      public static final MatchPattern SUB_PRE_OBJ
      Match a triple with a concrete subject, predicate and object.
    • SUB_PRE_ANY

      public static final MatchPattern SUB_PRE_ANY
      Match a triple with a concrete subject and predicate, and a wildcard object.
    • SUB_ANY_OBJ

      public static final MatchPattern SUB_ANY_OBJ
      Match a triple with a concrete subject and object, and a wildcard predicate.
    • SUB_ANY_ANY

      public static final MatchPattern SUB_ANY_ANY
      Match a triple with a concrete subject, and wildcard predicate and object.
    • ANY_PRE_OBJ

      public static final MatchPattern ANY_PRE_OBJ
      Match a triple with a concrete predicate and object, and a wildcard subject.
    • ANY_PRE_ANY

      public static final MatchPattern ANY_PRE_ANY
      Match a triple with a concrete predicate, and wildcard subject and object.
    • ANY_ANY_OBJ

      public static final MatchPattern ANY_ANY_OBJ
      Match a triple with a concrete object, and wildcard subject and predicate.
    • ANY_ANY_ANY

      public static final MatchPattern ANY_ANY_ANY
      Match a triple with a wildcard subject, predicate and object.
  • Method Details

    • values

      public static MatchPattern[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MatchPattern valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null