Package org.uddi4j.util

Examples of org.uddi4j.util.CategoryBag


   * Determine if this is a wsdlSpec tModel.
   */
  public static boolean isWsdlSpec(TModel tModel)
  {
    boolean tModelFound = false;
    CategoryBag categoryBag = null;
    Iterator categoryBagIterator = null;

    // Determine if the catetgoryBag contains wsdlSpec
    if ((categoryBag = tModel.getCategoryBag()) != null)
    {
      // Get the list of keyed references
      categoryBagIterator = categoryBag.getKeyedReferenceVector().iterator();

      KeyedReference keyedReference = null;

      // Go through the list of keyed references
      while (categoryBagIterator.hasNext() && !(tModelFound))
View Full Code Here


    }

    // If there is a tModel
    else
    {
      CategoryBag bag = tModel.getCategoryBag();

      try
      {
        if (!checkCategoryBag(this.validator.uddiProxy, bag))
        {
View Full Code Here

    }

    // If there is a tModel
    else
    {
      CategoryBag bag = tModel.getCategoryBag();
      return checkCategoryBag(this.validator.uddiProxy, bag);
    }

  }
View Full Code Here

  {
    String conformanceKey = UDDIUtils.getWSIConformanceTModelKey(validator.uddiProxy);

    HashSet result = new HashSet();

    CategoryBag bag = tModel.getCategoryBag();
    if (bag != null)
    {
      Vector references = bag.getKeyedReferenceVector();
      for (int i = 0; i < references.size(); i++)
      {
        KeyedReference ref = (KeyedReference) references.get(i);

        if (ref.getTModelKey().equalsIgnoreCase(conformanceKey))
View Full Code Here

   * @deprecated -- use UDDIUtils.isWsdlSpec(String wsdlLocation).
   */
  protected boolean isWsdlSpec(TModel tModel)
  {
    boolean tModelFound = false;
    CategoryBag categoryBag = null;
    Iterator categoryBagIterator = null;

    // Determine if the catetgoryBag contains wsdlSpec
    if ((categoryBag = tModel.getCategoryBag()) != null)
    {
      // Get the list of keyed references
      categoryBagIterator = categoryBag.getKeyedReferenceVector().iterator();

      KeyedReference keyedReference = null;

      // Go through the list of keyed references
      while (categoryBagIterator.hasNext() && !(tModelFound))
View Full Code Here

    }
    return true;
  }

  public boolean _queryNoNameQualifiers() {
    CategoryBag catBag = new CategoryBag();
   KeyedReference kref = new KeyedReference("", "categorization", TModel.TYPES_TMODEL_KEY);
    catBag.add(kref);
    try {
      proxy.find_tModel("", catBag, null, null, 5);
    }
    catch (UDDIException ex) {
      return false;
View Full Code Here

    }
    return ret;
  }

  private CategoryBag _createCategoryBag() {
    CategoryBag catBag = new CategoryBag();
    KeyedReference kr = new KeyedReference(TModel.NAICS_TMODEL_KEY, "<FAKE NAICS NUMBER>");
    catBag.add(kr);
    return catBag;
  }
View Full Code Here

    boolean ret = false;
    java.util.Vector entities = new Vector();
    BusinessEntity be = new BusinessEntity("", ANIMAL_BUSINESS);
    IdentifierBag idBag = _createIdentifierBag();
    be.setIdentifierBag(idBag);
    CategoryBag catBag = _createCategoryBag();
    be.setCategoryBag(catBag);
    entities.addElement(be);
    try {
      BusinessDetail businessDetail = proxy.save_business(token.getAuthInfoString(), entities);
      Vector businessEntities = businessDetail.getBusinessEntityVector();
View Full Code Here

    boolean ret = false;
    BusinessService busService = new BusinessService();
    busService.setBusinessKey(_animalBusinessEntity.getBusinessKey());
    Name name = new Name(ANIMAL_BUSINESS_SERVICE);
    busService.setDefaultName(name);
    CategoryBag catBag = _createCategoryBag();
    busService.setCategoryBag(catBag);
    BindingTemplate bindingTemplate = new BindingTemplate();
    TModelInstanceDetails tModelInstanceDetails = new TModelInstanceDetails();
    TModelInstanceInfo tModelInstanceInfo = new TModelInstanceInfo();
    tModelInstanceInfo.setTModelKey(((TModel)_animalProtocol_tModelDetail.getTModelVector().elementAt(0)).getTModelKey());
View Full Code Here

    animalWSDL_overviewDoc.setOverviewURL(ANIMAL_WSDL_URL);
    animalWSDL_tModel.setOverviewDoc(animalWSDL_overviewDoc);

    KeyedReference kr = new KeyedReference("uuid-org:types","wsdlSpec");
    kr.setTModelKey(TModel.TYPES_TMODEL_KEY);
    CategoryBag catBag = new CategoryBag();
    catBag.add(kr);
    animalWSDL_tModel.setCategoryBag(catBag);

    animalWSDL_tModel.setName(ANIMAL_SERVICE_NAME);
    animalWSDL_tModel.setDefaultDescriptionString("WSDL description of Animal protocol interface");
    java.util.Vector tModelVector = new Vector();
View Full Code Here

TOP

Related Classes of org.uddi4j.util.CategoryBag

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.