/** * Create an instance of {@link JavaWsdlMappingType } * */ public JavaWsdlMappingType createJavaWsdlMappingType() { return new JavaWsdlMappingType(); }
static public <T> T annotation(JavaWsdlMappingType jwse, Class<T> anntype) { if (jwse == null || jwse.getClassAnnotation() == null) { return null; } return findInstanceOf(anntype, jwse.getClassAnnotation()); }
public void getProperties(final Map<String, Object> prop, final Class<?> cls) { JavaWsdlMappingType r = reader(cls); // no external reader or it requires annotations merging ... if (r == null || MERGE.equals(r.getExistingAnnotations())) { super.getProperties(prop, cls); } }
public ExternalMetadataReader(Collection<File> files, Collection<String> resourcePaths, ClassLoader classLoader, boolean xsdValidation, boolean disableXmlSecurity) { if (files != null) { for (File file : files) { try { String namespace = Util.documentRootNamespace(newSource(file), disableXmlSecurity); JavaWsdlMappingType externalMapping = parseMetadata(xsdValidation, newSource(file), namespace, disableXmlSecurity); readers.put(externalMapping.getJavaTypeName(), externalMapping); } catch (Exception e) { throw new RuntimeModelerException("runtime.modeler.external.metadata.unable.to.read", file.getAbsolutePath()); } } } if (resourcePaths != null) { for (String resourcePath : resourcePaths) { try { String namespace = Util.documentRootNamespace(newSource(resourcePath, classLoader), disableXmlSecurity); JavaWsdlMappingType externalMapping = parseMetadata(xsdValidation, newSource(resourcePath, classLoader), namespace, disableXmlSecurity); readers.put(externalMapping.getJavaTypeName(), externalMapping); } catch (Exception e) { throw new RuntimeModelerException("runtime.modeler.external.metadata.unable.to.read", resourcePath); } } } }
JavaMethod getJavaMethod(Method method, JavaWsdlMappingType r) { JavaWsdlMappingType.JavaMethods javaMethods = r.getJavaMethods(); if (javaMethods == null) { return null;
public void getProperties(final Map<String, Object> prop, final Class<?> cls) { JavaWsdlMappingType r = reader(cls); // no external reader or it requires annotations merging ... if (r == null || MERGE.equals(r.getExistingAnnotations())) { super.getProperties(prop, cls); } }
public ExternalMetadataReader(Collection<File> files, Collection<String> resourcePaths, ClassLoader classLoader, boolean xsdValidation, boolean disableXmlSecurity) { if (files != null) { for (File file : files) { try { String namespace = Util.documentRootNamespace(newSource(file), disableXmlSecurity); JavaWsdlMappingType externalMapping = parseMetadata(xsdValidation, newSource(file), namespace, disableXmlSecurity); readers.put(externalMapping.getJavaTypeName(), externalMapping); } catch (Exception e) { throw new RuntimeModelerException("runtime.modeler.external.metadata.unable.to.read", file.getAbsolutePath()); } } } if (resourcePaths != null) { for (String resourcePath : resourcePaths) { try { String namespace = Util.documentRootNamespace(newSource(resourcePath, classLoader), disableXmlSecurity); JavaWsdlMappingType externalMapping = parseMetadata(xsdValidation, newSource(resourcePath, classLoader), namespace, disableXmlSecurity); readers.put(externalMapping.getJavaTypeName(), externalMapping); } catch (Exception e) { throw new RuntimeModelerException("runtime.modeler.external.metadata.unable.to.read", resourcePath); } } } }
JavaMethod getJavaMethod(Method method, JavaWsdlMappingType r) { JavaWsdlMappingType.JavaMethods javaMethods = r.getJavaMethods(); if (javaMethods == null) { return null;
public void getProperties(final Map<String, Object> prop, final Class<?> cls) { JavaWsdlMappingType r = reader(cls); // no external reader or it requires annotations merging ... if (r == null || MERGE.equals(r.getExistingAnnotations())) { super.getProperties(prop, cls); } }
static public <T> T annotation(JavaWsdlMappingType jwse, Class<T> anntype) { if (jwse == null || jwse.getClassAnnotation() == null) { return null; } return findInstanceOf(anntype, jwse.getClassAnnotation()); }
/** * Create an instance of {@link JavaWsdlMappingType } * */ public JavaWsdlMappingType createJavaWsdlMappingType() { return new JavaWsdlMappingType(); }
public ExternalMetadataReader(Collection<File> files, Collection<String> resourcePaths, ClassLoader classLoader, boolean xsdValidation, boolean disableXmlSecurity) { if (files != null) { for (File file : files) { try { String namespace = Util.documentRootNamespace(newSource(file), disableXmlSecurity); JavaWsdlMappingType externalMapping = parseMetadata(xsdValidation, newSource(file), namespace, disableXmlSecurity); readers.put(externalMapping.getJavaTypeName(), externalMapping); } catch (Exception e) { throw new RuntimeModelerException("runtime.modeler.external.metadata.unable.to.read", file.getAbsolutePath()); } } } if (resourcePaths != null) { for (String resourcePath : resourcePaths) { try { String namespace = Util.documentRootNamespace(newSource(resourcePath, classLoader), disableXmlSecurity); JavaWsdlMappingType externalMapping = parseMetadata(xsdValidation, newSource(resourcePath, classLoader), namespace, disableXmlSecurity); readers.put(externalMapping.getJavaTypeName(), externalMapping); } catch (Exception e) { throw new RuntimeModelerException("runtime.modeler.external.metadata.unable.to.read", resourcePath); } } } }
JavaMethod getJavaMethod(Method method, JavaWsdlMappingType r) { JavaWsdlMappingType.JavaMethods javaMethods = r.getJavaMethods(); if (javaMethods == null) { return null;
public void getProperties(final Map<String, Object> prop, final Method m) { JavaWsdlMappingType r = reader(m.getDeclaringClass()); // no external reader or it requires annotations merging ... if (r == null || MERGE.equals(r.getExistingAnnotations())) { super.getProperties(prop, m); } if (r != null) { JavaMethod jm = getJavaMethod(m, r); Element[] e = Util.annotation(jm); prop.put("eclipselink-oxm-xml.xml-element", findXmlElement(e)); } }
static public <T> T annotation(JavaWsdlMappingType jwse, Class<T> anntype) { if (jwse == null || jwse.getClassAnnotation() == null) { return null; } return findInstanceOf(anntype, jwse.getClassAnnotation()); }
/** * Create an instance of {@link JavaWsdlMappingType } * */ public JavaWsdlMappingType createJavaWsdlMappingType() { return new JavaWsdlMappingType(); }
public void getProperties(final Map<String, Object> prop, final Method m) { JavaWsdlMappingType r = reader(m.getDeclaringClass()); // no external reader or it requires annotations merging ... if (r == null || MERGE.equals(r.getExistingAnnotations())) { super.getProperties(prop, m); } if (r != null) { JavaMethod jm = getJavaMethod(m, r); Element[] e = Util.annotation(jm); prop.put("eclipselink-oxm-xml.xml-element", findXmlElement(e)); } }
Annotation[] external() { return getAnnotations(reader.getClassAnnotation()); } };
public void getProperties(final Map<String, Object> prop, final Method m) { JavaWsdlMappingType r = reader(m.getDeclaringClass()); // no external reader or it requires annotations merging ... if (r == null || MERGE.equals(r.getExistingAnnotations())) { super.getProperties(prop, m); } if (r != null) { JavaMethod jm = getJavaMethod(m, r); Element[] e = Util.annotation(jm); prop.put("eclipselink-oxm-xml.xml-element", findXmlElement(e)); } }
Annotation[] external() { return getAnnotations(reader.getClassAnnotation()); } };