@Test(timeout = 1000) public void testAnnotationLookup() throws Exception { AnnotationMapper mapper = new AnnotationMapper(); assertEquals("Returned annotation must be 'Attribute'.", "Attribute", mapper.getAttributeAnnotations(null)[0]); }
public String[] getAttributeAnnotations(final String attributeName) { return this.handleAnnotationData(AnnotationMapper.FRAMEWORKS.get(this.usedFramework).createAttributeAnnotations(attributeName)); }
AnnotationMapper { public String[] getAttributeAnnotations(final String attributeName) { return this.handleAnnotationData(AnnotationMapper.FRAMEWORKS.get(this.usedFramework).createAttributeAnnotations(attributeName)); } }
AnnotationMapper { public String[] getAttributeAnnotations(final String attributeName) { return this.handleAnnotationData(AnnotationMapper.FRAMEWORKS.get(this.usedFramework).createAttributeAnnotations(attributeName)); } AnnotationMapper();  AnnotationMapper(final String usedFramework); }
AnnotationMapper { public String[] getAttributeAnnotations(final String attributeName) { return this.handleAnnotationData(AnnotationMapper.FRAMEWORKS.get(this.usedFramework).createAttributeAnnotations(attributeName)); } AnnotationMapper();  AnnotationMapper(final String usedFramework); String getUsedFramework(); ArrayList<String> getUsedImports(); String[] getRootAnnotations(final String rootName); String[] getElementAnnotations(final String elementName); String[] getAttributeAnnotations(final String attributeName); String[] getEnumAnnotations(final String enumName); String[] getArrayAnnotations(final String arrayName, final String arrayClassName, final String itemName, final String itemClassName); String[] getListAnnotations(final String listName, final String itemName, final String itemClassName); }
AnnotationMapper { public String[] getAttributeAnnotations(final String attributeName) { return this.handleAnnotationData(AnnotationMapper.FRAMEWORKS.get(this.usedFramework).createAttributeAnnotations(attributeName)); } AnnotationMapper();  AnnotationMapper(final String usedFramework); String getUsedFramework(); ArrayList<String> getUsedImports(); String[] getRootAnnotations(final String rootName); String[] getElementAnnotations(final String elementName); String[] getAttributeAnnotations(final String attributeName); String[] getEnumAnnotations(final String enumName); String[] getArrayAnnotations(final String arrayName, final String arrayClassName, final String itemName, final String itemClassName); String[] getListAnnotations(final String listName, final String itemName, final String itemClassName);  }