public class SubtermPattern
extends java.lang.Object
History:
Constructor and Description |
---|
SubtermPattern()
Create a subterm pattern by default value.
|
SubtermPattern(java.util.Vector<SubtermPatternElement> pattern)
Create a subterm pattern by specifying the subterm pattern.
|
Modifier and Type | Method and Description |
---|---|
void |
Add(SubtermPatternElement subtermPatternElement)
Add a SubtermPatternElement to the subterm pattern.
|
boolean |
equals(java.lang.Object obj)
Equals methods for subterm pattern.
|
int |
GetLastPeEndIndex()
Get the ending index of the last pattern element.
|
java.util.Vector<SubtermPatternElement> |
GetPattern()
Get the subterm pattern - a collection of subterm pattern elements.
|
int |
GetPeEndIndexAt(int index)
Get the ending index of pattern element (index)
|
int |
GetPeStartIndexAt(int index)
Get the starting index of pattern element (index)
|
int |
GetSize()
Get the total number of subterm pattern elements in the subterm pattern.
|
int |
GetSubtermNo()
Get the total number of subterm in the subterm pattern.
|
int |
GetWordCount()
Get the total words count of pattern.
|
int |
hashCode()
Get the hash value of the subterm pattern.
|
static void |
main(java.lang.String[] args)
test driver for this class.
|
java.lang.String |
ToString()
Get the string representation of the subterm pattern
|
public SubtermPattern()
public SubtermPattern(java.util.Vector<SubtermPatternElement> pattern)
pattern
- the subterm patternpublic java.util.Vector<SubtermPatternElement> GetPattern()
public int GetSubtermNo()
public int GetSize()
public void Add(SubtermPatternElement subtermPatternElement)
subtermPatternElement
- the subterm pattern element to be addedpublic int GetWordCount()
public int GetPeStartIndexAt(int index)
index
- the index of Pattern Element (PE)public int GetPeEndIndexAt(int index)
index
- the index of Pattern Element (PE)public int GetLastPeEndIndex()
public java.lang.String ToString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the subterm 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