public Class type() { return core.type(); }
public Class type() { return core.type(); }
result = new ArrayList<NamedType>(); for (XmlElementRef elemRef : elemRefs.value()) { Class<?> refType = elemRef.type();
@Override public Class<?> call() throws Exception { return xmlElementRef.type(); } }, this.env, XmlElementRef.DEFAULT.class);
@Override public Class<?> call() throws Exception { return elementRef.type(); } }, this.env);
@Override public Class<?> call() throws Exception { return xmlElementRef.type(); } }, this.env, XmlElementRef.DEFAULT.class);
@Override public Class<?> call() throws Exception { return elementRef.type(); } }, this.env);
@Override public Class<?> call() throws Exception { return xmlElementRef.type(); } }, this.env, XmlElementRef.DEFAULT.class);
@Override public Class<?> call() throws Exception { return elementRef.type(); } }, this.env);
@Override public Class<?> call() throws Exception { return xmlElementRef.type(); } }, this.env, XmlElementRef.DEFAULT.class);
@Override public Class<?> call() throws Exception { return elementRef.type(); } }, this.env);
public Class type() { return core.type(); }
public Class type() { return core.type(); }
private static Class<?> getOverridenTypeOrType(Field attributeField) { Class<?> attributeType = attributeField.getType(); if (attributeField.isAnnotationPresent(XmlElement.class)) { attributeType = attributeField.getAnnotation(XmlElement.class) .type(); } if (attributeField.isAnnotationPresent(XmlElementRef.class)) { attributeType = attributeField.getAnnotation(XmlElementRef.class) .type(); } if (JAXB_ATTRIBUTE_TYPE_DEFAULT.equals(attributeType)) { attributeType = attributeField.getType(); } return attributeType; }
static QName guessQNameFromJaxbElementCollectionField(AbstractJaxbModelObject child, Field field) { if (field.isAnnotationPresent(XmlElementRef.class)) { XmlElementRef ref = field.getAnnotation(XmlElementRef.class); if (ref.type().equals(JAXBElement.class)) { Type fieldType = field.getGenericType(); Type[] listTypes = ((ParameterizedType) fieldType).getActualTypeArguments(); assert listTypes.length > 0; Type jaxbeltType = listTypes[0]; if (jaxbeltType instanceof ParameterizedType && ((ParameterizedType) jaxbeltType).getRawType().equals(JAXBElement.class)) {// JAXBElement Type[] types = ((ParameterizedType) jaxbeltType).getActualTypeArguments(); assert types.length > 0; if (types[0].equals(Object.class)) { return new QName(ref.namespace(), ref.name()); } else { return null; } } } } return null; }
/** * The type of an element accessor can be specified by an annotation. * * @return The accessor type. */ @Override public TypeMirror getAccessorType() { try { if ((xmlElementRef != null) && (xmlElementRef.type() != XmlElementRef.DEFAULT.class)) { Class clazz = xmlElementRef.type(); return getAccessorType(clazz); } } catch (MirroredTypeException e) { // The mirrored type exception implies that the specified type is within the source base. return TypeMirrorDecorator.decorate(e.getTypeMirror()); } return super.getAccessorType(); }
QName refQname = new QName(ref.namespace(), ref.name()); if(refQname.equals(child.getXmlObject().getXmlObjectQName())){ if(ref.type().equals(JAXBElement.class)) { res = true; break;
XmlElementRefs.class).value(); for (XmlElementRef xmlElementRef : xmlElementRefs) { if (isJaxbComplexTypeClass(xmlElementRef.type())) return true;
eltRef.setName(nextRef.name()); eltRef.setNamespace(nextRef.namespace()); eltRef.setType(nextRef.type().getName()); property.setIsRequired(true); try{