public class SynonymPatternElement extends PatternElement
History:
| Constructor and Description |
|---|
SynonymPatternElement()
Create a synonym pattern element by default value.
|
SynonymPatternElement(java.lang.String subterm)
Create a synonym pattern element by specifying subterm.
|
SynonymPatternElement(java.lang.String subterm,
int startIndex)
Create a synonym pattern element by specifying subterm and start position.
|
SynonymPatternElement(java.lang.String subterm,
int startIndex,
java.util.Vector<java.lang.String> synonyms)
Create a synonym pattern element by specifying subterm, start position,
and synonymous terms of the subterm.
|
SynonymPatternElement(SubtermPatternElement subtermPatternElement)
Create a synonym pattern element by specifying subterm pattern element.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Vector<java.lang.String> |
GetSynonyms()
Get the synonymous terms of the term of synonym pattern element.
|
static void |
main(java.lang.String[] args)
Test driver for this class
|
void |
SetSynonyms(java.util.Vector<java.lang.String> synonyms)
Set the synonymous terms of the term of synonym pattern element.
|
java.lang.String |
ToString()
Get the String representation of the synonym pattern element as
subterm|start index|end index|synonym 1|synonym 2|...
|
GetEndIndex, GetStartIndex, GetSubterm, SetSubtermpublic SynonymPatternElement()
public SynonymPatternElement(java.lang.String subterm)
subterm - term of the synonym pattern elementpublic SynonymPatternElement(java.lang.String subterm,
int startIndex)
subterm - term of the synonym pattern elementstartIndex - starting position of the synonym pattern elementpublic SynonymPatternElement(java.lang.String subterm,
int startIndex,
java.util.Vector<java.lang.String> synonyms)
subterm - term of the synonym pattern elementstartIndex - starting position of the synonym pattern elementsynonyms - synonymous terms of the term of synonym pattern elementpublic SynonymPatternElement(SubtermPatternElement subtermPatternElement)
subtermPatternElement - subterm pattern element for the synonym
pattern elementpublic void SetSynonyms(java.util.Vector<java.lang.String> synonyms)
synonyms - the synonymous terms of the term of synonym pattern
elementpublic java.util.Vector<java.lang.String> GetSynonyms()
public java.lang.String ToString()
ToString in class PatternElementpublic static void main(java.lang.String[] args)
args - arguments Submit a bug or feature
Copyright © 2015 National Library of Medicine