Package net.ontopia.topicmaps.classify
Class Document
- java.lang.Object
-
- net.ontopia.topicmaps.classify.Document
-
- All Implemented Interfaces:
TextHandlerIF
public class Document extends Object implements TextHandlerIF
INTERNAL:
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dump()
void
endRegion()
INTERNAL: Ends the current document region.Region
getRoot()
void
setTokenized(boolean tokenized)
void
startRegion(String regionName)
INTERNAL: Starts a new document region.void
text(char[] ch, int start, int length)
INTERNAL: Text found in the classifiable content.void
visitTokens(TokenVisitor visitor)
-
-
-
Method Detail
-
getRoot
public Region getRoot()
-
startRegion
public void startRegion(String regionName)
Description copied from interface:TextHandlerIF
INTERNAL: Starts a new document region. Regions can be nested.- Specified by:
startRegion
in interfaceTextHandlerIF
-
text
public void text(char[] ch, int start, int length)
Description copied from interface:TextHandlerIF
INTERNAL: Text found in the classifiable content. Subsequent calls to this method is allowed.- Specified by:
text
in interfaceTextHandlerIF
-
endRegion
public void endRegion()
Description copied from interface:TextHandlerIF
INTERNAL: Ends the current document region.- Specified by:
endRegion
in interfaceTextHandlerIF
-
dump
public void dump()
-
visitTokens
public void visitTokens(TokenVisitor visitor)
-
setTokenized
public void setTokenized(boolean tokenized)
-
-