public class GlossEntry extends java.lang.Object implements IWithExtAttributes, IWithExtElements, java.lang.Iterable<Translation>
| Constructor and Description |
|---|
GlossEntry()
Creates a new
GlossEntry object. |
GlossEntry(GlossEntry original)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Translation |
addTranslation(java.lang.String text)
Adds a translation to this entry.
|
Definition |
getDefinition()
Gets the definition for this entry.
|
ExtAttributes |
getExtAttributes()
Gets the
ExtAttributes object for the parent object. |
java.lang.String |
getExtAttributeValue(java.lang.String namespaceURI,
java.lang.String localName)
Gets the value for a given extension attribute.
|
ExtElements |
getExtElements()
Gets the
ExtElements object associated with this object. |
java.lang.String |
getId()
Gets the id for this entry.
|
java.lang.String |
getRef()
Gets the reference for this entry.
|
Term |
getTerm()
Gets the term for this entry.
|
java.util.List<Translation> |
getTranslations()
Gets the list of the
Translation objects for this entry. |
boolean |
hasExtAttribute()
Indicates if at least one extension attribute is present.
|
boolean |
hasExtElements()
Indicates if there is a
ExtElements object associated with this object. |
java.util.Iterator<Translation> |
iterator() |
Definition |
setDefinition(Definition definition)
Sets a new definition for this entry.
|
void |
setExtAttributes(ExtAttributes attributes)
Sets the
ExtAttributes object associated with this object. |
ExtElements |
setExtElements(ExtElements elements)
Sets the
ExtElements object associated with this object. |
void |
setId(java.lang.String id)
Sets the id for this entry.
|
void |
setRef(java.lang.String ref)
Sets the reference for this entry.
|
Term |
setTerm(Term term)
Sets a new term for this entry.
|
public GlossEntry()
GlossEntry object.public GlossEntry(GlossEntry original)
original - the original object to duplicate.public java.lang.String getId()
public void setId(java.lang.String id)
id - the new id for this entry (can be null).public java.lang.String getRef()
public void setRef(java.lang.String ref)
ref - the new reference for this entry (can be null).public Term getTerm()
public Term setTerm(Term term)
term - the new term for this entry (must not be null).Term object.public Definition getDefinition()
public Definition setDefinition(Definition definition)
definition - the new definition for this entry (can be null).Definition object.public Translation addTranslation(java.lang.String text)
text - the text of the translation to add.Translation object.public ExtElements getExtElements()
IWithExtElementsExtElements object associated with this object.
If none exists one is created.getExtElements in interface IWithExtElementsExtElements object associated with this object. If none exists one is created.public boolean hasExtElements()
IWithExtElementsExtElements object associated with this object.hasExtElements in interface IWithExtElementsExtElements object associated with this object,
false otherwise.public ExtElements setExtElements(ExtElements elements)
IWithExtElementsExtElements object associated with this object.setExtElements in interface IWithExtElementselements - the ExtElements object associated with this object.
If null, a new ExtElements object is created.ExtElements object associated with this object, never null.public void setExtAttributes(ExtAttributes attributes)
IWithExtAttributesExtAttributes object associated with this object.setExtAttributes in interface IWithExtAttributesattributes - the ExtAttributes object associated with this object.
If null, a new ExtAttributes object is created.public ExtAttributes getExtAttributes()
IWithExtAttributesExtAttributes object for the parent object.
If none exists, one is created.getExtAttributes in interface IWithExtAttributesExtAttributes object for the parent object, never null.public boolean hasExtAttribute()
IWithExtAttributeshasExtAttribute in interface IWithExtAttributespublic java.lang.String getExtAttributeValue(java.lang.String namespaceURI,
java.lang.String localName)
IWithExtAttributesgetExtAttributeValue in interface IWithExtAttributesnamespaceURI - the URI of the namespace for the attribute.localName - the name of the attribute.public java.util.Iterator<Translation> iterator()
iterator in interface java.lang.Iterable<Translation>public java.util.List<Translation> getTranslations()
Translation objects for this entry.Translation objects for this entry (never null).