本文整理了Java中javax.wsdl.Import.getDefinition()
方法的一些代码示例,展示了Import.getDefinition()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Import.getDefinition()
方法的具体详情如下:
包路径:javax.wsdl.Import
类名称:Import
方法名:getDefinition
[英]This property can be used to hang a referenced Definition, and the top-level Definition (i.e. the one with the <import>) will use this Definition when resolving referenced WSDL parts. This would need to be made into a generic reference to handle other types of referenced documents.
[中]此属性可用于挂起引用的定义,顶级定义(即带有<import>的定义)在解析引用的WSDL部分时将使用此定义。需要将其转换为通用引用,以处理其他类型的引用文档。
代码示例来源:origin: wsdl4j/wsdl4j
/**
* Get all the bindings defined in this Definition and
* those in any imported Definitions in the WSDL tree.
*/
public Map getAllBindings()
{
Map allBindings = new HashMap(getBindings());
Map importMap = getImports();
Iterator mapItr = importMap.values().iterator();
while(mapItr.hasNext())
{
Vector importDefs = (Vector) mapItr.next();
Iterator vecItr = importDefs.iterator();
while(vecItr.hasNext())
{
Import importDef = (Import) vecItr.next();
Definition importedDef = importDef.getDefinition();
//importedDef may be null (e.g. if the javax.wsdl.importDocuments feature is disabled).
if(importedDef != null)
{
allBindings.putAll(importedDef.getAllBindings());
}
}
}
return allBindings;
}
代码示例来源:origin: wsdl4j/wsdl4j
/**
* Get all the portTypes defined in this Definition and
* those in any imported Definitions in the WSDL tree.
*/
public Map getAllPortTypes()
{
Map allPortTypes = new HashMap(getPortTypes());
Map importMap = getImports();
Iterator mapItr = importMap.values().iterator();
while(mapItr.hasNext())
{
Vector importDefs = (Vector) mapItr.next();
Iterator vecItr = importDefs.iterator();
while(vecItr.hasNext())
{
Import importDef = (Import) vecItr.next();
Definition importedDef = importDef.getDefinition();
//importedDef may be null (e.g. if the javax.wsdl.importDocuments feature is disabled).
if(importedDef != null)
{
allPortTypes.putAll(importedDef.getAllPortTypes());
}
}
}
return allPortTypes;
}
代码示例来源:origin: wsdl4j/wsdl4j
/**
* Get all the services defined in this Definition and
* those in any imported Definitions in the WSDL tree.
*/
public Map getAllServices()
{
Map allServices = new HashMap(getServices());
Map importMap = getImports();
Iterator mapItr = importMap.values().iterator();
while(mapItr.hasNext())
{
Vector importDefs = (Vector) mapItr.next();
Iterator vecItr = importDefs.iterator();
while(vecItr.hasNext())
{
Import importDef = (Import) vecItr.next();
Definition importedDef = importDef.getDefinition();
//importedDef may be null (e.g. if the javax.wsdl.importDocuments feature is disabled).
if(importedDef != null)
{
allServices.putAll(importedDef.getAllServices());
}
}
}
return allServices;
}
}
代码示例来源:origin: wsdl4j/wsdl4j
Definition importedDef = importDef.getDefinition();
代码示例来源:origin: org.eclipse/org.eclipse.wst.wsi
public void visit(Import im, Object parent, WSDLTraversalContext ctx)
{
if (im.getDefinition() != null)
processWSDL(im.getDefinition());
}
代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator
public void visit(Import im, Object parent, WSDLTraversalContext ctx)
{
if (im.getDefinition() != null)
processWSDL(im.getDefinition());
}
代码示例来源:origin: apache/cxf
private void parseImports(Definition def) {
for (Import impt : getImports(def)) {
if (!importedDefinitions.contains(impt.getDefinition())) {
importedDefinitions.add(impt.getDefinition());
parseImports(impt.getDefinition());
}
}
}
代码示例来源:origin: apache/cxf
private void parseImports(Definition def) {
for (Import impt : getImports(def)) {
if (!importedDefinitions.contains(impt.getDefinition())) {
importedDefinitions.add(impt.getDefinition());
parseImports(impt.getDefinition());
}
}
}
代码示例来源:origin: org.apache.cxf/cxf-rt-core
private void parseImports(Definition def) {
for (Import impt : getImports(def)) {
if (!importedDefinitions.contains(impt.getDefinition())) {
importedDefinitions.add(impt.getDefinition());
parseImports(impt.getDefinition());
}
}
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
private void parseImports(Definition def) {
for (Import impt : getImports(def)) {
if (!importedDefinitions.contains(impt.getDefinition())) {
importedDefinitions.add(impt.getDefinition());
parseImports(impt.getDefinition());
}
}
}
代码示例来源:origin: org.apache.cxf/cxf-tools-validator
private void parseImports(Definition def) {
for (Import impt : getImports(def)) {
if (!importedDefinitions.contains(impt.getDefinition())) {
importedDefinitions.add(impt.getDefinition());
parseImports(impt.getDefinition());
}
}
}
代码示例来源:origin: org.apache.cxf/cxf-tools-wsdlto-core
private void parseImports(Definition def) {
for (Import impt : getImports(def)) {
if (!importedDefinitions.contains(impt.getDefinition())) {
importedDefinitions.add(impt.getDefinition());
parseImports(impt.getDefinition());
}
}
}
代码示例来源:origin: org.apache.cxf/cxf-rt-databinding-jibx
private void parseImports(Definition def, List<Definition> defList) {
List<Import> importList = new ArrayList<Import>();
Collection<List<Import>> ilist = CastUtils.cast(def.getImports().values());
for (List<Import> list : ilist) {
importList.addAll(list);
}
for (Import impt : importList) {
if (!defList.contains(impt.getDefinition())) {
defList.add(impt.getDefinition());
parseImports(impt.getDefinition(), defList);
}
}
}
代码示例来源:origin: apache/cxf
private void parseImports(Definition def, List<Definition> defList) {
List<Import> importList = new ArrayList<>();
Collection<List<Import>> ilist = cast(def.getImports().values());
for (List<Import> list : ilist) {
importList.addAll(list);
}
for (Import impt : importList) {
if (!defList.contains(impt.getDefinition())) {
defList.add(impt.getDefinition());
parseImports(impt.getDefinition(), defList);
}
}
}
代码示例来源:origin: org.apache.servicemix/servicemix-cxf-se
private void parseImports(Definition def, List<Definition> defList) {
List<Import> importList = new ArrayList<Import>();
Collection<List<Import>> ilist = cast(def.getImports().values());
for (List<Import> list : ilist) {
importList.addAll(list);
}
for (Import impt : importList) {
if (!defList.contains(impt.getDefinition())) {
defList.add(impt.getDefinition());
parseImports(impt.getDefinition(), defList);
}
}
}
代码示例来源:origin: apache/cxf
private void parseImports(Definition def, List<Definition> defList) {
List<Import> importList = new ArrayList<>();
Collection<List<Import>> ilist = cast(def.getImports().values());
for (List<Import> list : ilist) {
importList.addAll(list);
}
for (Import impt : importList) {
if (!defList.contains(impt.getDefinition())) {
defList.add(impt.getDefinition());
parseImports(impt.getDefinition(), defList);
}
}
}
代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator
public void visit(Import im, Object parent, WSDLTraversalContext ctx)
{
importFound = true;
if (im.getDefinition() != null && im.getLocationURI() != null)
processWSDL(im.getDefinition().getDocumentBaseURI());
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.wsi
public void visit(Import im, Object parent, WSDLTraversalContext ctx)
{
importFound = true;
if (im.getDefinition() != null && im.getLocationURI() != null)
processWSDL(im.getDefinition().getDocumentBaseURI());
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.wsi
public void visit(Import im, Object parent, WSDLTraversalContext ctx)
{
importFound = true;
Definition def = im.getDefinition();
if (def != null)
{
if (!NullUtil.equals(im.getNamespaceURI(), def.getTargetNamespace()))
errors.add(
new QName(im.getNamespaceURI(), im.getLocationURI()),
new QName(def.getTargetNamespace(), def.getDocumentBaseURI()));
}
}
代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator
public void visit(Import im, Object parent, WSDLTraversalContext ctx)
{
importFound = true;
Definition def = im.getDefinition();
if (def != null)
{
if (!NullUtil.equals(im.getNamespaceURI(), def.getTargetNamespace()))
errors.add(
new QName(im.getNamespaceURI(), im.getLocationURI()),
new QName(def.getTargetNamespace(), def.getDocumentBaseURI()));
}
}
内容来源于网络,如有侵权,请联系作者删除!