org.apache.velocity.tools.generic
Class ResourceTool.Key
java.lang.Object
org.apache.velocity.tools.generic.ResourceTool.Key
- Enclosing class:
- ResourceTool
public final class ResourceTool.Key
- extends java.lang.Object
Internal class used to enable an elegant syntax for accessing
resources.
Field Summary |
private java.lang.Object[] |
args
|
private java.lang.String[] |
bundles
|
private boolean |
cached
|
private java.lang.String |
key
|
private java.lang.Object |
locale
|
private java.lang.Object |
rawValue
|
Constructor Summary |
ResourceTool.Key(java.lang.String key,
java.lang.String[] bundles,
java.lang.Object locale,
java.lang.Object[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
bundles
private final java.lang.String[] bundles
key
private final java.lang.String key
locale
private final java.lang.Object locale
args
private final java.lang.Object[] args
cached
private boolean cached
rawValue
private java.lang.Object rawValue
ResourceTool.Key
public ResourceTool.Key(java.lang.String key,
java.lang.String[] bundles,
java.lang.Object locale,
java.lang.Object[] args)
get
public ResourceTool.Key get(java.lang.Object k)
get
public ResourceTool.Key get(java.lang.String key)
bundle
public ResourceTool.Key bundle(java.lang.String bundle)
locale
public ResourceTool.Key locale(java.lang.Object locale)
insert
public ResourceTool.Key insert(java.lang.Object[] args)
insert
public ResourceTool.Key insert(java.util.List args)
insert
public ResourceTool.Key insert(java.lang.Object arg)
insert
public ResourceTool.Key insert(java.lang.Object arg0,
java.lang.Object arg1)
getExists
public boolean getExists()
getRaw
public java.lang.Object getRaw()
getKeys
public java.util.List<java.lang.String> getKeys()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright (c) 2003-2007 Apache Software Foundation