return new AbstractAnnotationMetaData();
}
public Object endElement(Object o, QName qName, ElementBinding element)
{
AbstractAnnotationMetaData annotation = (AbstractAnnotationMetaData) o;
if (annotation.getAnnotation() == null || annotation.getAnnotation().length() == 0)
{
throw new IllegalArgumentException("Empty <annotation/> content");
}
if (!annotation.getAnnotation().startsWith("@"))
{
throw new IllegalArgumentException("<annotation/> content must be a fully qualified annotation type name prefixed with '@'");
}
return annotation;