@Override public CFRuleRecord clone() { CFRuleRecord rec = new CFRuleRecord(getConditionType(), getComparisonOperation()); super.copyTo(rec); return rec; } }
/** * called by the class that is responsible for writing this sucker. * Subclasses should implement this so that their data is passed back in a * byte array. * * @param out the stream to write to */ @Override public void serialize(LittleEndianOutput out) { int formula1Len=getFormulaSize(getFormula1()); int formula2Len=getFormulaSize(getFormula2()); out.writeByte(getConditionType()); out.writeByte(getComparisonOperation()); out.writeShort(formula1Len); out.writeShort(formula2Len); serializeFormattingBlock(out); getFormula1().serializeTokens(out); getFormula2().serializeTokens(out); }
/** * @return - the comparisionoperatation for the cfrule */ public byte getComparisonOperation() { return cfRuleRecord.getComparisonOperation(); }
/** * @return - the comparisionoperatation for the cfrule */ public byte getComparisonOperation() { return cfRuleRecord.getComparisonOperation(); }
@Override public CFRuleRecord clone() { CFRuleRecord rec = new CFRuleRecord(getConditionType(), getComparisonOperation()); super.copyTo(rec); return rec; } }
public String getFormula2() { byte conditionType = cfRuleRecord.getConditionType(); if (conditionType == CELL_COMPARISON) { byte comparisonOperation = cfRuleRecord.getComparisonOperation(); switch(comparisonOperation) { case ComparisonOperator.BETWEEN: case ComparisonOperator.NOT_BETWEEN: return toFormulaString(cfRuleRecord.getParsedExpression2()); } } return null; }
public String getFormula2() { byte conditionType = cfRuleRecord.getConditionType(); if (conditionType == CELL_COMPARISON) { byte comparisonOperation = cfRuleRecord.getComparisonOperation(); switch(comparisonOperation) { case ComparisonOperator.BETWEEN: case ComparisonOperator.NOT_BETWEEN: return toFormulaString(cfRuleRecord.getParsedExpression2()); } } return null; }
/** * called by the class that is responsible for writing this sucker. * Subclasses should implement this so that their data is passed back in a * byte array. * * @param out the stream to write to */ @Override public void serialize(LittleEndianOutput out) { int formula1Len=getFormulaSize(getFormula1()); int formula2Len=getFormulaSize(getFormula2()); out.writeByte(getConditionType()); out.writeByte(getComparisonOperation()); out.writeShort(formula1Len); out.writeShort(formula2Len); serializeFormattingBlock(out); getFormula1().serializeTokens(out); getFormula2().serializeTokens(out); }