public class SynonymPattern
extends java.lang.Object
History:
Constructor and Description |
---|
SynonymPattern()
Create a synonym pattern by default value.
|
SynonymPattern(java.util.Vector<SynonymPatternElement> pattern)
Create a synonym pattern by specifying the synonym pattern.
|
Modifier and Type | Method and Description |
---|---|
void |
Add(SynonymPatternElement synonymPatternElement)
Add a SynonymPatternElement to the subterm pattern.
|
boolean |
equals(java.lang.Object obj)
Equals methods for synonym pattern.
|
java.util.Vector<SynonymPatternElement> |
GetPattern()
Get the synonym pattern - a collection of synonym pattern elements.
|
int |
GetSize()
Get the total number of subterm pattern elements in the synonym pattern.
|
int |
GetSubtermNo()
Get the total number of subterm in the synonym pattern.
|
int |
hashCode()
Get the hash value of the synonym pattern.
|
static void |
main(java.lang.String[] args)
test driver for this class.
|
java.lang.String |
ToString()
Get the string representation of the synonym pattern
|
public SynonymPattern()
public SynonymPattern(java.util.Vector<SynonymPatternElement> pattern)
pattern
- the synonym patternpublic java.util.Vector<SynonymPatternElement> GetPattern()
public void Add(SynonymPatternElement synonymPatternElement)
synonymPatternElement
- the synonym pattern element to be addedpublic int GetSubtermNo()
public int GetSize()
public java.lang.String ToString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the synonym pattern to be comparedpublic int hashCode()
hashCode
in class java.lang.Object
public static void main(java.lang.String[] args)
args
- arguments Submit a bug or feature
Copyright © 2015 National Library of Medicine