@Test public void testHasDefined() { assertFalse(modelObject().hasDefined("foo")); ModelObject model = modelObject(); model.get("foo"); assertFalse(model.hasDefined("foo")); model.set("foo", "bar"); assertTrue(model.hasDefined("foo")); }
@Override public boolean hasDefined(String name) { return has(name) && get(name).isDefined(); }
DmrModelObject extends DmrModelValue implements ModelObject { @Override public boolean hasDefined(String name) { return has(name) && get(name).isDefined(); } }
DmrModelObject extends DmrModelValue implements ModelObject { @Override public boolean hasDefined(String name) { return has(name) && get(name).isDefined(); } DmrModelObject();   DmrModelObject(final ModelNode value); }
DmrModelObject extends DmrModelValue implements ModelObject { @Override public boolean hasDefined(String name) { return has(name) && get(name).isDefined(); } DmrModelObject();   DmrModelObject(final ModelNode value); @Override Model get(String name); @Override Model get(String... names); @Override T get(String name, Class<T> valueType); ModelObject set(String name, String value); ModelObject set(String name, int value); @Override ModelObject set(String name, long value); @Override ModelObject set(String name, double value); @Override ModelObject set(String name, BigInteger value); @Override ModelObject set(String name, BigDecimal value); @Override ModelObject set(String name, boolean value); @Override ModelObject set(String name, PathAddress value); @Override boolean has(String name); @Override boolean hasDefined(String name); @Override ModelValue remove(String name); @Override T remove(String name, Class<T> valueType); @Override Set<String> getNames(); }
DmrModelObject extends DmrModelValue implements ModelObject { @Override public boolean hasDefined(String name) { return has(name) && get(name).isDefined(); } DmrModelObject();   DmrModelObject(final ModelNode value); @Override Model get(String name); @Override Model get(String... names); @Override T get(String name, Class<T> valueType); ModelObject set(String name, String value); ModelObject set(String name, int value); @Override ModelObject set(String name, long value); @Override ModelObject set(String name, double value); @Override ModelObject set(String name, BigInteger value); @Override ModelObject set(String name, BigDecimal value); @Override ModelObject set(String name, boolean value); @Override ModelObject set(String name, PathAddress value); @Override boolean has(String name); @Override boolean hasDefined(String name); @Override ModelValue remove(String name); @Override T remove(String name, Class<T> valueType); @Override Set<String> getNames();  }