Code example for AnnotatedElement

Methods: getAnnotation

0
		protected boolean allowAnyChild(AnnotatedElement el) {
			if (el == null) {
				return false; 
			} 
 
			XmlElement ann = (XmlElement) el.getAnnotation(XmlElement.class);
			if (ann != null) {
				return ann.anyChild();
			} 
 
			return false; 
		} 
 
		/** 
		 * Get hint for matching class to xml node. If annotated with XmlElement, 
		 * the `name` argument is used, otherwise the simple name of class is used. 
		 * 
		 * @param cls 
		 * @return 
		 */ 
		protected String getClassHint(Class cls) {