Package com.vmware.vim25

Examples of com.vmware.vim25.Description


       
        URL wsdlURL = getClass().getClassLoader().getResource(fWsdlPath);
        assertNotNull("Failed to find the WSDL document on the classpath using the path: " + fWsdlPath + ".",
                wsdlURL);
       
        Description descComp = reader.readWSDL(wsdlURL.toString());
        assertNotNull("The reader did not return a WSDL description.", descComp);
       
        Binding[] bindings = descComp.getBindings();
        assertEquals("The Description should contain 1 Binding component.", 1, bindings.length);
       
        fBindFaults = bindings[0].getBindingFaults();
        assertEquals("The Binding should contain 4 BindingFault components.", 4, fBindFaults.length);
       
View Full Code Here


       
        URL wsdlURL = getClass().getClassLoader().getResource(fWsdlPath);
        assertNotNull("Failed to find the WSDL document on the classpath using the path: " + fWsdlPath + ".",
                wsdlURL);
       
        Description descComp = fReader.readWSDL(wsdlURL.toString());
        assertNotNull("The reader did not return a WSDL description.", descComp);
       
        Binding binding = descComp.getBindings()[0];
        assertNotNull("The Description does not contain a Binding.", binding);
        fBindOper = binding.getBindingOperations()[0];
        assertNotNull("The Binding does not contain a BindingOperation.", fBindOper);
    }
View Full Code Here

    /* (non-Javadoc)
     * @see org.apache.woden.wsdl20.Service#getInterface()
     */
    public Interface getInterface()
    {
        Description desc = fDescriptionComponent;
        Interface interfac = desc.getInterface(fInterfaceName);
        return interfac;
    }
View Full Code Here

     */
    public InterfaceElement getInterfaceElement()
    {
        //Cast the containing description element to a description component to re-use its
        //logic for navigating a composite wsdl to retrieve the in-scope top-level components.
        Description desc = (Description)fParentElem;
       
        InterfaceElement interfac = (InterfaceElement)desc.getInterface(fInterfaceName);
        return interfac;

    }
View Full Code Here

            System.out.println("validating " + wsdlLoc);

            reportWriter.beginWsdl(wsdlLoc);
            try {
                // <-- the Description component
                Description descComp = reader.readWSDL(wsdlLoc);

                if (isCm()) {
                    // write the Component Model interchange format output file
                    writeCm(descComp, files[i]);
                }
View Full Code Here

  /* (non-Javadoc)
   * @see org.apache.woden.wsdl20.validation.Assertion#validate(java.lang.Object, org.apache.woden.wsdl20.validation.WodenContext)
   */
  public void validate(Object target, WodenContext wodenCtx) throws WSDLException {
    Description desc = (Description)target;
    Interface[] interfaces = desc.getInterfaces();
   
    List names = new ArrayList();
    int numInterfaces = interfaces.length;
    for(int i = 0; i < numInterfaces; i++) {
      QName name = interfaces[i].getName();
View Full Code Here

     * @see org.apache.woden.wsdl20.extensions.http.HTTPHeader#getTypeDefinition()
     */
    public TypeDefinition getTypeDefinition()
    {
        TypeDefinition typeDef = null;
        Description desc = getDescriptionComponent(getParent());
        typeDef = desc.getTypeDefinition(fTypeName);
        return typeDef;
    }
View Full Code Here

     * @see org.apache.woden.wsdl20.Endpoint#getBinding()
     */
    public Binding getBinding()
    {
        ServiceImpl service = (ServiceImpl)getParent();
        Description desc = service.getDescriptionComponent();
        Binding binding = desc.getBinding(fBindingName);
        return binding;
    }
View Full Code Here

    {
        ServiceImpl service = (ServiceImpl)getParentElement();
       
        //Cast the containing description element to a description component to re-use its
        //logic for navigating a composite wsdl to retrieve the in-scope top-level components.
        Description desc = (Description)service.getParentElement();
       
        BindingElement binding = (BindingElement)desc.getBinding(fBindingName);
        return binding;
    }
View Full Code Here

        ElementDeclaration elemDecl = null;
       
        if(fElement != null && fElement.isQName()) {
            InterfaceOperation oper = (InterfaceOperation)getParent();
            Interface interfac = (Interface)oper.getParent();
            Description desc = ((InterfaceImpl)interfac).getDescriptionComponent();
            elemDecl = desc.getElementDeclaration(fElement.getQName());
        }
        return elemDecl;
    }
View Full Code Here

TOP

Related Classes of com.vmware.vim25.Description

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.