public abstract class ControlDocumentView extends Modeling
| Modifier and Type | Field and Description | 
|---|---|
private static java.lang.String | 
TEXT_VARIABLE  | 
protected TypedDependencyMode | 
typedDependencyMode
Typed Dependency mode 
 | 
protected TypedDependencyProvider | 
typedDependencyProvider
Typed Dependency provider 
 | 
private static java.lang.String | 
URL_VARIABLE  | 
private static java.lang.String | 
USE_URL_VARIABLE  | 
protected static boolean | 
xmlCompatibilityMode
XML compatibility mode 
 | 
relationFilter, relationFilter2, relationModel, relationPalettebuilder, clientProperties, loadServer, server, useNullServer| Constructor and Description | 
|---|
ControlDocumentView()
Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
(package private) abstract void | 
addView(View view)
Add view 
 | 
void | 
commandInput()
Input document handler 
 | 
void | 
commandOpen()
Open command handler 
 | 
void | 
commandOpenPaste()
Paste document handler 
 | 
void | 
commandOpenUrl()
Open URL command handler 
 | 
void | 
commandOpenXml(boolean dynamicRequest,
              boolean passURL,
              boolean passFile,
              boolean useServletUrl)
Open XML document command handler 
 | 
private static java.lang.String | 
encode(java.lang.String str)
Encode encoded 
 | 
protected void | 
endTask()
Release input block 
 | 
(package private) abstract java.lang.String[] | 
getArgs()
Get command-line arguments 
 | 
abstract java.util.List<Document> | 
getDocuments()
Get documents 
 | 
(package private) abstract java.util.Observable | 
getObservable()
Get observable 
 | 
(package private) abstract Settings | 
getSettings()  | 
private java.lang.String | 
getTextFileUrl()
Get text file url 
 | 
java.lang.String | 
getUrl(Settings.Setting setting,
      boolean setProperty)
Get Url 
 | 
private java.lang.String | 
getXmlFileUrl()
Get xml file url 
 | 
protected void | 
initControlDocumentView()
Initialize 
 | 
Document | 
makeDocument(java.net.URL url)
Load the document 
 | 
private static Settings | 
makeSettings(Settings settings,
            java.lang.String[] args)
Make settings allowing for overrides on command line 
 | 
Document | 
makeTextDocument(java.lang.String text)
Load the document 
 | 
private static java.lang.String | 
makeUrl(java.lang.String url0,
       java.lang.String target,
       boolean targetIsUrl)
Make Url 
 | 
private View | 
makeView()
Make view 
 | 
private void | 
makeView(Document document,
        java.lang.String documentPath)
Make view 
 | 
static Document | 
makeXmlDocument(java.net.URL url)
Load the document 
 | 
void | 
notified(Event event)
Event notification 
 | 
protected void | 
onDone(Document document,
      boolean parsed,
      boolean analyzed)
Document parsed/analyzed callback 
 | 
protected void | 
onPublish(Document document,
         java.util.List<java.lang.Integer> sentenceIndices,
         boolean parsed,
         boolean analyzed)
Document part published callback 
 | 
void | 
startDocument(java.lang.String text)
Start document input thread 
 | 
void | 
startDocumentLoading(java.net.URL uRL)
Start document loading thread 
 | 
void | 
startProcessing(Document document,
               boolean recognize,
               boolean parse,
               boolean analyze,
               boolean clear,
               boolean waitServerReady)
Start processing thread 
 | 
protected void | 
startTask()
Block input when task is initiated. 
 | 
void | 
startXmlDocumentLoading(java.net.URL uRL)
Start XML document loading thread 
 | 
commandLoadRelationFilter, commandLoadRelationPalette, commandSaveRelationFilter, commandSaveRelationPalette, getFrame, initRelationModel, initRelationModel, makeRelationModel, setRelationModelgetFirerbindToServer, checkCoreNlp, clearClient, initClient, onServerBound, setup, updateClientgetState, lock, resetLockprotected static boolean xmlCompatibilityMode
protected TypedDependencyProvider typedDependencyProvider
protected TypedDependencyMode typedDependencyMode
private static final java.lang.String USE_URL_VARIABLE
private static final java.lang.String URL_VARIABLE
private static final java.lang.String TEXT_VARIABLE
protected void initControlDocumentView()
private static Settings makeSettings(Settings settings, java.lang.String[] args)
settings - settingsargs - command-line argumentspublic void notified(Event event)
IEventListenernotified in interface IEventListenernotified in class Modelingevent - eventabstract Settings getSettings()
getSettings in class Modelingabstract java.lang.String[] getArgs()
abstract java.util.Observable getObservable()
public abstract java.util.List<Document> getDocuments()
abstract void addView(View view)
view - viewprivate View makeView()
private void makeView(Document document, java.lang.String documentPath)
document - documentdocumentPath - document pathpublic Document makeDocument(java.net.URL url)
url - url to the documentpublic static Document makeXmlDocument(java.net.URL url)
url - url to the documentpublic Document makeTextDocument(java.lang.String text)
text - textpublic void startDocumentLoading(java.net.URL uRL)
uRL - url to the documentpublic void startDocument(java.lang.String text)
text - textpublic void startXmlDocumentLoading(java.net.URL uRL)
uRL - url to the documentprotected void startTask()
protected void endTask()
public void startProcessing(Document document, boolean recognize, boolean parse, boolean analyze, boolean clear, boolean waitServerReady)
document - documentrecognize - recognize (pos, named entities)parse - parseanalyze - analyzeclear - clear cached datawaitServerReady - wait until server is readyprotected void onDone(Document document, boolean parsed, boolean analyzed)
document - documentparsed - parsedanalyzed - analyzedprotected void onPublish(Document document, java.util.List<java.lang.Integer> sentenceIndices, boolean parsed, boolean analyzed)
document - documentsentenceIndices - indices of done sentences (-1=all done)parsed - parsedanalyzed - analyzedpublic void commandOpen()
public void commandOpenUrl()
public void commandOpenPaste()
public void commandInput()
public void commandOpenXml(boolean dynamicRequest,
                           boolean passURL,
                           boolean passFile,
                           boolean useServletUrl)
dynamicRequest - true if dynamic requestpassURL - whether to pass urlpassFile - whether to pass fileuseServletUrl - whether to use servlet urlprivate static java.lang.String makeUrl(java.lang.String url0,
                                        java.lang.String target,
                                        boolean targetIsUrl)
url0 - urltarget - targettargetIsUrl - whether url (true) or text (false) has been passed as targetpublic java.lang.String getUrl(Settings.Setting setting, boolean setProperty)
setting - settingsetProperty - whether to se propertyprivate java.lang.String getXmlFileUrl()
private java.lang.String getTextFileUrl()
private static java.lang.String encode(java.lang.String str)
str - string