Package org.apache.muse.ws.resource.metadata.impl

Examples of org.apache.muse.ws.resource.metadata.impl.SimpleMetadataDescriptor


    }

    public void setMetadata(Element rmdXML)
    {
        rmdXML = XmlUtils.getFirstElement(rmdXML);
        _rmd = new SimpleMetadataDescriptor(rmdXML);
    }
View Full Code Here


        Element[] results = getMetadata(WsrmdConstants.NAMESPACE_URI);
       
        if (results.length == 0)
            return null;
       
        return new SimpleMetadataDescriptor(results[0]);
    }
View Full Code Here

        {
            Object[] filler = { rmdPath, rmdName };
            throw new RuntimeException(_MESSAGES.get("DescriptorNotFound", filler));
        }
       
        return new SimpleMetadataDescriptor(descriptorXML);
    }
View Full Code Here

        {
            Object[] filler = { rmdPath, rmdName };
            throw new RuntimeException(_MESSAGES.get("DescriptorNotFound", filler));
        }
       
        return new SimpleMetadataDescriptor(descriptorXML);
    }
View Full Code Here

        Element[] results = getMetadata(WsrmdConstants.NAMESPACE_URI);
       
        if (results.length == 0)
            return null;
       
        return new SimpleMetadataDescriptor(results[0]);
    }
View Full Code Here

        Element rmdDoc = WsrmdUtils.getMetadataDescriptor(doc, descName);
        if(rmdDoc == null) {         
          Object[] filler = {descName, relativePath, getEnvFile(env, wsdlPath)};
          throw new MuseRuntimeException("BadRMDName",_MESSAGES.get("BadRMDName", filler));
        }
        metadata = new SimpleMetadataDescriptor(rmdDoc);
      }
    }
   
    return metadata;
  }
View Full Code Here

  private static PortType getFirstPortType(Definition wsdl) {
    return (PortType) wsdl.getPortTypes().values().iterator().next();
  }

  public static MetadataDescriptor merge(String wsdlLocation, QName interfaceName, MetadataDescriptor[] metadatas) {
    SimpleMetadataDescriptor mergedMetadata = new SimpleMetadataDescriptor(METADATA_NAME, wsdlLocation, interfaceName);
   
    for(int i=0; i < metadatas.length; i++) {
      copyMetadata(metadatas[i], mergedMetadata);
    }
   
View Full Code Here

//            rmdDoc.importNode(element, true);
        Element adopted = (Element) rmdDoc.importNode(element,false);
        metadataDescriptor.appendChild(adopted);
      }
     
      return new SimpleMetadataDescriptor(metadataDescriptor);
        }
        catch(Exception exception)
        {
          LOGGER.error(
              exception,
View Full Code Here

        {
            Object[] filler = { rmdPath, rmdName };
            throw new RuntimeException(_MESSAGES.get("DescriptorNotFound", filler));
        }
       
        return new SimpleMetadataDescriptor(descriptorXML);
    }
View Full Code Here

    }

    public void setMetadata(Element rmdXML)
    {
        rmdXML = XmlUtils.getFirstElement(rmdXML);
        _rmd = new SimpleMetadataDescriptor(rmdXML);
    }
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.resource.metadata.impl.SimpleMetadataDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.