Constructor and Description |
---|
AbstractLanguage(java.lang.String key)
Better to use AbstractLanguage(key, name).
|
AbstractLanguage(java.lang.String key,
java.lang.String name)
Should be the constructor used to build an AbstractLanguage.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getKey()
For example "java".
|
java.lang.String |
getName()
For example "Java"
|
int |
hashCode() |
void |
setName(java.lang.String name)
Sets the language name
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFileSuffixes
public AbstractLanguage(java.lang.String key)
key
- The key of the language. Must not be more than 20 chars.public AbstractLanguage(java.lang.String key, java.lang.String name)
key
- the key that will be used to retrieve the language. Must not be more than 20 chars. This key is important as it will be used to teint rules repositories...name
- the display name of the language in the interfacepublic java.lang.String getKey()
public java.lang.String getName()
public void setName(java.lang.String name)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object