|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.japisoft.xmlpad.helper.SyntaxHelper
SyntaxHelper This classes is a method factory for finding helper for the current XMLPad context usage. This is for tags or entities.
Constructor Summary | |
SyntaxHelper(ErrorManager manager)
|
Method Summary | |
void |
addTagDescriptor(TagDescriptor tag)
|
void |
cleanTemporaryHelpers()
|
void |
dispose()
|
AttributeHelper |
getAttributeHelperForLocation(SimpleNode location)
|
EntityHelper |
getEntityHelper()
|
SystemHelper |
getSystemHelper()
|
TagHelper |
getTagHelper()
|
TagHelper |
getTagHelperForLocation(SimpleNode parent,
int caret)
|
boolean |
hasTagHelper()
|
void |
initErrorProcessing()
This is called once before checking the whole document |
void |
notifyError(boolean localError,
java.lang.String sourceLocation,
int line,
int col,
int offset,
java.lang.String message,
boolean onTheFly)
Notify an XML error found while parsing |
void |
notifyNoError(boolean onTheFly)
Notify the document is correct |
void |
setDefaultNamespace(java.lang.String namespace)
Reset a default namespace for the content assistant |
void |
setDTDContent(java.lang.String rootElement,
SchemaLocator locator)
Reset the local DTD |
void |
setDTDContent(java.lang.String rootElement,
java.lang.String dtdContent,
int dtdDeclarationLine)
Add support for completion using the DTD content |
void |
setDTDLocation(java.lang.String currentDocument,
java.lang.String location,
java.lang.String rootElement,
int dtdDeclarationLine)
Reset the current DTD location |
void |
setForcePrefix(java.lang.String prefix)
|
void |
setRelaxNGLocation(SchemaLocator locator)
Reset the current RelaxNGLocation |
void |
setSchemaLocation(java.lang.String currentDocument,
java.lang.String[] namespaces,
java.lang.String[] locations,
java.lang.String rootElement,
int documentLineForLocation)
Reset the current Schema location |
void |
setSystemHelper(SystemHelper helper)
Update the current system helper or reset it to null for
the default one |
void |
stopErrorProcessing()
This is called once after checking the whole document |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SyntaxHelper(ErrorManager manager)
Method Detail |
public void addTagDescriptor(TagDescriptor tag)
public void initErrorProcessing()
ErrorListener
initErrorProcessing
in interface ErrorListener
public void notifyError(boolean localError, java.lang.String sourceLocation, int line, int col, int offset, java.lang.String message, boolean onTheFly)
ErrorListener
notifyError
in interface ErrorListener
localError
- a flag for knowing if the error is inside the current document (sometimes this is inside a DTD or a W3C Schema)sourceLocation
- The document locationline
- The error linecol
- The error columnoffset
- The error offsetmessage
- The error messageonTheFly
- Flag for informing if this is while the user inserts or nopublic void notifyNoError(boolean onTheFly)
ErrorListener
notifyNoError
in interface ErrorListener
onTheFly
- for informing if this is while inserting characterspublic void stopErrorProcessing()
ErrorListener
stopErrorProcessing
in interface ErrorListener
public void cleanTemporaryHelpers()
public void dispose()
public boolean hasTagHelper()
true
if a tag helper is availablepublic void setRelaxNGLocation(SchemaLocator locator)
public void setSchemaLocation(java.lang.String currentDocument, java.lang.String[] namespaces, java.lang.String[] locations, java.lang.String rootElement, int documentLineForLocation)
public void setDTDContent(java.lang.String rootElement, java.lang.String dtdContent, int dtdDeclarationLine)
public void setDTDContent(java.lang.String rootElement, SchemaLocator locator)
public void setDTDLocation(java.lang.String currentDocument, java.lang.String location, java.lang.String rootElement, int dtdDeclarationLine)
public TagHelper getTagHelperForLocation(SimpleNode parent, int caret)
public TagHelper getTagHelper()
public AttributeHelper getAttributeHelperForLocation(SimpleNode location)
public EntityHelper getEntityHelper()
public SystemHelper getSystemHelper()
public void setSystemHelper(SystemHelper helper)
null
for
the default one
public void setForcePrefix(java.lang.String prefix)
public void setDefaultNamespace(java.lang.String namespace)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |