|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.peaseplate.internal.model.DefaultResourceKey
public class DefaultResourceKey
The default implementation of the ResourceKey interface.
| Constructor Summary | |
|---|---|
DefaultResourceKey(java.lang.String name,
java.util.Locale locale,
java.lang.String encoding)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Must implement the equals method |
java.lang.String |
getEncoding()
Returns the encoding of the resource |
java.util.Locale |
getLocale()
Returns the locale of the resource |
java.lang.String |
getName()
Returns the name of the resource |
ResourceKey |
getParent()
Returns a resource key with the same name and the parent locale If the locale is already null, there is no parent and it returns null. |
int |
hashCode()
Must implement the hashCode method |
java.lang.String |
toString()
Returns a textual representation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultResourceKey(java.lang.String name,
java.util.Locale locale,
java.lang.String encoding)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException| Method Detail |
|---|
public java.lang.String getName()
ResourceKey
getName in interface ResourceKeyResourceKey.getName()public java.util.Locale getLocale()
ResourceKey
getLocale in interface ResourceKeyResourceKey.getLocale()public java.lang.String getEncoding()
ResourceKey
getEncoding in interface ResourceKeyResourceKey.getEncoding()public ResourceKey getParent()
ResourceKey
getParent in interface ResourceKeyResourceKey.getParent()public boolean equals(java.lang.Object object)
ResourceKey
equals in interface ResourceKeyequals in class java.lang.Objectobject - the object to compare
Object.equals(java.lang.Object)public int hashCode()
ResourceKey
hashCode in interface ResourceKeyhashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
ResourceKey
toString in interface ResourceKeytoString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||