public Class type() { return core.type(); }
public Class type() { return core.type(); }
@Override public Class<?> call() throws Exception { return specifiedType.type(); } }, context.getContext().getProcessingEnvironment(), XmlSchemaType.DEFAULT.class);
@Override public Class<?> call() throws Exception { return specifiedType.type(); } }, context.getContext().getProcessingEnvironment(), XmlSchemaType.DEFAULT.class);
public Class type() { return core.type(); }
public Class type() { return core.type(); }
public void processSchemaType(XmlSchemaType type) { JavaClass jClass = helper.getJavaClass(type.type()); if (jClass == null) { return; } processSchemaType(type.name(), type.namespace(), jClass.getQualifiedName()); }
public ValidationResult validatePackage(Schema schema) { ValidationResult result = new ValidationResult(); XmlSchemaType schemaType = schema.getAnnotation(XmlSchemaType.class); if (schemaType != null) { try { if (schemaType.type() == XmlSchemaType.DEFAULT.class) { result.addError(schema, "A type must be specified at the package-level for @XmlSchemaType."); } } catch (MirroredTypeException e) { //fall through. Implies the type was set. } } XmlSchemaTypes schemaTypes = schema.getAnnotation(XmlSchemaTypes.class); if (schemaTypes != null) { for (XmlSchemaType xmlSchemaType : schemaTypes.value()) { try { if (xmlSchemaType.type() == XmlSchemaType.DEFAULT.class) { result.addError(schema, "A type must be specified at the package-level for all types of @XmlSchemaTypes."); } } catch (MirroredTypeException e) { //fall through. Implies the type was set. } } } return result; }
public void processSchemaType(XmlSchemaType type) { JavaClass jClass = helper.getJavaClass(type.type()); if (jClass == null) { return; } processSchemaType(type.name(), type.namespace(), jClass.getQualifiedName()); }
public ValidationResult validatePackage(Schema schema) { ValidationResult result = new ValidationResult(); XmlSchemaType schemaType = schema.getAnnotation(XmlSchemaType.class); if (schemaType != null) { try { if (schemaType.type() == XmlSchemaType.DEFAULT.class) { result.addError(schema.getPosition(), "A type must be specified at the package-level for @XmlSchemaType."); } } catch (MirroredTypeException e) { //fall through. Implies the type was set. } } XmlSchemaTypes schemaTypes = schema.getAnnotation(XmlSchemaTypes.class); if (schemaTypes != null) { for (XmlSchemaType xmlSchemaType : schemaTypes.value()) { try { if (xmlSchemaType.type() == XmlSchemaType.DEFAULT.class) { result.addError(schema.getPosition(), "A type must be specified at the package-level for all types of @XmlSchemaTypes."); } } catch (MirroredTypeException e) { //fall through. Implies the type was set. } } } return result; }
String typeFqn; try { Class specifiedClass = specifiedType.type(); if (specifiedClass == XmlSchemaType.DEFAULT.class) { throw new ValidationException(pckg.getPosition(), "A type must be specified in " + XmlSchemaType.class.getName() + " at the package-level.");
String typeFqn; try { Class specifiedClass = specifiedType.type(); if (specifiedClass == XmlSchemaType.DEFAULT.class) { throw new ValidationException(pckg.getPosition(), pckg.getQualifiedName() + ": a type must be specified in " + XmlSchemaType.class.getName() + " at the package-level.");