Enum Class ThingResource
- All Implemented Interfaces:
Serializable,Comparable<ThingResource>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<ThingResource>from(org.eclipse.ditto.json.JsonPointer path) Resolve the ThingResource from a path.static ThingResourceReturns the enum constant of this class with the specified name.static ThingResource[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
THING
-
POLICY_ID
-
POLICY
-
POLICY_ENTRIES
-
POLICY_ENTRY
-
POLICY_ENTRY_SUBJECTS
-
POLICY_ENTRY_SUBJECT
-
POLICY_ENTRY_RESOURCES
-
POLICY_ENTRY_RESOURCE
-
ATTRIBUTES
-
ATTRIBUTE
-
FEATURES
-
FEATURE
-
DEFINITION
-
FEATURE_DEFINITION
-
FEATURE_PROPERTIES
-
FEATURE_PROPERTY
-
FEATURE_DESIRED_PROPERTIES
-
FEATURE_DESIRED_PROPERTY
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
from
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.
-