test_class.file: core/src/test/java/org/gatein/management/core/api/model/DmrModelTest.java
test_class.identifier: DmrModelTest
test_case.body: @Test
     public void testNumber()
     {
        assertTrue(newModel().set(3).isDefined());
        assertEquals(ModelValue.ModelValueType.NUMBER, newModel().set(3).getValueType());
        assertEquals(ModelNumber.ModelNumberType.INT, newModel().set(3).getNumberType());
        assertEquals(3, newModel().set(3).getInt());
  
        assertTrue(newModel().set(3L).isDefined());
        assertEquals(ModelValue.ModelValueType.NUMBER, newModel().set(3L).getValueType());
        assertEquals(ModelNumber.ModelNumberType.LONG, newModel().set(3L).getNumberType());
        assertEquals(3L, newModel().set(3L).getInt());
  
        assertTrue(newModel().set(Math.PI).isDefined());
        assertEquals(ModelValue.ModelValueType.NUMBER, newModel().set(Math.PI).getValueType());
        assertEquals(ModelNumber.ModelNumberType.DOUBLE, newModel().set(Math.PI).getNumberType());
        assertEquals(Math.PI, newModel().set(Math.PI).getDouble(), 0);
  
        BigInteger bi = new BigInteger("3");
        assertTrue(newModel().set(bi).isDefined());
        assertEquals(ModelValue.ModelValueType.NUMBER, newModel().set(bi).getValueType());
        assertEquals(ModelNumber.ModelNumberType.BIG_INTEGER, newModel().set(bi).getNumberType());
        assertEquals(BigInteger.valueOf(3), newModel().set(bi).getBigInteger());
  
        BigDecimal bd = new BigDecimal(String.valueOf(Math.PI));
        assertTrue(newModel().set(bd).isDefined());
        assertEquals(ModelValue.ModelValueType.NUMBER, newModel().set(bd).getValueType());
        assertEquals(ModelNumber.ModelNumberType.BIG_DECIMAL, newModel().set(bd).getNumberType());
        assertEquals(BigDecimal.valueOf(Math.PI), newModel().set(bd).getBigDecimal());
     }
test_case.class_method_signature: DmrModelTest.testNumber()
test_case.full_signature: @Test public void testNumber()
test_case.identifier: testNumber
test_case.invocations: assertTrue isDefined set newModel assertEquals getValueType set newModel assertEquals getNumberType set newModel assertEquals getInt set newModel assertTrue isDefined set newModel assertEquals getValueType set newModel assertEquals getNumberType set newModel assertEquals getInt set newModel assertTrue isDefined set newModel assertEquals getValueType set newModel assertEquals getNumberType set newModel assertEquals getDouble set newModel assertTrue isDefined set newModel assertEquals getValueType set newModel assertEquals getNumberType set newModel assertEquals valueOf getBigInteger set newModel valueOf assertTrue isDefined set newModel assertEquals getValueType set newModel assertEquals getNumberType set newModel assertEquals valueOf getBigDecimal set newModel
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNumber()
focal_class.file: core/src/main/java/org/gatein/management/core/api/model/DmrModel.java
focal_class.identifier: DmrModel
focal_class.interfaces: implements Model
focal_class.class_method_signature: DmrModel.DmrModel(ModelNode value)
focal_class.full_signature:   DmrModel(ModelNode value)
focal_class.identifier: DmrModel
focal_class.parameters: (ModelNode value)
focal_class.signature:  DmrModel(ModelNode value)
focal_class.class_method_signature: DmrModel.set(String value)
focal_class.full_signature: @Override public ModelString set(String value)
focal_class.identifier: set
focal_class.modifiers: @Override public
focal_class.parameters: (String value)
focal_class.return: ModelString
focal_class.signature: ModelString set(String value)
focal_class.class_method_signature: DmrModel.set(int value)
focal_class.full_signature: @Override public ModelNumber set(int value)
focal_class.identifier: set
focal_class.modifiers: @Override public
focal_class.parameters: (int value)
focal_class.return: ModelNumber
focal_class.signature: ModelNumber set(int value)
focal_class.class_method_signature: DmrModel.set(long value)
focal_class.full_signature: @Override public ModelNumber set(long value)
focal_class.identifier: set
focal_class.modifiers: @Override public
focal_class.parameters: (long value)
focal_class.return: ModelNumber
focal_class.signature: ModelNumber set(long value)
focal_class.class_method_signature: DmrModel.set(double value)
focal_class.full_signature: @Override public ModelNumber set(double value)
focal_class.identifier: set
focal_class.modifiers: @Override public
focal_class.parameters: (double value)
focal_class.return: ModelNumber
focal_class.signature: ModelNumber set(double value)
focal_class.class_method_signature: DmrModel.set(BigInteger value)
focal_class.full_signature: @Override public ModelNumber set(BigInteger value)
focal_class.identifier: set
focal_class.modifiers: @Override public
focal_class.parameters: (BigInteger value)
focal_class.return: ModelNumber
focal_class.signature: ModelNumber set(BigInteger value)
focal_class.class_method_signature: DmrModel.set(BigDecimal value)
focal_class.full_signature: @Override public ModelNumber set(BigDecimal value)
focal_class.identifier: set
focal_class.modifiers: @Override public
focal_class.parameters: (BigDecimal value)
focal_class.return: ModelNumber
focal_class.signature: ModelNumber set(BigDecimal value)
focal_class.class_method_signature: DmrModel.set(boolean value)
focal_class.full_signature: @Override public ModelBoolean set(boolean value)
focal_class.identifier: set
focal_class.modifiers: @Override public
focal_class.parameters: (boolean value)
focal_class.return: ModelBoolean
focal_class.signature: ModelBoolean set(boolean value)
focal_class.class_method_signature: DmrModel.setEmptyObject()
focal_class.full_signature: @Override public ModelObject setEmptyObject()
focal_class.identifier: setEmptyObject
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ModelObject
focal_class.signature: ModelObject setEmptyObject()
focal_class.class_method_signature: DmrModel.setEmptyList()
focal_class.full_signature: @Override public ModelList setEmptyList()
focal_class.identifier: setEmptyList
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ModelList
focal_class.signature: ModelList setEmptyList()
focal_class.class_method_signature: DmrModel.set(PathAddress value)
focal_class.full_signature: @Override public ModelReference set(PathAddress value)
focal_class.identifier: set
focal_class.modifiers: @Override public
focal_class.parameters: (PathAddress value)
focal_class.return: ModelReference
focal_class.signature: ModelReference set(PathAddress value)
focal_class.superclass: extends DmrModelValue
focal_method.body: @Override
     public ModelString set(String value)
     {
        if (value == null) return asValue(ModelString.class);
  
        return (ModelString) asValue(this.value.set(value));
     }
focal_method.class_method_signature: DmrModel.set(String value)
focal_method.full_signature: @Override public ModelString set(String value)
focal_method.identifier: set
focal_method.invocations: asValue asValue set
focal_method.modifiers: @Override public
focal_method.parameters: (String value)
focal_method.return: ModelString
focal_method.signature: ModelString set(String value)