XSModel model = fSchemaLoader
.loadURI(getResourceURL("XSWildcardTest01.xsd"));
XSElementDeclaration elem = model.getElementDeclaration("test",
"XSWildcardTest");
XSWildcard attrWC = ((XSComplexTypeDefinition) elem.getTypeDefinition())
.getAttributeWildcard();
XSAnnotation annotation = attrWC.getAnnotation();
assertNull("TEST1_ATTRWC_NO_ANNOTATION", annotation);
XSObjectList annotations = attrWC.getAnnotations();
assertEquals("TEST1_ATTRWC_NO_ANNOTATIONS", 0, annotations.getLength());
fConfig
.setParameter(
"http://apache.org/xml/features/generate-synthetic-annotations",
Boolean.TRUE);
model = fSchemaLoader
.loadURI(getResourceURL("XSWildcardTest01.xsd"));
elem = model.getElementDeclaration("test", "XSWildcardTest");
attrWC = ((XSComplexTypeDefinition) elem.getTypeDefinition())
.getAttributeWildcard();
annotation = attrWC.getAnnotation();
assertNotNull("TEST1_ATTRWC_SYNTH_ANNOTATION", annotation);
annotations = attrWC.getAnnotations();
assertEquals("TEST1_ATTRWC_SYNTHO_ANNOTATIONS", 1, annotations
.getLength());
}