Enum Class ThingResource

java.lang.Object
java.lang.Enum<ThingResource>
org.eclipse.ditto.things.model.signals.commands.ThingResource
All Implemented Interfaces:
Serializable, Comparable<ThingResource>, Constable

public enum ThingResource extends Enum<ThingResource>
Defines all valid thing resources and provides a from(org.eclipse.ditto.json.JsonPointer) method to resolve the thing resource from a given path.
Since:
2.0.0
  • Enum Constant Details

    • THING

      public static final ThingResource THING
    • POLICY_ID

      public static final ThingResource POLICY_ID
    • POLICY

      public static final ThingResource POLICY
    • POLICY_ENTRIES

      public static final ThingResource POLICY_ENTRIES
    • POLICY_ENTRY

      public static final ThingResource POLICY_ENTRY
    • POLICY_ENTRY_SUBJECTS

      public static final ThingResource POLICY_ENTRY_SUBJECTS
    • POLICY_ENTRY_SUBJECT

      public static final ThingResource POLICY_ENTRY_SUBJECT
    • POLICY_ENTRY_RESOURCES

      public static final ThingResource POLICY_ENTRY_RESOURCES
    • POLICY_ENTRY_RESOURCE

      public static final ThingResource POLICY_ENTRY_RESOURCE
    • ATTRIBUTES

      public static final ThingResource ATTRIBUTES
    • ATTRIBUTE

      public static final ThingResource ATTRIBUTE
    • FEATURES

      public static final ThingResource FEATURES
    • FEATURE

      public static final ThingResource FEATURE
    • DEFINITION

      public static final ThingResource DEFINITION
    • FEATURE_DEFINITION

      public static final ThingResource FEATURE_DEFINITION
    • FEATURE_PROPERTIES

      public static final ThingResource FEATURE_PROPERTIES
    • FEATURE_PROPERTY

      public static final ThingResource FEATURE_PROPERTY
    • FEATURE_DESIRED_PROPERTIES

      public static final ThingResource FEATURE_DESIRED_PROPERTIES
    • FEATURE_DESIRED_PROPERTY

      public static final ThingResource FEATURE_DESIRED_PROPERTY
  • Method Details

    • values

      public static ThingResource[] 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 ThingResource 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
    • from

      public static Optional<ThingResource> from(org.eclipse.ditto.json.JsonPointer path)
      Resolve the ThingResource from a path.
      Parameters:
      path - the path that should be matched to a resource
      Returns:
      the ThingResource that matches the given path or an empty optional if the path could not be matched.