@Test public void describeFilePM() { Class cls = FilePM.class; TypeInfo info = this.metadata.getTypeInfo(cls); assertEquals("info.getJavaType()", cls, info.getJavaType()); assertEquals("info.getProperties().size()", 1, info.getProperties().size()); PropertyInfo pdesc = info.getProperties().iterator().next(); assertEquals("pdesc.getName()", "path", pdesc.getName()); TypeInfo typeInfo = pdesc.getTypeInfo(); assertEquals("textCellInfo", this.metadata.getTypeInfo(TextPM.class), typeInfo); }
public TypeInfo getTypeInfo(Class<? extends PresentationModel> modelClass) { TypeInfo result = modelTypes.get(modelClass); if (result == null) { result = createTypeInfo(modelClass); } return result; }
MetadataRegistry { public TypeInfo getTypeInfo(Class<? extends PresentationModel> modelClass) { TypeInfo result = modelTypes.get(modelClass); if (result == null) { result = createTypeInfo(modelClass); } return result; } }
MetadataRegistry { public TypeInfo getTypeInfo(Class<? extends PresentationModel> modelClass) { TypeInfo result = modelTypes.get(modelClass); if (result == null) { result = createTypeInfo(modelClass); } return result; } MetadataRegistry(); }
MetadataRegistry { public TypeInfo getTypeInfo(Class<? extends PresentationModel> modelClass) { TypeInfo result = modelTypes.get(modelClass); if (result == null) { result = createTypeInfo(modelClass); } return result; } MetadataRegistry(); TypeInfo getTypeInfo(Class<? extends PresentationModel> modelClass); PathNode getPathNode(Class<? extends PresentationModel> modelClass); PathNode getPathNode(TypeInfo typeInfo); }
MetadataRegistry { public TypeInfo getTypeInfo(Class<? extends PresentationModel> modelClass) { TypeInfo result = modelTypes.get(modelClass); if (result == null) { result = createTypeInfo(modelClass); } return result; } MetadataRegistry(); TypeInfo getTypeInfo(Class<? extends PresentationModel> modelClass); PathNode getPathNode(Class<? extends PresentationModel> modelClass); PathNode getPathNode(TypeInfo typeInfo);  }