Enum ThingResource
- java.lang.Object
-
- java.lang.Enum<ThingResource>
-
- org.eclipse.ditto.things.model.signals.commands.ThingResource
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ThingResource>
public enum ThingResource extends java.lang.Enum<ThingResource>
Defines all valid thing resources and provides afrom(org.eclipse.ditto.json.JsonPointer)method to resolve the thing resource from a given path.- Since:
- 2.0.0
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<ThingResource>from(org.eclipse.ditto.json.JsonPointer path)Resolve the ThingResource from a path.static ThingResourcevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ThingResource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ThingResource[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ThingResource c : ThingResource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ThingResource valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
from
public static java.util.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
pathor an empty optional if the path could not be matched.
-
-