|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.site.elkb.RogetText
public class RogetText
Represents the Text of Roget's Thesaurus. The following information is maintained for the Text:
Constructor Summary | |
---|---|
RogetText()
Default constructor. |
|
RogetText(int capacity)
Constructor which specifies the number of Heads contained in this RogetText. |
|
RogetText(int capacity,
java.lang.String fileName)
Constructor that builds the RogetText object by specifying the number of Heads and using the information contained files which end with .txt. |
|
RogetText(int capacity,
java.lang.String fileName,
java.lang.String extension)
Constructor that builds the RogetText object by specifying the number of Heads and using the information contained files which end with the given extension. |
|
RogetText(java.lang.String path)
Constructor which specifies the directory in which the Heads are found. |
Method Summary | |
---|---|
void |
addHead(Head headObj)
Adds a Head object to this RogetText. |
void |
addHead(java.lang.String fileName)
Adds a Head which is contained in the specified file to this RogetText. |
int |
getAdjCount()
Returns the number of adjectives in this RogetText. |
int |
getAdjCRefCount()
Returns the number of adjective Cross-references in this RogetText. |
int |
getAdjParaCount()
Returns the number of adjective Paragraphs in this RogetText. |
int |
getAdjSeeCount()
Returns the number of adjective See referencs in this RogetText. |
int |
getAdjSGCount()
Returns the number of ajective Semicolon Groups in this RogetText. |
int |
getAdvCount()
Returns the number of adverbs in this RogetText. |
int |
getAdvCRefCount()
Returns the number of adverb Cross-references in this RogetText. |
int |
getAdvParaCount()
Returns the number of adverb Paragraphs in this RogetText. |
int |
getAdvSeeCount()
Returns the number of adverb See referencs in this RogetText. |
int |
getAdvSGCount()
Returns the number of adverb Semicolon Groups in this RogetText. |
int |
getCRefCount()
Returns the number of Cross-references in this RogetText. |
Head |
getHead(int headNum)
Returns the Head with the specified number. |
int |
getHeadCount()
Returns the number of Heads in this RogetText. |
int |
getIntCount()
Returns the number of interjections in this RogetText. |
int |
getIntCRefCount()
Returns the number of interjection Cross-references in this RogetText. |
int |
getIntParaCount()
Returns the number of interjection Paragraphs in this RogetText. |
int |
getIntSeeCount()
Returns the number of interjection See referencs in this RogetText. |
int |
getIntSGCount()
Returns the number of interjection Semicolon Groups in this RogetText. |
int |
getNCount()
Returns the number of nouns in this RogetText. |
int |
getNCRefCount()
Returns the number of noun Cross-references in this RogetText. |
int |
getNParaCount()
Returns the number of noun Paragraphs in this RogetText. |
int |
getNSeeCount()
Returns the number of noun See referencs in this RogetText. |
int |
getNSGCount()
Returns the number of noun Semicolon Groups in this RogetText. |
int |
getParaCount()
Returns the number of Paragraphs in this RogetText. |
int |
getPhrCount()
Returns the number of phrases in this RogetText. |
int |
getPhrCRefCount()
Returns the number of phrase Cross-references in this RogetText. |
int |
getPhrParaCount()
Returns the number of phrase Paragraphs in this RogetText. |
int |
getPhrSeeCount()
Returns the number of phrase See referencs in this RogetText. |
int |
getPhrSGCount()
Returns the number of phrase Semicolon Groups in this RogetText. |
int |
getPrefCount()
Returns the number of preface in this RogetText. |
int |
getPrefCRefCount()
Returns the number of preface Cross-references in this RogetText. |
int |
getPrefParaCount()
Returns the number of preface Paragraphs in this RogetText. |
int |
getPrefSeeCount()
Returns the number of preface See referencs in this RogetText. |
int |
getPrefSGCount()
Returns the number of preface Semicolon Groups in this RogetText. |
int |
getPronCount()
Returns the number of pronoun in this RogetText. |
int |
getPronCRefCount()
Returns the number of pronoun Cross-references in this RogetText. |
int |
getPronParaCount()
Returns the number of pronoun Paragraphs in this RogetText. |
int |
getPronSeeCount()
Returns the number of pronoun See referencs in this RogetText. |
int |
getPronSGCount()
Returns the number of pronoun Semicolon Groups in this RogetText. |
int |
getSeeCount()
Returns the number of See referencs in this RogetText. |
int |
getSGCount()
Returns the number of Semicolon Groups in this RogetText. |
int |
getVbCount()
Returns the number of verbs in this RogetText. |
int |
getVbCRefCount()
Returns the number of verb Cross-references in this RogetText. |
int |
getVbParaCount()
Returns the number of verb Paragraphs in this RogetText. |
int |
getVbSeeCount()
Returns the number of verb See referencs in this RogetText. |
int |
getVbSGCount()
Returns the number of verb Semicolon Groups in this RogetText. |
int |
getWordCount()
Returns the number of words and phrases in this RogetText. |
void |
printHead(int headNum)
Prints the contents of a Head specified by its number to the standard output. |
java.lang.String |
toString()
Converts to a string representation the RogetText object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RogetText()
public RogetText(int capacity)
capacity
- public RogetText(int capacity, java.lang.String fileName)
capacity
- fileName
- public RogetText(java.lang.String path)
path
- public RogetText(int capacity, java.lang.String fileName, java.lang.String extension)
capacity
- fileName
- extension
- Method Detail |
---|
public void addHead(Head headObj)
headObj
- public void addHead(java.lang.String fileName)
fileName
- public Head getHead(int headNum)
headNum
-
public int getHeadCount()
public int getParaCount()
public int getNParaCount()
public int getAdjParaCount()
public int getVbParaCount()
public int getAdvParaCount()
public int getIntParaCount()
public int getPhrParaCount()
public int getPrefParaCount()
public int getPronParaCount()
public int getSGCount()
public int getNSGCount()
public int getAdjSGCount()
public int getVbSGCount()
public int getAdvSGCount()
public int getIntSGCount()
public int getPhrSGCount()
public int getPrefSGCount()
public int getPronSGCount()
public int getSeeCount()
public int getNSeeCount()
public int getAdjSeeCount()
public int getVbSeeCount()
public int getAdvSeeCount()
public int getIntSeeCount()
public int getPhrSeeCount()
public int getPrefSeeCount()
public int getPronSeeCount()
public int getCRefCount()
public int getNCRefCount()
public int getAdjCRefCount()
public int getVbCRefCount()
public int getAdvCRefCount()
public int getIntCRefCount()
public int getPhrCRefCount()
public int getPrefCRefCount()
public int getPronCRefCount()
public int getWordCount()
public int getNCount()
public int getAdjCount()
public int getVbCount()
public int getAdvCount()
public int getIntCount()
public int getPhrCount()
public int getPrefCount()
public int getPronCount()
public java.lang.String toString()
toString
in class java.lang.Object
public void printHead(int headNum)
headNum
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |