|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.domain.line.AbstractLine
org.problets.domain.line.AbstractExplanationLine
org.problets.domain.model.expression.step.AbstractExpressionStep
public class AbstractExpressionStep
Serves as the base class for ExpressionStep and ExpressionView Step
Field Summary |
---|
Fields inherited from class org.problets.domain.line.AbstractLine |
---|
UNASSIGNED_LINE |
Constructor Summary | |
---|---|
AbstractExpressionStep()
Default constructor being defined as a step towards unhooking ExpressionViewStep from any data members defined in AbstractExpressionStep class. |
|
AbstractExpressionStep(int inOrder,
java.lang.String inResult)
Constructor for AbstractExpressionStep |
Method Summary | |
---|---|
int |
getOrder()
|
java.lang.String |
getResult()
|
void |
print()
Prints all the fields of the class |
static java.lang.String |
replaceTagDelimiters(java.lang.String inExpression)
Replaces < and << in expression so that TextFormatter does not read them as tag delimiter |
void |
setOrder(int inOrder)
Method returns true of this step is the same as the parameter public boolean equals( AbstractExpressionStep parameter ) { boolean returnValue = true; returnValue = returnValue && ( order == parameter.order ); if( !returnValue ) return returnValue; returnValue = returnValue && ( result.equalsIgnoreCase( parameter.result ) ); return returnValue; } |
void |
setResult(java.lang.String inResult)
|
java.lang.String |
toString()
Returns only that which is entered into the log |
Methods inherited from class org.problets.domain.line.AbstractExplanationLine |
---|
getEvent, getExplainer, getFeedbackAmount, setFeedbackAmount |
Methods inherited from class org.problets.domain.line.AbstractLine |
---|
clone, getLineNumber, setLineNumber |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractExpressionStep(int inOrder, java.lang.String inResult)
public AbstractExpressionStep()
Method Detail |
---|
public int getOrder()
public java.lang.String getResult()
public void setOrder(int inOrder)
public void setResult(java.lang.String inResult)
public java.lang.String toString()
AbstractExplanationLine
toString
in class AbstractExplanationLine
public static java.lang.String replaceTagDelimiters(java.lang.String inExpression)
public void print()
AbstractExplanationLine
print
in class AbstractExplanationLine
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |