/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* @author Vivek Pandey
*/
/**
* This filter looks for <xs:import> and <xs:include>
* and parses those documents referenced by them.
*/
super(parent);
}
if(parent.isExtensionMode()){
//TODO: add support for importing schema using wsdl:import
}
}
// 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..
}
}
return null;
}
}
return new ReferenceFinder(parent);
}
return false;
}
// look for existing xs:annotation
if(annotation==null)
// none exists. need to make one
// then look for appinfo
// none exists. need to make one
return appinfo;
}
// look for existing xs:annotation
Element JAXWSBindings = DOMUtils.getFirstChildElement(target, JAXWSBindingsConstants.NS_JAXWS_BINDINGS, "bindings");
if(JAXWSBindings==null)
// none exists. need to make one
return JAXWSBindings;
}
Element child = parent.getOwnerDocument().createElementNS(JAXWSBindingsConstants.NS_JAXWS_BINDINGS, qname );
else
return child;
}
/**
* Creates a new XML Schema element of the given local name
* and insert it as the first child of the given parent node.
*
* @return
* Newly create element.
*/
// use the same prefix as the parent node to avoid modifying
// the namespace binding.
else
return child;
}
}