|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.collections.ReadWriteLockDecorator
com.globalmentor.urf.AbstractURFScope
com.globalmentor.urf.DefaultURFResource
com.globalmentor.urf.URFMapResource<com.globalmentor.urf.URFResource,com.globalmentor.urf.URFResource>
com.guiseframework.Resources
public class Resources
Guise resources description in URF.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Field Summary | |
|---|---|
static java.lang.String |
APPLICATION_COPYRIGHT
|
static java.lang.String |
APPLICATION_DESCRIPTION
|
static java.lang.String |
APPLICATION_LABEL
|
static java.lang.String |
APPLICATION_NAME
|
static java.lang.String |
APPLICATION_NAME_SHORT
|
static java.lang.String |
APPLICATION_VERSION
|
static java.lang.String |
CONVERTER_INVALID_VALUE_MESSAGE_RESOURCE_REFERENCE
The resource reference for a converter message indicating that a value is invalid. |
static java.lang.String |
DEFAULT_RESOURCE_BUNDLE_BASE_NAME
The default base name of the Guise resource bundle. |
static java.lang.String |
GLYPH_PROPERTY_KEY_ASPECT
The aspect used to identify glyphs as part of resource property keys. |
static java.lang.String |
INFO_PROPERTY_KEY_ASPECT
The aspect used to identify info as part of resource property keys. |
static java.lang.String |
LABEL_PROPERTY_KEY_ASPECT
The aspect used to identify labels as part of resource property keys. |
static java.lang.String |
RESOURCES_NAMESPACE_PREFIX
The recommended prefix to the resources key ontology namespace. |
static java.net.URI |
RESOURCES_NAMESPACE_URI
The URI to the resource key ontology namespace. |
static char |
STRING_VALUE_REFERENCE_PREFIX_CHAR
The prefix character used to introduce string value references. |
static java.lang.String |
VALIDATION_FALSE_MESSAGE_RESOURCE_REFERENCE
The resource bundle key for a general failed validation message. |
static java.lang.String |
VALIDATOR_INVALID_VALUE_MESSAGE_RESOURCE_REFERENCE
The resource reference for a validator message indicating that a value is invalid. |
static java.lang.String |
VALIDATOR_VALUE_REQUIRED_MESSAGE_RESOURCE_REFERENCE
The resource reference for a validator message indicating that a value is required. |
| Fields inherited from interface com.globalmentor.net.Resource |
|---|
URI_PROPERTY_NAME |
| Constructor Summary | |
|---|---|
Resources()
Default constructor. |
|
Resources(java.net.URI referenceURI)
Reference URI constructor. |
|
| Method Summary | ||
|---|---|---|
static java.lang.String |
createStringResourceReference(java.lang.String resourceKey)
Creates a string containing a reference to the given string resource key. |
|
static java.lang.String |
createStringValueReference(java.lang.String value)
Creates a string containing a value that can be used as an argument in formatting. |
|
static java.net.URI |
createURIResourceReference(java.lang.String resourceKey)
Creates a URI containing a reference to the given string resource key. |
|
static
|
getGlyphResourceReference(java.lang.Class<E> enumClass)
Returns a resource reference for the glyph aspect of a resource key based upon the given enum class. |
|
static
|
getGlyphResourceReference(E e)
Returns a resource reference for the glyph aspect of a resource key based upon the given enum. |
|
static
|
getInfoResourceReference(java.lang.Class<E> enumClass)
Returns a resource reference for the info aspect of a resource key based upon the given enum class. |
|
static
|
getInfoResourceReference(E e)
Returns a resource reference for the info aspect of a resource key based upon the given enum. |
|
static
|
getLabelResourceReference(java.lang.Class<E> enumClass)
Returns a resource reference for the label aspect of a resource key based upon the given enum class. |
|
static
|
getLabelResourceReference(E e)
Returns a resource reference for the label aspect of a resource key based upon the given enum. |
|
static java.lang.String |
getResourceKeyName(java.lang.Enum<?> e)
Returns a form of the enum name appropriate for a resource key. |
|
| Methods inherited from class com.globalmentor.urf.URFMapResource |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toMapResource, values |
| Methods inherited from class com.globalmentor.urf.DefaultURFResource |
|---|
addType, addTypeURI, alter, determineLabel, getLabel, getName, getType, getTypes, getTypeURI, getURI, hasTypeURI, setLabel, setName, setURI, toString |
| Methods inherited from class com.globalmentor.urf.AbstractURFScope |
|---|
addAllProperties, addProperty, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, getCreationOrder, getNamespaceProperties, getOrder, getParentScope, getProperties, getProperties, getPropertyCount, getPropertyURIs, getPropertyValue, getPropertyValueContext, getPropertyValueContext, getPropertyValueContexts, getPropertyValueCount, getPropertyValueCount, getPropertyValues, getPropertyValues, getPropertyValueURI, getScope, hasNamespaceProperty, hasProperties, hasProperty, hasProperty, hasPropertyValue, hasPropertyValueURI, removeNamespacePropertyValues, removeProperties, removeProperty, removePropertyValue, removePropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setProperty, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues |
| Methods inherited from class com.globalmentor.collections.ReadWriteLockDecorator |
|---|
readLock, writeLock |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.globalmentor.urf.URFScope |
|---|
addAllProperties, addProperty, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, getCreationOrder, getNamespaceProperties, getOrder, getParentScope, getProperties, getProperties, getPropertyCount, getPropertyURIs, getPropertyValue, getPropertyValueContext, getPropertyValueContext, getPropertyValueContexts, getPropertyValueCount, getPropertyValueCount, getPropertyValues, getPropertyValues, getPropertyValueURI, getScope, hasNamespaceProperty, hasProperties, hasProperty, hasProperty, hasPropertyValue, hasPropertyValueURI, removeNamespacePropertyValues, removeProperties, removeProperty, removePropertyValue, removePropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setOrderedPropertyValues, setProperty, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues |
| Methods inherited from interface java.util.concurrent.locks.ReadWriteLock |
|---|
readLock, writeLock |
| Field Detail |
|---|
public static final java.lang.String RESOURCES_NAMESPACE_PREFIX
public static final java.net.URI RESOURCES_NAMESPACE_URI
public static final java.lang.String DEFAULT_RESOURCE_BUNDLE_BASE_NAME
public static final char STRING_VALUE_REFERENCE_PREFIX_CHAR
public static final java.lang.String LABEL_PROPERTY_KEY_ASPECT
public static final java.lang.String GLYPH_PROPERTY_KEY_ASPECT
public static final java.lang.String INFO_PROPERTY_KEY_ASPECT
public static final java.lang.String APPLICATION_NAME
public static final java.lang.String APPLICATION_NAME_SHORT
public static final java.lang.String APPLICATION_LABEL
public static final java.lang.String APPLICATION_DESCRIPTION
public static final java.lang.String APPLICATION_COPYRIGHT
public static final java.lang.String APPLICATION_VERSION
public static final java.lang.String CONVERTER_INVALID_VALUE_MESSAGE_RESOURCE_REFERENCE
public static final java.lang.String VALIDATOR_VALUE_REQUIRED_MESSAGE_RESOURCE_REFERENCE
public static final java.lang.String VALIDATOR_INVALID_VALUE_MESSAGE_RESOURCE_REFERENCE
public static final java.lang.String VALIDATION_FALSE_MESSAGE_RESOURCE_REFERENCE
| Constructor Detail |
|---|
public Resources()
public Resources(java.net.URI referenceURI)
referenceURI - The reference URI for the new resource.| Method Detail |
|---|
public static final java.lang.String createStringResourceReference(java.lang.String resourceKey)
resourceKey - The resource key to a string in the resources which could be retrieved using GuiseSession.getStringResource(String).
GuiseSession.dereferenceString(String).
java.lang.NullPointerException - if the given resource key is null.public static final java.lang.String createStringValueReference(java.lang.String value)
value - The value to be used as an argument.
java.lang.NullPointerException - if the given value is null.public static final java.net.URI createURIResourceReference(java.lang.String resourceKey)
resource and the scheme-specific part indicating the resource key.
resourceKey - The resource key to a string in the resources which could be retrieved using GuiseSession.getURIResource(String).
GuiseSession#resolveURI(String).
java.lang.NullPointerException - if the given resource key is null.public static java.lang.String getResourceKeyName(java.lang.Enum<?> e)
FILE_NOT_FOUND would produce file.not.found.
e - The enum instance to convert to a resource key.
Enum.name()public static <E extends java.lang.Enum<E>> java.lang.String getLabelResourceReference(java.lang.Class<E> enumClass)
com.example.EnumClass.label.
enumClass - The enum class for which to return a resource reference.
java.lang.NullPointerException - if the given enum is null.Classes.getPropertyName(Class, String),
LABEL_PROPERTY_KEY_ASPECT,
createStringResourceReference(String)public static <E extends java.lang.Enum<E>> java.lang.String getLabelResourceReference(E e)
com.example.EnumClass.NAME.label.
e - The enum instance for which to return a resource reference.
java.lang.NullPointerException - if the given enum is null.Enums.getPropertyName(Enum, String),
LABEL_PROPERTY_KEY_ASPECT,
createStringResourceReference(String)public static <E extends java.lang.Enum<E>> java.net.URI getGlyphResourceReference(java.lang.Class<E> enumClass)
com.example.EnumClass.glyph.
enumClass - The enum class for which to return a resource reference.
java.lang.NullPointerException - if the given enum is null.Classes.getPropertyName(Class, String),
GLYPH_PROPERTY_KEY_ASPECT,
createURIResourceReference(String)public static <E extends java.lang.Enum<E>> java.net.URI getGlyphResourceReference(E e)
com.example.EnumClass.NAME.glyph.
e - The enum instance for which to return a resource reference.
java.lang.NullPointerException - if the given enum is null.Enums.getPropertyName(Enum, String),
GLYPH_PROPERTY_KEY_ASPECT,
createURIResourceReference(String)public static <E extends java.lang.Enum<E>> java.lang.String getInfoResourceReference(java.lang.Class<E> enumClass)
com.example.EnumClass.info.
enumClass - The enum class for which to return a resource reference.
java.lang.NullPointerException - if the given enum is null.Classes.getPropertyName(Class, String),
INFO_PROPERTY_KEY_ASPECT,
createStringResourceReference(String)public static <E extends java.lang.Enum<E>> java.lang.String getInfoResourceReference(E e)
com.example.EnumClass.NAME.info.
e - The enum instance for which to return a resource reference.
java.lang.NullPointerException - if the given enum is null.Enums.getPropertyName(Enum, String),
INFO_PROPERTY_KEY_ASPECT,
createStringResourceReference(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||