test_class.file: core/src/test/java/org/gatein/management/core/api/model/DmrModelReferenceTest.java
test_class.identifier: DmrModelReferenceTest
test_case.body: @Test
     public void testFromJson() throws Exception
     {
        String json =
           "{\"page\" : {\n" +
           "    \"name\" : \"home\",\n" +
           "    \"_ref\" : \"/pages/home\"\n" +
           "}}";
  
        ModelObject model = DmrModelValue.readFromJsonStream(new ByteArrayInputStream(json.getBytes()), ModelObject.class);
        ModelReference pageRef = model.get("page", ModelReference.class);
        assertNotNull(pageRef);
        assertEquals(pageRef.get("name", ModelString.class).getValue(), "home");
        assertEquals(PathAddress.pathAddress("pages", "home"), pageRef.getValue());
     }
test_case.class_method_signature: DmrModelReferenceTest.testFromJson()
test_case.full_signature: @Test public void testFromJson()
test_case.identifier: testFromJson
test_case.invocations: readFromJsonStream getBytes get assertNotNull assertEquals getValue get assertEquals pathAddress getValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFromJson()
focal_class.file: core/src/main/java/org/gatein/management/core/api/model/DmrModelReference.java
focal_class.identifier: DmrModelReference
focal_class.interfaces: implements ModelReference
focal_class.class_method_signature: DmrModelReference.DmrModelReference(ModelNode value)
focal_class.full_signature:   DmrModelReference(ModelNode value)
focal_class.identifier: DmrModelReference
focal_class.parameters: (ModelNode value)
focal_class.signature:  DmrModelReference(ModelNode value)
focal_class.class_method_signature: DmrModelReference.getValue()
focal_class.full_signature: @Override public PathAddress getValue()
focal_class.identifier: getValue
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: PathAddress
focal_class.signature: PathAddress getValue()
focal_class.class_method_signature: DmrModelReference.set(PathAddress address)
focal_class.full_signature: @Override public ModelReference set(PathAddress address)
focal_class.identifier: set
focal_class.modifiers: @Override public
focal_class.parameters: (PathAddress address)
focal_class.return: ModelReference
focal_class.signature: ModelReference set(PathAddress address)
focal_class.class_method_signature: DmrModelReference.isReference(ModelNode value)
focal_class.full_signature: static boolean isReference(ModelNode value)
focal_class.identifier: isReference
focal_class.modifiers: static
focal_class.parameters: (ModelNode value)
focal_class.return: boolean
focal_class.signature: boolean isReference(ModelNode value)
focal_class.superclass: extends DmrModelObject
focal_method.body: @Override
     public PathAddress getValue()
     {
        if (value.hasDefined("_ref"))
        {
           return PathAddress.pathAddress(value.get("_ref").asString());
        }
        else
        {
           return null;
        }
     }
focal_method.class_method_signature: DmrModelReference.getValue()
focal_method.full_signature: @Override public PathAddress getValue()
focal_method.identifier: getValue
focal_method.invocations: hasDefined pathAddress asString get
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: PathAddress
focal_method.signature: PathAddress getValue()