@Immutable public final class ResourceProperty extends Object
ResourceProperty represents a resource property.| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceProperty.Key
ResourceProperty.Key is the internal name a ResourceProperty is stored. |
static class |
ResourceProperty.Type
ResourceProperty can have various types, depending of the context they are used. |
| Modifier and Type | Field and Description |
|---|---|
static ResourceProperty.Key |
AUTHOR |
static ResourceProperty.Key |
CREATION_DATE |
static ResourceProperty.Key |
LAST_MODIFIED_DATE |
static ResourceProperty.Key |
LOCK_STATUS |
static ResourceProperty.Key |
MD5_HASH |
static ResourceProperty.Key |
REPOSITORY_ID |
static ResourceProperty.Key |
RESOURCE |
static ResourceProperty.Key |
RESOURCE_TYPE |
static Comparator<ResourceProperty> |
TYPE_NAME_COMPARATOR
Comparator that compares ResourceProperty by their type and name. |
static ResourceProperty.Key |
VERSION |
| Constructor and Description |
|---|
ResourceProperty(ResourceProperty.Type type,
String name,
String value)
Create a new
ResourceProperty with the given ResourceProperty.Type, name and value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ResourceProperty.Key |
getKey()
Returns the
ResourceProperty.Key of the ResourceProperty. |
String |
getName()
Returns the name of the
ResourceProperty.Key. |
ResourceProperty.Type |
getType()
Returns the
ResourceProperty.Type of the ResourceProperty.Key. |
String |
getValue()
Returns the value of the
ResourceProperty. |
int |
hashCode() |
String |
toString() |
public static final ResourceProperty.Key AUTHOR
public static final ResourceProperty.Key CREATION_DATE
public static final ResourceProperty.Key LAST_MODIFIED_DATE
public static final ResourceProperty.Key LOCK_STATUS
public static final ResourceProperty.Key MD5_HASH
public static final ResourceProperty.Key REPOSITORY_ID
public static final ResourceProperty.Key RESOURCE
public static final ResourceProperty.Key RESOURCE_TYPE
public static final Comparator<ResourceProperty> TYPE_NAME_COMPARATOR
Comparator that compares ResourceProperty by their type and name.public static final ResourceProperty.Key VERSION
public ResourceProperty(ResourceProperty.Type type, String name, String value)
ResourceProperty with the given ResourceProperty.Type, name and value.type - ResourceProperty.Type of the ResourcePropertyname - name of the ResourcePropertyvalue - value of the ResourcePropertyNullPointerException - if any parameter is nullpublic ResourceProperty.Key getKey()
ResourceProperty.Key of the ResourceProperty.ResourceProperty.Key of the ResourcePropertypublic String getName()
ResourceProperty.Key.ResourceProperty.Keypublic ResourceProperty.Type getType()
ResourceProperty.Type of the ResourceProperty.Key.ResourceProperty.Type of the ResourceProperty.Keypublic String getValue()
ResourceProperty.ResourcePropertyCopyright © 2013–2017 shadowhunt. All rights reserved.