|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qedeq.kernel.se.visitor.AbstractModuleVisitor
org.qedeq.kernel.bo.service.basis.ControlVisitor
public abstract class ControlVisitor
Basic visitor that gives some error collecting features. Also hides the traverser that does the work.
| Constructor Summary | |
|---|---|
protected |
ControlVisitor(KernelQedeqBo prop)
Constructor. |
protected |
ControlVisitor(Service service,
KernelQedeqBo prop)
Constructor. |
| Method Summary | |
|---|---|
protected void |
addError(ModuleDataException me)
Add exception to error collection. |
protected void |
addError(SourceFileException sf)
Add exception to error collection. |
protected void |
addWarning(ModuleDataException me)
Add exception to warning collection. |
boolean |
getBlocked()
Get if further traverse is blocked. |
ModuleContext |
getCurrentContext()
Get current context within original. |
QedeqNumbers |
getCurrentNumbers()
Get copy of current counters. |
SourceFileExceptionList |
getErrorList()
Get list of errors that occurred during visit. |
InternalModuleServiceCall |
getInternalServiceCall()
Get service call we work in. |
boolean |
getInterrupted()
Was traverse interrupted by user? |
KernelQedeqBo |
getKernelQedeqBo()
Get QedeqBo. |
RuleKey |
getLocalRuleKey(java.lang.String name)
Get current (QEDEQ module local) rule version for given rule name. |
java.lang.String |
getLocationDescription()
Get location info from traverser. |
KernelNodeBo |
getNodeBo()
Get node that is currently parsed. |
java.lang.String |
getNodeDisplay(java.lang.String label,
KernelNodeBo kNode,
java.lang.String language)
Get display text for node. |
Reference |
getReference(java.lang.String reference,
ModuleContext context,
boolean addWarning,
boolean addError)
Get link for given reference. |
Service |
getService()
Get service we work for. |
InternalKernelServices |
getServices()
Get internal kernel services. |
QedeqTraverser |
getTraverser()
Get traverser for QEDEQ module. |
double |
getVisitPercentage()
Get percentage of visit currently done. |
SourceFileExceptionList |
getWarningList()
Get list of warnings that occurred during visit. |
boolean |
hasErrors()
Did any errors occur yet? |
boolean |
hasNoErrors()
Did no errors occur yet? |
protected void |
setBlocked(boolean blocked)
Set if further traverse is blocked. |
void |
setLocationWithinModule(java.lang.String locationWithinModule)
Set location information where are we within the original module. |
void |
traverse(InternalServiceJob process)
Start traverse of QedeqBo. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ControlVisitor(KernelQedeqBo prop)
Service.
prop - Internal QedeqBo.
protected ControlVisitor(Service service,
KernelQedeqBo prop)
service - This service we work for.prop - Internal QedeqBo.| Method Detail |
|---|
public KernelQedeqBo getKernelQedeqBo()
public KernelNodeBo getNodeBo()
null.
public void traverse(InternalServiceJob process)
throws SourceFileExceptionList
ModuleDataException
occurs it is thrown till high level, transformed into a
SourceFileException and added to the error list. All collected exceptions
(via addError(ModuleDataException) and
addError(SourceFileException)) are thrown (if there were any).
getWarningList() afterwards.
process - We work in this service process.
SourceFileExceptionList - All collected error exceptions.public ModuleContext getCurrentContext()
protected void addError(ModuleDataException me)
me - Exception to be added.protected void addError(SourceFileException sf)
sf - Exception to be added.public SourceFileExceptionList getErrorList()
public boolean hasErrors()
public boolean hasNoErrors()
protected void addWarning(ModuleDataException me)
me - Exception to be added.public SourceFileExceptionList getWarningList()
protected void setBlocked(boolean blocked)
blocked - Further traverse blocked?public boolean getBlocked()
public InternalModuleServiceCall getInternalServiceCall()
public Service getService()
public java.lang.String getLocationDescription()
public double getVisitPercentage()
public QedeqNumbers getCurrentNumbers()
public RuleKey getLocalRuleKey(java.lang.String name)
name - Rule name
null.public InternalKernelServices getServices()
public boolean getInterrupted()
public Reference getReference(java.lang.String reference,
ModuleContext context,
boolean addWarning,
boolean addError)
reference - String to parse.context - Here the link is in the source text.addWarning - Should we add a warning if an error occurs?addError - Should we add an error if an error occurs?
null.
public java.lang.String getNodeDisplay(java.lang.String label,
KernelNodeBo kNode,
java.lang.String language)
label - Label for node. Fallback if kNode == null.kNode - Node for which we want a textual representation.language - Language. Might be null.
public void setLocationWithinModule(java.lang.String locationWithinModule)
locationWithinModule - Location within module.public QedeqTraverser getTraverser()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||