public class Translation extends Object
Constructor and Description |
---|
Translation() |
Modifier and Type | Method and Description |
---|---|
void |
addFragment(Fragment fragment)
Adds a new Translation fragment to the Translation.
|
void |
addIgnorePattern(String ignorePattern)
Adds an
ignorePattern to the Collection of ignorePatterns. |
protected Fragment |
getFragment(String name)
Gets the fragment matching (using regular expressions) the specified name.
|
protected LibraryTranslation |
getLibraryTranslation()
Gets the LibraryTranslation to which this Translation belongs.
|
protected String |
getName()
Gets the name of this Translation.
|
protected String |
getTranslated(String name,
String kind)
Gets the "translated" value of this Fragment if it exists.
|
boolean |
isIgnorePattern(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(String name) |
String |
toString() |
public Translation()
protected LibraryTranslation getLibraryTranslation()
protected void setLibraryTranslation(LibraryTranslation translation)
translation
- the LibraryTranslation to which this Translation belongs.protected Fragment getFragment(String name)
name
- the name of the fragment to retrieve.public void addFragment(Fragment fragment)
fragment
- new Translation fragmentpublic void addIgnorePattern(String ignorePattern)
ignorePattern
to the Collection of ignorePatterns.ignorePattern
- the pattern to ignore.public boolean isIgnorePattern(String pattern)
pattern
- true
if its an ignore pattern, false
otherwise.protected String getTranslated(String name, String kind)
name
- the name of the fragment.kind
- the kind of the fragment.public String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2014 AndroMDA.org. All rights reserved.