|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ocltf.translation.library.Translation
Represents a translation XML template found within a translation library.
Constructor Summary | |
Translation()
Constructs an instance of Translation. |
Method Summary | |
void |
addFragment(Fragment fragment)
Adds a new Translation fragment to the Translation. |
void |
addIgnorePattern(java.lang.String ignorePattern)
Adds an ignorePattern to
the Collection of ignorePatterns. |
void |
addValidatePattern(java.lang.String validatePattern)
Adds an validatePattern to
the Collection of validatePatterns. |
protected Fragment |
getFragment(java.lang.String name)
Gets the fragment matching (using regular expressions) the specified name. |
protected LibraryTranslation |
getLibraryTranslation()
Gets the LibraryTranslation to which this Translation belongs. |
protected java.lang.String |
getName()
Gets the name of this Translation. |
protected java.lang.String |
getTranslated(java.lang.String name,
java.lang.String kind)
Gets the "translated" value of this Fragment if it exists. |
boolean |
isIgnorePattern(java.lang.String pattern)
Checks to see if the pattern is an ignore pattern. |
protected void |
setLibraryTranslation(LibraryTranslation translation)
Sets the LibraryTranslation to which this Translation belongs. |
protected void |
setName(java.lang.String name)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Translation()
Method Detail |
protected LibraryTranslation getLibraryTranslation()
protected void setLibraryTranslation(LibraryTranslation translation)
translation
- the LibraryTranslation to which this Translation belongs.protected Fragment getFragment(java.lang.String name)
name
- the name of the fragment to retrieve.
public void addFragment(Fragment fragment)
fragment
- protected java.lang.String getName()
protected void setName(java.lang.String name)
name
- public void addIgnorePattern(java.lang.String ignorePattern)
ignorePattern
to
the Collection of ignorePatterns.
ignorePattern
- the pattern to ignore.public void addValidatePattern(java.lang.String validatePattern)
validatePattern
to
the Collection of validatePatterns.
validatePattern
- the pattern to validate.public boolean isIgnorePattern(java.lang.String pattern)
pattern
-
true
if its an ignore pattern, false
otherwise.protected java.lang.String getTranslated(java.lang.String name, java.lang.String kind)
name
- the name of the fragment.kind
- the kind of the fragment.
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |