com.sun.tools.internal.ws.wsdl.parser.MetadataFinder Java Examples
The following examples show how to use
com.sun.tools.internal.ws.wsdl.parser.MetadataFinder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractDocument.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected AbstractDocument(MetadataFinder forest, ErrorReceiver errReceiver) { this.forest = forest; this.errReceiver = errReceiver; kinds = new HashMap(); importedEntities = new ArrayList(); importedDocuments = new HashSet(); includedEntities = new ArrayList(); includedDocuments = new HashSet(); }
Example #2
Source File: AbstractDocument.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
protected AbstractDocument(MetadataFinder forest, ErrorReceiver errReceiver) { this.forest = forest; this.errReceiver = errReceiver; kinds = new HashMap(); importedEntities = new ArrayList(); importedDocuments = new HashSet(); includedEntities = new ArrayList(); includedDocuments = new HashSet(); }
Example #3
Source File: AbstractDocument.java From hottub with GNU General Public License v2.0 | 5 votes |
protected AbstractDocument(MetadataFinder forest, ErrorReceiver errReceiver) { this.forest = forest; this.errReceiver = errReceiver; kinds = new HashMap(); importedEntities = new ArrayList(); importedDocuments = new HashSet(); includedEntities = new ArrayList(); includedDocuments = new HashSet(); }
Example #4
Source File: WSDLFetcher.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Fetches the wsdls in the DOMForest to the options.destDir * @param forest * @return location of fetched root WSDL document * @throws IOException * @throws XMLStreamException * @throws FileNotFoundException */ public String fetchWsdls(MetadataFinder forest) throws IOException, XMLStreamException { String rootWsdl = null; for(String root: forest.getRootDocuments()) { rootWsdl = root; } Set<String> externalRefs = forest.getExternalReferences(); Map<String,String> documentMap = createDocumentMap(forest, getWSDLDownloadDir(), rootWsdl, externalRefs); String rootWsdlName = fetchFile(rootWsdl,forest, documentMap,getWSDLDownloadDir()); for(String reference: forest.getExternalReferences()) { fetchFile(reference,forest,documentMap,getWSDLDownloadDir()); } return WSDL_PATH +"/" + rootWsdlName; }
Example #5
Source File: JAXBModelBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public JAXBModelBuilder(WsimportOptions options, ClassNameCollector classNameCollector, MetadataFinder finder, ErrorReceiver errReceiver) { this._classNameAllocator = new ClassNameAllocatorImpl(classNameCollector); this.errReceiver = errReceiver; this.options = options; this.forest = finder; internalBuildJAXBModel(); }
Example #6
Source File: JAXBModelBuilder.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public JAXBModelBuilder(WsimportOptions options, ClassNameCollector classNameCollector, MetadataFinder finder, ErrorReceiver errReceiver) { this._classNameAllocator = new ClassNameAllocatorImpl(classNameCollector); this.errReceiver = errReceiver; this.options = options; this.forest = finder; internalBuildJAXBModel(); }
Example #7
Source File: AbstractDocument.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected AbstractDocument(MetadataFinder forest, ErrorReceiver errReceiver) { this.forest = forest; this.errReceiver = errReceiver; kinds = new HashMap(); importedEntities = new ArrayList(); importedDocuments = new HashSet(); includedEntities = new ArrayList(); includedDocuments = new HashSet(); }
Example #8
Source File: WSDLFetcher.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Fetches the wsdls in the DOMForest to the options.destDir * @param forest * @return location of fetched root WSDL document * @throws IOException * @throws XMLStreamException * @throws FileNotFoundException */ public String fetchWsdls(MetadataFinder forest) throws IOException, XMLStreamException { String rootWsdl = null; for(String root: forest.getRootDocuments()) { rootWsdl = root; } Set<String> externalRefs = forest.getExternalReferences(); Map<String,String> documentMap = createDocumentMap(forest, getWSDLDownloadDir(), rootWsdl, externalRefs); String rootWsdlName = fetchFile(rootWsdl,forest, documentMap,getWSDLDownloadDir()); for(String reference: forest.getExternalReferences()) { fetchFile(reference,forest,documentMap,getWSDLDownloadDir()); } return WSDL_PATH +"/" + rootWsdlName; }
Example #9
Source File: JAXBModelBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public JAXBModelBuilder(WsimportOptions options, ClassNameCollector classNameCollector, MetadataFinder finder, ErrorReceiver errReceiver) { this._classNameAllocator = new ClassNameAllocatorImpl(classNameCollector); this.errReceiver = errReceiver; this.options = options; this.forest = finder; internalBuildJAXBModel(); }
Example #10
Source File: WSDLFetcher.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Fetches the wsdls in the DOMForest to the options.destDir * @param forest * @return location of fetched root WSDL document * @throws IOException * @throws XMLStreamException * @throws FileNotFoundException */ public String fetchWsdls(MetadataFinder forest) throws IOException, XMLStreamException { String rootWsdl = null; for(String root: forest.getRootDocuments()) { rootWsdl = root; } Set<String> externalRefs = forest.getExternalReferences(); Map<String,String> documentMap = createDocumentMap(forest, getWSDLDownloadDir(), rootWsdl, externalRefs); String rootWsdlName = fetchFile(rootWsdl,forest, documentMap,getWSDLDownloadDir()); for(String reference: forest.getExternalReferences()) { fetchFile(reference,forest,documentMap,getWSDLDownloadDir()); } return WSDL_PATH +"/" + rootWsdlName; }
Example #11
Source File: JAXBModelBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public JAXBModelBuilder(WsimportOptions options, ClassNameCollector classNameCollector, MetadataFinder finder, ErrorReceiver errReceiver) { this._classNameAllocator = new ClassNameAllocatorImpl(classNameCollector); this.errReceiver = errReceiver; this.options = options; this.forest = finder; internalBuildJAXBModel(); }
Example #12
Source File: WSDLFetcher.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Fetches the wsdls in the DOMForest to the options.destDir * @param forest * @return location of fetched root WSDL document * @throws IOException * @throws XMLStreamException * @throws FileNotFoundException */ public String fetchWsdls(MetadataFinder forest) throws IOException, XMLStreamException { String rootWsdl = null; for(String root: forest.getRootDocuments()) { rootWsdl = root; } Set<String> externalRefs = forest.getExternalReferences(); Map<String,String> documentMap = createDocumentMap(forest, getWSDLDownloadDir(), rootWsdl, externalRefs); String rootWsdlName = fetchFile(rootWsdl,forest, documentMap,getWSDLDownloadDir()); for(String reference: forest.getExternalReferences()) { fetchFile(reference,forest,documentMap,getWSDLDownloadDir()); } return WSDL_PATH +"/" + rootWsdlName; }
Example #13
Source File: AbstractDocument.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected AbstractDocument(MetadataFinder forest, ErrorReceiver errReceiver) { this.forest = forest; this.errReceiver = errReceiver; kinds = new HashMap(); importedEntities = new ArrayList(); importedDocuments = new HashSet(); includedEntities = new ArrayList(); includedDocuments = new HashSet(); }
Example #14
Source File: WSDLFetcher.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Fetches the wsdls in the DOMForest to the options.destDir * @param forest * @return location of fetched root WSDL document * @throws IOException * @throws XMLStreamException * @throws FileNotFoundException */ public String fetchWsdls(MetadataFinder forest) throws IOException, XMLStreamException { String rootWsdl = null; for(String root: forest.getRootDocuments()) { rootWsdl = root; } Set<String> externalRefs = forest.getExternalReferences(); Map<String,String> documentMap = createDocumentMap(forest, getWSDLDownloadDir(), rootWsdl, externalRefs); String rootWsdlName = fetchFile(rootWsdl,forest, documentMap,getWSDLDownloadDir()); for(String reference: forest.getExternalReferences()) { fetchFile(reference,forest,documentMap,getWSDLDownloadDir()); } return WSDL_PATH +"/" + rootWsdlName; }
Example #15
Source File: JAXBModelBuilder.java From hottub with GNU General Public License v2.0 | 5 votes |
public JAXBModelBuilder(WsimportOptions options, ClassNameCollector classNameCollector, MetadataFinder finder, ErrorReceiver errReceiver) { this._classNameAllocator = new ClassNameAllocatorImpl(classNameCollector); this.errReceiver = errReceiver; this.options = options; this.forest = finder; internalBuildJAXBModel(); }
Example #16
Source File: WSDLFetcher.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Fetches the wsdls in the DOMForest to the options.destDir * @param forest * @return location of fetched root WSDL document * @throws IOException * @throws XMLStreamException * @throws FileNotFoundException */ public String fetchWsdls(MetadataFinder forest) throws IOException, XMLStreamException { String rootWsdl = null; for(String root: forest.getRootDocuments()) { rootWsdl = root; } Set<String> externalRefs = forest.getExternalReferences(); Map<String,String> documentMap = createDocumentMap(forest, getWSDLDownloadDir(), rootWsdl, externalRefs); String rootWsdlName = fetchFile(rootWsdl,forest, documentMap,getWSDLDownloadDir()); for(String reference: forest.getExternalReferences()) { fetchFile(reference,forest,documentMap,getWSDLDownloadDir()); } return WSDL_PATH +"/" + rootWsdlName; }
Example #17
Source File: JAXBModelBuilder.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public JAXBModelBuilder(WsimportOptions options, ClassNameCollector classNameCollector, MetadataFinder finder, ErrorReceiver errReceiver) { this._classNameAllocator = new ClassNameAllocatorImpl(classNameCollector); this.errReceiver = errReceiver; this.options = options; this.forest = finder; internalBuildJAXBModel(); }
Example #18
Source File: JAXBModelBuilder.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public JAXBModelBuilder(WsimportOptions options, ClassNameCollector classNameCollector, MetadataFinder finder, ErrorReceiver errReceiver) { this._classNameAllocator = new ClassNameAllocatorImpl(classNameCollector); this.errReceiver = errReceiver; this.options = options; this.forest = finder; internalBuildJAXBModel(); }
Example #19
Source File: WSDLFetcher.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Fetches the wsdls in the DOMForest to the options.destDir * @param forest * @return location of fetched root WSDL document * @throws IOException * @throws XMLStreamException * @throws FileNotFoundException */ public String fetchWsdls(MetadataFinder forest) throws IOException, XMLStreamException { String rootWsdl = null; for(String root: forest.getRootDocuments()) { rootWsdl = root; } Set<String> externalRefs = forest.getExternalReferences(); Map<String,String> documentMap = createDocumentMap(forest, getWSDLDownloadDir(), rootWsdl, externalRefs); String rootWsdlName = fetchFile(rootWsdl,forest, documentMap,getWSDLDownloadDir()); for(String reference: forest.getExternalReferences()) { fetchFile(reference,forest,documentMap,getWSDLDownloadDir()); } return WSDL_PATH +"/" + rootWsdlName; }
Example #20
Source File: AbstractDocument.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected AbstractDocument(MetadataFinder forest, ErrorReceiver errReceiver) { this.forest = forest; this.errReceiver = errReceiver; kinds = new HashMap(); importedEntities = new ArrayList(); importedDocuments = new HashSet(); includedEntities = new ArrayList(); includedDocuments = new HashSet(); }
Example #21
Source File: AbstractDocument.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected AbstractDocument(MetadataFinder forest, ErrorReceiver errReceiver) { this.forest = forest; this.errReceiver = errReceiver; kinds = new HashMap(); importedEntities = new ArrayList(); importedDocuments = new HashSet(); includedEntities = new ArrayList(); includedDocuments = new HashSet(); }
Example #22
Source File: WSDLFetcher.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Fetches the wsdls in the DOMForest to the options.destDir * @param forest * @return location of fetched root WSDL document * @throws IOException * @throws XMLStreamException * @throws FileNotFoundException */ public String fetchWsdls(MetadataFinder forest) throws IOException, XMLStreamException { String rootWsdl = null; for(String root: forest.getRootDocuments()) { rootWsdl = root; } Set<String> externalRefs = forest.getExternalReferences(); Map<String,String> documentMap = createDocumentMap(forest, getWSDLDownloadDir(), rootWsdl, externalRefs); String rootWsdlName = fetchFile(rootWsdl,forest, documentMap,getWSDLDownloadDir()); for(String reference: forest.getExternalReferences()) { fetchFile(reference,forest,documentMap,getWSDLDownloadDir()); } return WSDL_PATH +"/" + rootWsdlName; }
Example #23
Source File: JAXBModelBuilder.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public JAXBModelBuilder(WsimportOptions options, ClassNameCollector classNameCollector, MetadataFinder finder, ErrorReceiver errReceiver) { this._classNameAllocator = new ClassNameAllocatorImpl(classNameCollector); this.errReceiver = errReceiver; this.options = options; this.forest = finder; internalBuildJAXBModel(); }
Example #24
Source File: AbstractDocument.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected AbstractDocument(MetadataFinder forest, ErrorReceiver errReceiver) { this.forest = forest; this.errReceiver = errReceiver; kinds = new HashMap(); importedEntities = new ArrayList(); importedDocuments = new HashSet(); includedEntities = new ArrayList(); includedDocuments = new HashSet(); }
Example #25
Source File: WSDLModelerBase.java From hottub with GNU General Public License v2.0 | 4 votes |
public WSDLModelerBase(WsimportOptions options, ErrorReceiver receiver, MetadataFinder forest) { this.options = options; this.errReceiver = new ErrorReceiverFilter(receiver); this.forest = forest; }
Example #26
Source File: WSDLFetcher.java From hottub with GNU General Public License v2.0 | 4 votes |
private Map<String,String> createDocumentMap(MetadataFinder forest, File baseDir, final String rootWsdl, Set<String> externalReferences) { Map<String,String> map = new HashMap<String,String>(); String rootWsdlFileName = rootWsdl; String rootWsdlName; int slashIndex = rootWsdl.lastIndexOf("/"); if( slashIndex >= 0) { rootWsdlFileName = rootWsdl.substring(slashIndex+1); } if(!rootWsdlFileName.endsWith(WSDL_FILE_EXTENSION)) { Document rootWsdlDoc = forest.get(rootWsdl); NodeList serviceNodes = rootWsdlDoc.getElementsByTagNameNS(WSDLConstants.QNAME_SERVICE.getNamespaceURI(),WSDLConstants.QNAME_SERVICE.getLocalPart()); if (serviceNodes.getLength() == 0) { rootWsdlName = "Service"; } else { Node serviceNode = serviceNodes.item(0); String serviceName = ((Element)serviceNode).getAttribute( WSDLConstants.ATTR_NAME); rootWsdlName = serviceName; } rootWsdlFileName = rootWsdlName+ WSDL_FILE_EXTENSION; } else { rootWsdlName = rootWsdlFileName.substring(0,rootWsdlFileName.length()-5); } map.put(rootWsdl,sanitize(rootWsdlFileName)); int i =1; for(String ref: externalReferences) { Document refDoc = forest.get(ref); Element rootEl = refDoc.getDocumentElement(); String fileExtn; String fileName = null; int index = ref.lastIndexOf("/"); if (index >= 0) { fileName = ref.substring(index + 1); } if(rootEl.getLocalName().equals(WSDLConstants.QNAME_DEFINITIONS.getLocalPart()) && rootEl.getNamespaceURI().equals(WSDLConstants.NS_WSDL)) { fileExtn = WSDL_FILE_EXTENSION; } else if(rootEl.getLocalName().equals(WSDLConstants.QNAME_SCHEMA.getLocalPart()) && rootEl.getNamespaceURI().equals(WSDLConstants.NS_XMLNS)) { fileExtn = SCHEMA_FILE_EXTENSION; } else { fileExtn = ".xml"; } if(fileName != null && (fileName.endsWith(WSDL_FILE_EXTENSION) || fileName.endsWith(SCHEMA_FILE_EXTENSION))) { map.put(ref, rootWsdlName+"_"+fileName); } else { map.put(ref, rootWsdlName+"_metadata"+ (i++) + fileExtn); } } return map; }
Example #27
Source File: WSDLModeler.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public WSDLModeler(WsimportOptions options, ErrorReceiver receiver, MetadataFinder forest) { super(options, receiver,forest); this.classNameCollector = new ClassNameCollector(); this.explicitDefaultPackage = options.defaultPackage; }
Example #28
Source File: WSDLDocument.java From hottub with GNU General Public License v2.0 | 4 votes |
public WSDLDocument(MetadataFinder forest, ErrorReceiver errReceiver) { super(forest, errReceiver); }
Example #29
Source File: WSDLModeler.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public WSDLModeler(WsimportOptions options, ErrorReceiver receiver, MetadataFinder forest) { super(options, receiver,forest); this.classNameCollector = new ClassNameCollector(); this.explicitDefaultPackage = options.defaultPackage; }
Example #30
Source File: WSDLModelerBase.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public WSDLModelerBase(WsimportOptions options, ErrorReceiver receiver, MetadataFinder forest) { this.options = options; this.errReceiver = new ErrorReceiverFilter(receiver); this.forest = forest; }