Package net.sf.okapi.lib.xliff2.glossary
Class Definition
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.core.DataWithExtAttributes
-
- net.sf.okapi.lib.xliff2.glossary.Definition
-
- All Implemented Interfaces:
IWithExtAttributes
public class Definition extends DataWithExtAttributes
Represents the <definition> element Glossary module.
-
-
Constructor Summary
Constructors Constructor Description Definition(String text)Creates aDefinitionobject with a given text.Definition(Definition original)Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Indicates if this object is equals to a given one.StringgetSource()Gets the source of this field.StringgetText()Get the text of this field.inthashCode()voidsetSource(String source)sets the source of this field.voidsetText(String text)Sets the text of this field.-
Methods inherited from class net.sf.okapi.lib.xliff2.core.DataWithExtAttributes
getExtAttributes, getExtAttributeValue, hasExtAttribute, setExtAttributes
-
-
-
-
Constructor Detail
-
Definition
public Definition(String text)
Creates aDefinitionobject with a given text.- Parameters:
text- the text of the definition.
-
Definition
public Definition(Definition original)
Copy constructor.- Parameters:
original- the original object to duplicate.
-
-
Method Detail
-
getText
public String getText()
Get the text of this field.- Returns:
- the text of this field (can be null).
-
setText
public void setText(String text)
Sets the text of this field.- Parameters:
text- the new text of this field (can be null).
-
getSource
public String getSource()
Gets the source of this field.- Returns:
- the source of this field (can be null).
-
setSource
public void setSource(String source)
sets the source of this field.- Parameters:
source- the new source of this field (can be null).
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDataWithExtAttributes
-
equals
public boolean equals(Object obj)
Description copied from class:DataWithExtAttributesIndicates if this object is equals to a given one.- Overrides:
equalsin classDataWithExtAttributes- Parameters:
obj- the other object to compare.- Returns:
- true if the two objects are identical.
-
-