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 voiddump()voidendRegion()INTERNAL: Ends the current document region.RegiongetRoot()voidsetTokenized(boolean tokenized)voidstartRegion(String regionName)INTERNAL: Starts a new document region.voidtext(char[] ch, int start, int length)INTERNAL: Text found in the classifiable content.voidvisitTokens(TokenVisitor visitor)
-
-
-
Method Detail
-
getRoot
public Region getRoot()
-
startRegion
public void startRegion(String regionName)
Description copied from interface:TextHandlerIFINTERNAL: Starts a new document region. Regions can be nested.- Specified by:
startRegionin interfaceTextHandlerIF
-
text
public void text(char[] ch, int start, int length)Description copied from interface:TextHandlerIFINTERNAL: Text found in the classifiable content. Subsequent calls to this method is allowed.- Specified by:
textin interfaceTextHandlerIF
-
endRegion
public void endRegion()
Description copied from interface:TextHandlerIFINTERNAL: Ends the current document region.- Specified by:
endRegionin interfaceTextHandlerIF
-
dump
public void dump()
-
visitTokens
public void visitTokens(TokenVisitor visitor)
-
setTokenized
public void setTokenized(boolean tokenized)
-
-