@Test public void testGetStringValue() throws Exception { fieldBoolean.set(dcv, true); fieldDate.set(dcv, now); fieldNumeric.set(dcv, 1L); dcv.setStringValue("woot"); assertEquals(DataType.DataTypes.STRING, dcv.getDataType()); assertNull(dcv.getBooleanValue()); assertNull(dcv.getDateValue()); assertNull(dcv.getNumericValue()); assertEquals("woot", dcv.getStringValue()); }
public String getStringValue() { if (!this.getDataType().equals(DataTypes.STRING)) { valueString = null; } return valueString; }
DTCellValue52 { public String getStringValue() { if (!this.getDataType().equals(DataTypes.STRING)) { valueString = null; } return valueString; } }
DTCellValue52 { public String getStringValue() { if (!this.getDataType().equals(DataTypes.STRING)) { valueString = null; } return valueString; } DTCellValue52();  DTCellValue52(final DTCellValue52 sourceCell);  DTCellValue52(final DataTypes type,
                         final boolean emptyValue);  DTCellValue52(final Object value);  DTCellValue52(final BigDecimal value);  DTCellValue52(final BigInteger value);  DTCellValue52(final Byte value);  DTCellValue52(final Double value);  DTCellValue52(final Float value);  DTCellValue52(final Integer value);  DTCellValue52(final Long value);  DTCellValue52(final Short value);  DTCellValue52(final Boolean value);  DTCellValue52(final Date value);  DTCellValue52(final String value); }
DTCellValue52 { public String getStringValue() { if (!this.getDataType().equals(DataTypes.STRING)) { valueString = null; } return valueString; } DTCellValue52();  DTCellValue52(final DTCellValue52 sourceCell);  DTCellValue52(final DataTypes type,
                         final boolean emptyValue);  DTCellValue52(final Object value);  DTCellValue52(final BigDecimal value);  DTCellValue52(final BigInteger value);  DTCellValue52(final Byte value);  DTCellValue52(final Double value);  DTCellValue52(final Float value);  DTCellValue52(final Integer value);  DTCellValue52(final Long value);  DTCellValue52(final Short value);  DTCellValue52(final Boolean value);  DTCellValue52(final Date value);  DTCellValue52(final String value); DataType.DataTypes getDataType(); Boolean getBooleanValue(); Date getDateValue(); Number getNumericValue(); String getStringValue(); boolean isOtherwise(); void setBooleanValue(final Boolean value); void setDateValue(final Date value); void setNumericValue(final Number value); void setNumericValue(final BigDecimal value); void setNumericValue(final BigInteger value); void setNumericValue(final Byte value); void setNumericValue(final Double value); void setNumericValue(final Float value); void setNumericValue(final Integer value); void setNumericValue(final Long value); void setNumericValue(final Short value); void setOtherwise(final boolean isOtherwise); void setStringValue(final String value); void clearValues(); boolean hasValue(); @Override int hashCode(); @Override //A clone of this class is used while editing a column. Overriding this method //allows us to easily compare the clone and the original to check if a change //has been made boolean equals(Object obj); DTCellValue52 cloneDefaultValueCell(); }
DTCellValue52 { public String getStringValue() { if (!this.getDataType().equals(DataTypes.STRING)) { valueString = null; } return valueString; } DTCellValue52();  DTCellValue52(final DTCellValue52 sourceCell);  DTCellValue52(final DataTypes type,
                         final boolean emptyValue);  DTCellValue52(final Object value);  DTCellValue52(final BigDecimal value);  DTCellValue52(final BigInteger value);  DTCellValue52(final Byte value);  DTCellValue52(final Double value);  DTCellValue52(final Float value);  DTCellValue52(final Integer value);  DTCellValue52(final Long value);  DTCellValue52(final Short value);  DTCellValue52(final Boolean value);  DTCellValue52(final Date value);  DTCellValue52(final String value); DataType.DataTypes getDataType(); Boolean getBooleanValue(); Date getDateValue(); Number getNumericValue(); String getStringValue(); boolean isOtherwise(); void setBooleanValue(final Boolean value); void setDateValue(final Date value); void setNumericValue(final Number value); void setNumericValue(final BigDecimal value); void setNumericValue(final BigInteger value); void setNumericValue(final Byte value); void setNumericValue(final Double value); void setNumericValue(final Float value); void setNumericValue(final Integer value); void setNumericValue(final Long value); void setNumericValue(final Short value); void setOtherwise(final boolean isOtherwise); void setStringValue(final String value); void clearValues(); boolean hasValue(); @Override int hashCode(); @Override //A clone of this class is used while editing a column. Overriding this method //allows us to easily compare the clone and the original to check if a change //has been made boolean equals(Object obj); DTCellValue52 cloneDefaultValueCell();  }