Package org.trellisldp.api
Enum Resource.SpecialResources
- java.lang.Object
-
- java.lang.Enum<Resource.SpecialResources>
-
- org.trellisldp.api.Resource.SpecialResources
-
- All Implemented Interfaces:
Serializable
,Comparable<Resource.SpecialResources>
,Resource
- Enclosing interface:
- Resource
public static enum Resource.SpecialResources extends Enum<Resource.SpecialResources> implements Resource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.trellisldp.api.Resource
Resource.SpecialResources
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETED_RESOURCE
A resource that previously existed but which no longer exists.MISSING_RESOURCE
A non-existent resource: one that does not exist at a given IRI.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Resource.SpecialResources
valueOf(String name)
Returns the enum constant of this type with the specified name.static Resource.SpecialResources[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.trellisldp.api.Resource
dataset, getBinaryMetadata, getContainer, getExtraLinkRelations, getIdentifier, getInsertedContentRelation, getInteractionModel, getMemberOfRelation, getMemberRelation, getMembershipResource, getMetadataGraphNames, getModified, getRevision, hasMetadata, stream, stream, stream
-
-
-
-
Enum Constant Detail
-
MISSING_RESOURCE
public static final Resource.SpecialResources MISSING_RESOURCE
A non-existent resource: one that does not exist at a given IRI.
-
DELETED_RESOURCE
public static final Resource.SpecialResources DELETED_RESOURCE
A resource that previously existed but which no longer exists.
-
-
Method Detail
-
values
public static Resource.SpecialResources[] 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 (Resource.SpecialResources c : Resource.SpecialResources.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Resource.SpecialResources valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-