public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[CFRULE]\n");buffer.append("    .condition_type   =").append(getConditionType()).append("\n");buffer.append("    OPTION FLAGS=0x").append(Integer.toHexString(getOptions())).append("\n");if (containsFontFormattingBlock()) {buffer.append(_fontFormatting).append("\n");}if (containsBorderFormattingBlock()) {buffer.append(_borderFormatting).append("\n");}if (containsPatternFormattingBlock()) {buffer.append(_patternFormatting).append("\n");}buffer.append("    Formula 1 =").append(Arrays.toString(getFormula1().getTokens())).append("\n");buffer.append("    Formula 2 =").append(Arrays.toString(getFormula2().getTokens())).append("\n");buffer.append("[/CFRULE]\n");return buffer.toString();}

public String toString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( "[CFRULE]\n" ) ; buffer . append ( "    .condition_type   =" ) . append ( getConditionType ( ) ) . append ( "\n" ) ; buffer . append ( "    OPTION FLAGS=0x" ) . append ( Integer . toHexString ( getOptions ( ) ) ) . append ( "\n" ) ; if ( containsFontFormattingBlock ( ) ) { buffer . append ( _fontFormatting ) . append ( "\n" ) ; } if ( containsBorderFormattingBlock ( ) ) { buffer . append ( _borderFormatting ) . append ( "\n" ) ; } if ( containsPatternFormattingBlock ( ) ) { buffer . append ( _patternFormatting ) . append ( "\n" ) ; } buffer . append ( "    Formula 1 =" ) . append ( Arrays . toString ( getFormula1 ( ) . getTokens ( ) ) ) . append ( "\n" ) ; buffer . append ( "    Formula 2 =" ) . append ( Arrays . toString ( getFormula2 ( ) . getTokens ( ) ) ) . append ( "\n" ) ; buffer . append ( "[/CFRULE]\n" ) ; return buffer . toString ( ) ; }
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[CFRULE]\n");buffer.Append("    .condition_type   =").Append(field_1_condition_type).Append("\n");buffer.Append("    OPTION FLAGS=0x").Append(string.Format("{0:X}",Options)).Append("\n");if (ContainsFontFormattingBlock){buffer.Append(_fontFormatting.ToString()).Append("\n");}if (ContainsBorderFormattingBlock){buffer.Append(_borderFormatting.ToString()).Append("\n");}if (ContainsPatternFormattingBlock){buffer.Append(_patternFormatting.ToString()).Append("\n");}buffer.Append("    Formula 1 =").Append(Arrays.ToString(field_17_formula1.Tokens)).Append("\n");buffer.Append("    Formula 2 =").Append(Arrays.ToString(field_18_formula2.Tokens)).Append("\n");buffer.Append("[/CFRULE]\n");return buffer.ToString();}
