Class InfoCollector
java.lang.Object
edu.suffolk.litlab.efspserver.services.InfoCollector
- Direct Known Subclasses:
AllWrongCollector
,FailFastCollector
,NeverSubmitCollector
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Optional
<FilingError> protected List
<InterviewVariable> protected List
<InterviewVariable> protected List
<InterviewVariable> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
error
(FilingError err) abstract boolean
finished()
Says if the Info collector is finished with the current unit of information and should break control flow and return.getWrong()
boolean
hasError()
boolean
void
Should never throw exceptions, that's a silly java thing.void
pushAttributeStack
(String variableName) requestVar
(String localName, String description, String datatype) Creates an InterviewVariable with the correct stack information in the variable name.
-
Field Details
-
optionalVars
-
requiredVars
-
wrongVars
-
err
-
variableAttributes
-
-
Constructor Details
-
InfoCollector
public InfoCollector()
-
-
Method Details
-
error
- Throws:
FilingError
-
hasError
public boolean hasError() -
finished
public abstract boolean finished()Says if the Info collector is finished with the current unit of information and should break control flow and return. -
okToSubmit
public boolean okToSubmit() -
addRequired
- Throws:
FilingError
-
addOptional
-
addWrong
- Throws:
FilingError
-
pushAttributeStack
-
popAttributeStack
public void popAttributeStack()Should never throw exceptions, that's a silly java thing. -
getRequired
-
getOptional
-
getWrong
-
requestVar
public InterviewVariable requestVar(String localName, String desc, String datatype, List<String> choices) Creates an InterviewVariable with the correct stack information in the variable name.- Parameters:
localName
-desc
-datatype
-choices
-- Returns:
-
requestVar
-
jsonSummary
-