public List<org.ow2.easywsdl.schema.api.Type> findTypesInAllSchema(final QName type) { final List<org.ow2.easywsdl.schema.api.Type> res = new ArrayList<org.ow2.easywsdl.schema.api.Type>(); org.ow2.easywsdl.schema.api.Type item = null; for(final Schema schema: this.schemas) { item = schema.getType(type); if(item != null) { res.add(item); } } for(final Description desc: this.descriptions) { for(final Schema schema: desc.getTypes().getSchemas()) { item = schema.getType(type); if(item != null) { res.add(item); } } } return res; }
@SuppressWarnings("unchecked") public Element getElement() { Element res = null; final Types types = (Types) ((AbstractInterfaceTypeImpl) ((AbstractOperationImpl) this.operation) .getInterface()).getDescription().getTypes(); if (this.elementName != null) { for (final Schema schema : types.getSchemas()) { res = schema.getElement(this.elementName); if (res != null) { break; } } } return res; }
@SuppressWarnings("unchecked") public Element getElement() { Element res = null; Element item = null; AbsItfDescription desc = null; if(parent instanceof AbstractParamImpl) { desc = ((AbstractInterfaceTypeImpl) ((AbstractOperationImpl) ((AbstractParamImpl) this.parent) .getOperation()).getInterface()).getDescription(); } if(parent instanceof MessageImpl) { desc = ((MessageImpl)parent).getDescription(); } final Types types = (Types) desc.getTypes(); if (this.elementName != null) { for (final Schema schema : types.getSchemas()) { item = schema.getElement(this.elementName); if (item != null) { res = item; break; } } } return res; }
List<Schema> schemas = types.getSchemas();
if ((types != null) && (types.getSchemas() != null)) { for (final Schema schema : types.getSchemas()) { item = schema.getType(this.typeName); if (item != null) {