Package net.sf.okapi.lib.xliff2.core
Class MTagCommon
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.core.MTagCommon
-
- All Implemented Interfaces:
IWithITSAttributes
public class MTagCommon extends Object implements IWithITSAttributes
Represents common data for the opening and closingMTag.
-
-
Constructor Summary
Constructors Constructor Description MTagCommon(String id, String type)MTagCommon(MTagCommon original)Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)Indicates if this object is equals to a given one.StringgetId()Gets the id of the object that holds the ITS items.ITSItemsgetITSItems()Gets the ITS items associated with this object.StringgetRef()BooleangetTranslate()StringgetType()StringgetValue()inthashCode()booleanhasITSItem()Indicates if the object has at least one ITS item.voidsetId(String id)voidsetITSItems(ITSItems itsItems)Sets the list of the ITS items associated with this object.voidsetRef(String ref)voidsetTranslate(Boolean translate)voidsetType(String type)voidsetValue(String value)
-
-
-
Constructor Detail
-
MTagCommon
public MTagCommon(MTagCommon original)
Copy constructor.- Parameters:
original- the existingMTagCommonto duplicate.
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:IWithITSAttributesGets the id of the object that holds the ITS items.- Specified by:
getIdin interfaceIWithITSAttributes- Returns:
- the id of the object.
-
setId
public void setId(String id)
-
setType
public void setType(String type)
-
getRef
public String getRef()
-
setRef
public void setRef(String ref)
-
getValue
public String getValue()
-
setValue
public void setValue(String value)
-
getTranslate
public Boolean getTranslate()
-
setTranslate
public void setTranslate(Boolean translate)
-
equals
public boolean equals(Object other)
Indicates if this object is equals to a given one.
-
hasITSItem
public boolean hasITSItem()
Description copied from interface:IWithITSAttributesIndicates if the object has at least one ITS item.- Specified by:
hasITSItemin interfaceIWithITSAttributes- Returns:
- true if the object has at least one ITS item.
-
getITSItems
public ITSItems getITSItems()
Description copied from interface:IWithITSAttributesGets the ITS items associated with this object.- Specified by:
getITSItemsin interfaceIWithITSAttributes- Returns:
- the ITS items associated with this object (can be empty, but never null).
-
setITSItems
public void setITSItems(ITSItems itsItems)
Description copied from interface:IWithITSAttributesSets the list of the ITS items associated with this object.- Specified by:
setITSItemsin interfaceIWithITSAttributes- Parameters:
itsItems- the new items to set.
-
getType
public String getType()
-
-