Package net.sf.okapi.lib.xliff2.its
Interface IWithITSAttributes
-
- All Known Implementing Classes:
MTag,MTagCommon,TermTag,Unit
public interface IWithITSAttributesProvides a common interface to all objects that can have ITS attributes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetId()Gets the id of the object that holds the ITS items.ITSItemsgetITSItems()Gets the ITS items associated with this object.booleanhasITSItem()Indicates if the object has at least one ITS item.voidsetITSItems(ITSItems items)Sets the list of the ITS items associated with this object.
-
-
-
Method Detail
-
hasITSItem
boolean hasITSItem()
Indicates if the object has at least one ITS item.- Returns:
- true if the object has at least one ITS item.
-
getITSItems
ITSItems getITSItems()
Gets the ITS items associated with this object.- Returns:
- the ITS items associated with this object (can be empty, but never null).
-
setITSItems
void setITSItems(ITSItems items)
Sets the list of the ITS items associated with this object.- Parameters:
items- the new items to set.
-
getId
String getId()
Gets the id of the object that holds the ITS items.- Returns:
- the id of the object.
-
-