src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/parser/WSDLInternalizationLogic.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 23,33 ****
* questions.
*/
package com.sun.tools.internal.ws.wsdl.parser;
- import com.sun.tools.internal.ws.wscompile.WsimportOptions;
import com.sun.tools.internal.ws.wsdl.document.WSDLConstants;
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBindingsConstants;
import com.sun.tools.internal.ws.wsdl.document.schema.SchemaConstants;
import com.sun.tools.internal.xjc.util.DOMUtils;
import org.w3c.dom.Element;
--- 23,32 ----
*** 47,61 ****
private static final class ReferenceFinder extends AbstractReferenceFinderImpl {
ReferenceFinder( DOMForest parent) {
super(parent);
}
protected String findExternalResource( String nsURI, String localName, Attributes atts) {
if(WSDLConstants.NS_WSDL.equals(nsURI) && "import".equals(localName)){
! if(parent.isExtensionMode()){
! //TODO: add support for importing schema using wsdl:import
! }
return atts.getValue("location");
}
// We don't need to do this anymore, JAXB handles the schema imports, includes etc., but this is useful for the clientJar option in
// fetching the imported schemas to package in the jar..
--- 46,61 ----
private static final class ReferenceFinder extends AbstractReferenceFinderImpl {
ReferenceFinder( DOMForest parent) {
super(parent);
}
+ @Override
protected String findExternalResource( String nsURI, String localName, Attributes atts) {
if(WSDLConstants.NS_WSDL.equals(nsURI) && "import".equals(localName)){
! // if(parent.isExtensionMode()){
! // //TODO: add support for importing schema using wsdl:import
! // }
return atts.getValue("location");
}
// We don't need to do this anymore, JAXB handles the schema imports, includes etc., but this is useful for the clientJar option in
// fetching the imported schemas to package in the jar..
*** 65,82 ****
--- 65,85 ----
}
}
return null;
}
}
+ @Override
public XMLFilterImpl createExternalReferenceFinder(DOMForest parent) {
return new ReferenceFinder(parent);
}
+ @Override
public boolean checkIfValidTargetNode(DOMForest parent, Element bindings, Element target) {
return false;
}
+ @Override
public Element refineSchemaTarget(Element target) {
// look for existing xs:annotation
Element annotation = DOMUtils.getFirstChildElement(target, Constants.NS_XSD, "annotation");
if(annotation==null)
// none exists. need to make one
*** 90,99 ****
--- 93,103 ----
return appinfo;
}
+ @Override
public Element refineWSDLTarget(Element target){
// look for existing xs:annotation
Element JAXWSBindings = DOMUtils.getFirstChildElement(target, JAXWSBindingsConstants.NS_JAXWS_BINDINGS, "bindings");
if(JAXWSBindings==null)
// none exists. need to make one