|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ResourceKey
ResourceKey.getName()
public java.util.Locale getLocale()
ResourceKey
getLocale
in interface ResourceKey
ResourceKey.getLocale()
public java.lang.String getEncoding()
ResourceKey
getEncoding
in interface ResourceKey
ResourceKey.getEncoding()
public ResourceKey getParent()
ResourceKey
getParent
in interface ResourceKey
ResourceKey.getParent()
public boolean equals(java.lang.Object object)
ResourceKey
equals
in interface ResourceKey
equals
in class java.lang.Object
object
- the object to compare
Object.equals(java.lang.Object)
public int hashCode()
ResourceKey
hashCode
in interface ResourceKey
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
ResourceKey
toString
in interface ResourceKey
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |