Each child of a wrapper style element corresponds with an element, and this method returns that name. @return always non-null valid {@link QName}.
The incomplete element's name.
5152535455565758
String elementName = "some element"; IncompleteAnnotationException e = new IncompleteAnnotationException( clazz, elementName); assertNotNull("can not instanciate IncompleteAnnotationException", e); assertSame("wrong annotation type", clazz, e.annotationType()); assertSame("wrong element name", elementName, e.elementName()); } }
String elementName = "some element"; IncompleteAnnotationException e = new IncompleteAnnotationException( clazz, elementName); assertNotNull("can not instantiate IncompleteAnnotationException", e); assertSame("wrong annotation type", clazz, e.annotationType()); assertSame("wrong element name", elementName, e.elementName()); } }