public final class ResourceBundleKey
extends java.lang.Object
ResourceBundleKey
encapsulates an entry in a resource bundle.
It is used by the ResourceBundleKeyChooser
to return information back to
it's clients.Constructor and Description |
---|
ResourceBundleKey() |
ResourceBundleKey(NodeResourceBundle bundle,
java.lang.String key,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> metadata) |
ResourceBundleKey(java.lang.String bundleId,
java.lang.String key,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> metadata,
ResourceBundleConstants.BundleTypes type,
java.lang.String extension)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBundleId()
Gets the fully-qualified name that represents the resource bundle.
|
java.lang.String |
getExtension()
Gets the extension of the file used to store the data
|
java.lang.String |
getKey()
Gets the key from the resource bundle
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Gets the metdata from the resource bundle
|
java.lang.String |
getText()
Gets the text from the resource bundle or just returns the passed-in text
|
ResourceBundleConstants.BundleTypes |
getType()
Gets the type of resource bundle
|
void |
setBundleId(java.lang.String bundleId)
Sets the bundle id
|
void |
setExtension(java.lang.String extension)
Sets the extension of the file used to store the data
|
void |
setKey(java.lang.String key)
Sets the key
|
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Sets the metadata
|
void |
setText(java.lang.String text)
Sets the text
|
void |
setType(ResourceBundleConstants.BundleTypes type)
Sets the type of resource bundle
|
public ResourceBundleKey()
public ResourceBundleKey(NodeResourceBundle bundle, java.lang.String key, java.lang.String text, java.util.Map<java.lang.String,java.lang.String> metadata)
public ResourceBundleKey(java.lang.String bundleId, java.lang.String key, java.lang.String text, java.util.Map<java.lang.String,java.lang.String> metadata, ResourceBundleConstants.BundleTypes type, java.lang.String extension)
bundleId
- a fully-qualified name that represents the resource bundlekey
- the key in the resource bundle. Will be null if the option to use
resource bundle synchronization is turned off.text
- the text from the resource bundlemetadata
- the metadata from the resource bundle. Will be null if the option to use
resource bundle synchronization is turned off or if there is not metadata for the entry.type
- the type of the resource bundleextension
- the extension of the file used to store the key (may be null)public java.lang.String getBundleId()
public void setBundleId(java.lang.String bundleId)
bundleId
- public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- public java.lang.String getText()
public void setText(java.lang.String text)
text
- public java.util.Map<java.lang.String,java.lang.String> getMetadata()
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
metadata
- public ResourceBundleConstants.BundleTypes getType()
public void setType(ResourceBundleConstants.BundleTypes type)
type
- the type of the resource bundlepublic java.lang.String getExtension()
public void setExtension(java.lang.String extension)
extension
- the extension of the file used to store the data