Package fr.imag.adele.apam.apform.impl.handlers

Examples of fr.imag.adele.apam.apform.impl.handlers.PropertyInjectionHandler$Description


   * Test that the assertion passes if the interface is not
   * in the direct or indirect list of extended interfaces.
   */
  public void testInterfaceExtendsOtherInterfaces() {
    DescriptionElement descEl = factory.newDescription();
    Description descComp = descEl.toComponent();
       
        descEl.setTargetNamespace(URI.create("http://testnamespace"));
       
    // Create an interface, set it to extend to other interfaces and have
    // one of those interfaces extend a fourth interface.
    InterfaceElement interfac = descEl.addInterfaceElement();
    interfac.setName(new NCName("name1"));
       
    InterfaceElement interfac2 = descEl.addInterfaceElement();
    interfac2.setName(new NCName("name2"));

    interfac.addExtendedInterfaceName(interfac2.getName());
       
    InterfaceElement interfac3 = descEl.addInterfaceElement();
    interfac3.setName(new NCName("name3"));
       
    interfac.addExtendedInterfaceName(interfac3.getName());
       
    InterfaceElement interfac4 = descEl.addInterfaceElement();
    interfac4.setName(new NCName("name4"));
       
    interfac2.addExtendedInterfaceName(interfac4.getName());
         
    // init Interface's ref to its Description, needed for interface extension.
    descComp.getInterfaces();
    try {
      assertion.validate(interfac, wodenContext);
    } catch(WSDLException e){
      fail("Assertion Interface1009 threw a WSDLException.");
    }
View Full Code Here


  /**
   * Test that the assertion passes for an empty list of interfaces.
   */
  public void testNoInterfaces() {
    DescriptionElement descEl = factory.newDescription();
    Description descComp = descEl.toComponent();
       
    try {
      descEl.setTargetNamespace(new URI("http://testnamespace"));
    } catch(URISyntaxException e) {
      // Do nothing.
View Full Code Here

  /**
   * Test that the assertion passes when only one interface is defined.
   */
  public void testOneInterface() {
    DescriptionElement descEl = factory.newDescription();
    Description descComp = descEl.toComponent();
       
    try {
      descEl.setTargetNamespace(new URI("http://testnamespace"));
    } catch(URISyntaxException e) {
      // Do nothing.
View Full Code Here

  /**
   * Test that the assertion passes for a list of interfaces that contains no duplicate names.
   */
  public void testMultipleInterfaceNoDuplicateNames() {
    DescriptionElement descEl = factory.newDescription();
    Description descComp = descEl.toComponent();
       
    try {
      descEl.setTargetNamespace(new URI("http://testnamespace"));
    } catch(URISyntaxException e) {
      // Do nothing.
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

        name.setValue(webServiceAnnotation.serviceName());
      } else {
        name.setValue(clazz.getSimpleName());
      }
      service.getName().add(name);
      Description description = new Description();
      description.setLang(lang);
      description.setValue(TokenResolver.replaceTokens(uddiService.description(),properties));
      service.getDescription().add(description);
     
      //categoryBag on the service
      if (!"".equals(uddiService.categoryBag())) {
        CategoryBag categoryBag = parseCategoryBag(uddiService.categoryBag());
View Full Code Here

     
      String bindingLang = String.valueOf(lang);
      if (uddiServiceBinding.lang()!=null) {
        bindingLang = TokenResolver.replaceTokens(uddiServiceBinding.lang(),properties);
      }
      Description bindingDescription = new Description();
      bindingDescription.setLang(bindingLang);
      bindingDescription.setValue(TokenResolver.replaceTokens(uddiServiceBinding.description(),properties));
      bindingTemplate.getDescription().add(bindingDescription);
     
      AccessPoint accessPoint = new AccessPoint();
      accessPoint.setUseType(AccessPointType.WSDL_DEPLOYMENT.toString());
      if (!"".equals(uddiServiceBinding.accessPointType())) {
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.apform.impl.handlers.PropertyInjectionHandler$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.