Package net.sf.okapi.lib.xliff2.renderer
Interface IFragmentObject
-
- All Known Implementing Classes:
XLIFFFragmentObject
public interface IFragmentObject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CTaggetCTag()Gets theCTagof this object, if the object is of that typeMTaggetMTag()Gets theMTagof this object, if the object is of that typeObjectgetObject()Gets the original object.StringgetText()Gets the text of this object, if the object is a String.Stringrender()Generates the output for a given format.
-
-
-
Method Detail
-
render
String render()
Generates the output for a given format.- Returns:
- the string representation of this inline object.
-
getText
String getText()
Gets the text of this object, if the object is a String.- Returns:
- the text.
- Throws:
ClassCastException- if the object is not a String.
-
getCTag
CTag getCTag()
Gets theCTagof this object, if the object is of that type- Returns:
- the CTag of this object.
- Throws:
ClassCastException- if the object is not a CTag.
-
getMTag
MTag getMTag()
Gets theMTagof this object, if the object is of that type- Returns:
- the MTag of this object.
- Throws:
ClassCastException- if the object is not a MTag.
-
getObject
Object getObject()
Gets the original object.- Returns:
- the original object.
-
-