Package org.uddi.api_v3

Examples of org.uddi.api_v3.Description


     */
    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

     
      //Now updating the business by adding another description
      SaveBusiness sb = new SaveBusiness();
      sb.setAuthInfo(authInfo);
      BusinessEntity beIn = beOut;
      Description desc2= new Description();
      desc2.setLang("nl");
      desc2.setValue("Omschrijving");
      beIn.getDescription().add(desc2);
      sb.getBusinessEntity().add(beIn);
      publication.saveBusiness(sb);
 
      // Now get the entity and check the values
View Full Code Here

    }
    assertEquals(descriptions1.size(), descriptions2.size());
    Iterator<Description> descriptions1Itr = descriptions1.iterator();
    Iterator<Description> descriptions2Itr = descriptions2.iterator();
    while (descriptions1Itr.hasNext()) {
      Description description1 = descriptions1Itr.next();
      Description description2 = descriptions2Itr.next();
      assertEquals(description1.getLang(), description2.getLang());
      assertEquals(description1.getValue(), description2.getValue());
    }
  }
View Full Code Here

    if (elem1s.size() == 0 && elem2s.size() == 0) {
      isMatch = true;
    }
   
    while (elem1.hasNext()) {
      Description desc1 = elem1.next();
     
      if (desc1 instanceof org.uddi.api_v3.Description) {
        //Descriptions
        Iterator<Description> elem2 = elem2s.iterator();
        while (elem2.hasNext()) {
          Description desc2 = elem2.next();
          if (desc2 instanceof org.uddi.api_v3.Description) {
            if (desc1.getLang().equals(desc2.getLang()) && desc1.getValue().equals(desc2.getValue())) {
              isMatch=true;
              break;
            }
          }
        }
View Full Code Here

    Iterator<Description> descIter1 = descList1.iterator();
    if (descList1.size() == 0 && doc2.getDescription().size() == 0) {
      descMatch = true;
    }
    while (descIter1.hasNext()) {
      Description descr1 = (Description) descIter1.next();
      List<Description> descList2 = doc2.getDescription();
      Iterator<Description> descElem2 = descList2.iterator();
      while (descElem2.hasNext()) {
        Description descr2 = descElem2.next();
        if (descr1.getLang().equals(descr2.getLang()) && descr1.getValue().equals(descr2.getValue())) {
          descMatch=true;
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.uddi.api_v3.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.