|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ocltf.translation.library.Fragment
A Translation "fragment" of a translation file. This fragment belongs to a Translation object.
Translation
Constructor Summary | |
Fragment()
It doesn't make any sense to instatiate this object explicitly. |
Method Summary | |
void |
addKind(java.lang.String name,
java.lang.String body)
Adds the specified kind having the specified name and body to the Fragment. |
java.lang.String |
getHandlerMethod()
Returns the name of the handler method. |
java.lang.String |
getKind(java.lang.String name)
Returns the body for the fragment kind with the specified name. |
java.util.Map |
getKinds()
Returns the kinds contained within this translation fragment |
java.lang.String |
getName()
Gets the name of this fragment |
Translation |
getTranslation()
Gets the Translation to which this Fragment belongs. |
void |
setHandlerMethod(java.lang.String handlerMethod)
Sets the name of the handler method. |
void |
setName(java.lang.String name)
Sets the name of this fragment. |
void |
setTranslation(Translation translation)
Sets the Translation to which this Fragment belongs. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Fragment()
Translation
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- public java.util.Map getKinds()
public java.lang.String getKind(java.lang.String name)
name
- the name of the kind to get.
public void addKind(java.lang.String name, java.lang.String body)
name
- the name of the kind of expression.body
- the body of the kind of expression.public java.lang.String getHandlerMethod()
public void setHandlerMethod(java.lang.String handlerMethod)
handlerMethod
- The handlerMethod to set.Translator
public Translation getTranslation()
public void setTranslation(Translation translation)
translation
- public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |