@Test public void testString() { assertTrue(newModel().set("foo").isDefined()); assertEquals(ModelValue.ModelValueType.STRING, newModel().set("foo").getValueType()); assertEquals("foo", newModel().set("foo").getValue()); }
@Override public ModelString set(String value) { if (value == null) return asValue(ModelString.class); return (ModelString) asValue(this.value.set(value)); }
DmrModel extends DmrModelValue implements Model { @Override public ModelString set(String value) { if (value == null) return asValue(ModelString.class); return (ModelString) asValue(this.value.set(value)); } }
DmrModel extends DmrModelValue implements Model { @Override public ModelString set(String value) { if (value == null) return asValue(ModelString.class); return (ModelString) asValue(this.value.set(value)); } DmrModel(ModelNode value); }
DmrModel extends DmrModelValue implements Model { @Override public ModelString set(String value) { if (value == null) return asValue(ModelString.class); return (ModelString) asValue(this.value.set(value)); } DmrModel(ModelNode value); @Override ModelString set(String value); @Override ModelNumber set(int value); @Override ModelNumber set(long value); @Override ModelNumber set(double value); @Override ModelNumber set(BigInteger value); @Override ModelNumber set(BigDecimal value); @Override ModelBoolean set(boolean value); @Override ModelObject setEmptyObject(); @Override ModelList setEmptyList(); @Override ModelReference set(PathAddress value); }
DmrModel extends DmrModelValue implements Model { @Override public ModelString set(String value) { if (value == null) return asValue(ModelString.class); return (ModelString) asValue(this.value.set(value)); } DmrModel(ModelNode value); @Override ModelString set(String value); @Override ModelNumber set(int value); @Override ModelNumber set(long value); @Override ModelNumber set(double value); @Override ModelNumber set(BigInteger value); @Override ModelNumber set(BigDecimal value); @Override ModelBoolean set(boolean value); @Override ModelObject setEmptyObject(); @Override ModelList setEmptyList(); @Override ModelReference set(PathAddress value);  }