|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--au.com.prunge.jgenfile.metadata.AbstractMetadataKey | +--au.com.prunge.jgenfile.metadata.ResourceMetadataKey
A key that uses resource bundles to get the key and description.
Constructor Summary | |
ResourceMetadataKey(String resourceBundleName,
String prefix,
Class valueClass)
Constructs a ResourceMetadataKey . |
Method Summary | |
String |
getDescription(Locale locale)
Returns the description of the metadata key using the specified locale. |
String |
getName(Locale locale)
Returns the name of the metadata key using the specified locale. |
Class |
getValueClass()
Returns the class of the data that would be returned for this key. |
String |
toString()
Returns a string representation of this key. |
Methods inherited from class au.com.prunge.jgenfile.metadata.AbstractMetadataKey |
getDescription, getName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ResourceMetadataKey(String resourceBundleName, String prefix, Class valueClass) throws NullPointerException
ResourceMetadataKey
.
resourceBundleName
- the name of the
resource bundle for
getting values.prefix
- the prefix to use when getting
values from the resource bundle.
For example, to get the description
for a ParameterKey with a prefix of
"my", the key used in the resource
bundle would be "my.description".valueClass
- the value class to use for
this key.
NullPointerException
- if any parameter is
null.Method Detail |
public String getDescription(Locale locale) throws NullPointerException
MetadataKey
locale
- the locale to use.
NullPointerException
- if locale
is null.MetadataKey.getDescription(java.util.Locale)
public String getName(Locale locale) throws NullPointerException
MetadataKey
locale
- the locale to use.
NullPointerException
- if locale
is null.MetadataKey.getName(java.util.Locale)
public Class getValueClass()
MetadataKey
au.com.prunge.jgenfilemetadata.MetadataKey#getValueClass()
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |