public interface IlrGlossary extends IlrNotifier, java.io.Serializable
IlrTerm| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TERM_GENDER_LITERAL
internal
|
static java.lang.String |
TERM_PLURAL_LITERAL
internal
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addTerm(IlrTerm term)
Adds a term into the glossary.
|
boolean |
containTerm(IlrTerm term)
Tests if the glossary contains a given term.
|
IlrTerm |
getTerm(java.lang.String id)
Gets a term by its ID.
|
int |
getTermCount()
Returns the count of all terms in this glossary.
|
java.util.Set |
idSet()
Returns the set of all IDs of the terms in this glossary.
|
void |
read(java.io.InputStream istream)
Reads the specified input stream and loads it into this glossary.
|
boolean |
removeTerm(IlrTerm term)
Removes a term from the glossary.
|
java.util.Set |
termSet()
Returns the set of all terms in this glossary.
|
void |
write(java.io.OutputStream ostream)
Writes this glossary to the specified output stream.
|
addListener, getListeners, notify, removeListenerstatic final java.lang.String TERM_PLURAL_LITERAL
static final java.lang.String TERM_GENDER_LITERAL
java.util.Set idSet()
java.util.Set termSet()
int getTermCount()
boolean addTerm(IlrTerm term)
term - The term to add.false if the term is already in the glossary, true otherwise.boolean removeTerm(IlrTerm term)
term - The term to remove.true if the term has been successfully removed, false if the term was not in the glossary.boolean containTerm(IlrTerm term)
term - The term to be tested.true if the glossary contains the term, false otherwise.IlrTerm getTerm(java.lang.String id)
id - The ID of the term to retrieve.null if no term has been found.void read(java.io.InputStream istream)
throws java.io.IOException
java.io.IOExceptionistream - The input stream.void write(java.io.OutputStream ostream)
throws java.io.IOException
java.io.IOExceptionostream - The output stream.© Copyright IBM Corp. 1987, 2017