public Class type() { return core.type(); }
taskCmdSubTypes.removeAll(Arrays.asList(exclTaskCmds)); for( XmlElement xmlElemAnno : xmlElemsAnno.value() ) { Class xmlElemAnnoType = xmlElemAnno.type(); assertTrue( xmlElemAnnoType.getName() + " does not extend the " + TaskCommand.class.getSimpleName() + " class!", taskCmdSubTypes.contains(xmlElemAnnoType)); Class xmlElemAnnoType = xmlElemAnno.type(); taskCmdSubTypes.remove(xmlElemAnnoType);
public Class type() { return core.type(); }
protected Class<?> _getTypeFromXmlElement(Annotated a) { XmlElement annotation = findAnnotation(XmlElement.class, a, false, false, false); if (annotation != null) { // Further, JAXB has peculiar notion of declaring intermediate (and, for the // most part, useless) type... So basically we betterjust ignore type if there // is adapter annotation (we could check to see if intermediate type is compatible, // but let's not yet bother) if (a.getAnnotation(XmlJavaTypeAdapter.class) != null) { return null; } Class<?> type = annotation.type(); if (type != XmlElement.DEFAULT.class) { return type; } } return null; } }
protected Class<?> _doFindDeserializationType(Annotated a, JavaType baseType) { /* @XmlJavaTypeAdapter will complicate handling of type information; * basically we better just ignore type we might find here altogether in that case */ if (a.hasAnnotation(XmlJavaTypeAdapter.class)) { return null; } // false for class, package, super-class, since annotation can // only be attached to fields and methods XmlElement annotation = findAnnotation(XmlElement.class, a, false, false, false); if (annotation != null) { Class<?> type = annotation.type(); if (type != XmlElement.DEFAULT.class) { return type; } } return null; }
String name = elem.name(); if (MARKER_FOR_DEFAULT.equals(name)) name = null; result.add(new NamedType(elem.type(), name));
@Override public Class<?> call() throws Exception { return xmlElement.type(); } }, this.env, XmlElement.DEFAULT.class);
@Override public Class<?> call() throws Exception { return xmlElement.type(); } }, this.env, XmlElement.DEFAULT.class);
@Override public Class<?> call() throws Exception { return xmlElement.type(); } }, this.env, XmlElement.DEFAULT.class);
@Override public Class<?> call() throws Exception { return xmlElement.type(); } }, this.env, XmlElement.DEFAULT.class);
@Override public Class<?> call() throws Exception { return xmlElement.type(); } }, this.env);
@Override public Class<?> call() throws Exception { return xmlElement.type(); } }, this.env);
@Override public Class<?> call() throws Exception { return element.type(); } }, this.env, XmlElement.DEFAULT.class);
@Override public Class<?> call() throws Exception { return xmlElement.type(); } }, this.env);
@Override public Class<?> call() throws Exception { return element.type(); } }, this.env, XmlElement.DEFAULT.class);
@Override public Class<?> call() throws Exception { return xmlElement.type(); } }, this.env);
public Class type() { return core.type(); }
List<Class> cmdTypes = new ArrayList<Class>(xmlElemsAnno.value().length); for( XmlElement xmlElem : xmlElemsAnno.value() ) { cmdTypes.add(xmlElem.type());
private boolean checkIfParentChildRelationIsPossible(Class srcClass, Class targetClass) { XmlElements targetClassAnnotation = (XmlElements) getFieldAnnotation(targetClass, XmlElements.class); if (targetClassAnnotation == null) { return false; } for (XmlElement xe : targetClassAnnotation.value()) { if (srcClass.isAssignableFrom(xe.type())) { return true; } } return false; } }