@Test public void testGetDefaultValue() throws OperationException { System.out.println("getDefaultValue"); StringField instance; instance = new StringField(Types.STRING); assertEquals(null, instance.getDefaultValue()); instance = new StringField(Types.STRING, "100"); assertEquals(null, instance.getDefaultValue()); instance = new StringField("something", Types.STRING); assertEquals("something", instance.getDefaultValue()); instance = new StringField(Types.STRING, "100", "something"); assertEquals("something", instance.getDefaultValue()); }
@Override public String getDefaultValue() { return defaultValue; }
StringField implements FieldType<String> { @Override public String getDefaultValue() { return defaultValue; } }
StringField implements FieldType<String> { @Override public String getDefaultValue() { return defaultValue; } StringField(final Types type);  StringField(final String defaultValue, final Types type);  StringField(final Types type, final String length);  StringField(final Types type, final String length, final String defaultValue); }
StringField implements FieldType<String> { @Override public String getDefaultValue() { return defaultValue; } StringField(final Types type);  StringField(final String defaultValue, final Types type);  StringField(final Types type, final String length);  StringField(final Types type, final String length, final String defaultValue); @Override Types getType(); long getLength(); @Override String getDefaultValue(); @Override boolean hasDefaultValue(); @Override String convert(Object objValue); @Override JSONObject toJson(); }
StringField implements FieldType<String> { @Override public String getDefaultValue() { return defaultValue; } StringField(final Types type);  StringField(final String defaultValue, final Types type);  StringField(final Types type, final String length);  StringField(final Types type, final String length, final String defaultValue); @Override Types getType(); long getLength(); @Override String getDefaultValue(); @Override boolean hasDefaultValue(); @Override String convert(Object objValue); @Override JSONObject toJson();  }