Examples of XorCompositeAssertion


Examples of org.apache.ws.policy.XorCompositeAssertion

      if (!policy.isNormalized())
      {
         policy = (Policy)policy.normalize();
      }
      //in normal form we have just one wsp:ExactlyOne element containg unbounded wsp:All (alternative)
      XorCompositeAssertion exactlyOne = (XorCompositeAssertion)policy.getTerms().get(0);
      for (AndCompositeAssertion alternative : (List<AndCompositeAssertion>)exactlyOne.getTerms())
      {
         for (Assertion assertion : (List<Assertion>)alternative.getTerms())
         {
            if (assertion instanceof PrimitiveAssertion)
            {
View Full Code Here

Examples of org.apache.ws.policy.XorCompositeAssertion

   {
      List<PrimitiveAssertion> retVal = new LinkedList<PrimitiveAssertion>();
      if (assertion.getTerms().size() != 0)
      {
         Policy policy = (Policy)assertion.getTerms().get(0);
         XorCompositeAssertion xor = (XorCompositeAssertion)policy.getTerms().get(0);
         AndCompositeAssertion and = (AndCompositeAssertion)xor.getTerms().get(0);
         List<?> primitiveAssertions = and.getTerms();

         for (int i = 0; i < primitiveAssertions.size(); i++)
         {
            retVal.add((PrimitiveAssertion)primitiveAssertions.get(i));
View Full Code Here

Examples of org.apache.ws.policy.XorCompositeAssertion

      {
         policy = (Policy)policy.normalize();
      }

      //in normal form we have just one wsp:ExactlyOne element containg unbounded wsp:All (alternative)
      XorCompositeAssertion exactlyOne = (XorCompositeAssertion)policy.getTerms().get(0);
      log.debug("####" + exactlyOne.getClass());
      log.debug("####" + exactlyOne.getTerms());
      for (AndCompositeAssertion alternative : (List<AndCompositeAssertion>)exactlyOne.getTerms())
      {
         log.debug("alternative");
         try
         {
            deployAlternativeServerSide(alternative, extMetaData);
View Full Code Here

Examples of org.apache.ws.policy.XorCompositeAssertion

      if (!policy.isNormalized())
      {
         policy = (Policy)policy.normalize();
      }
      //in normal form we have just one wsp:ExactlyOne element containg unbounded wsp:All (alternative)
      XorCompositeAssertion exactlyOne = (XorCompositeAssertion)policy.getTerms().get(0);
      for (AndCompositeAssertion alternative : (List<AndCompositeAssertion>)exactlyOne.getTerms())
      {
         for (Assertion assertion : (List<Assertion>)alternative.getTerms())
         {
            if (assertion instanceof PrimitiveAssertion)
            {
View Full Code Here

Examples of org.apache.ws.policy.XorCompositeAssertion

   }
  
   private static List<PrimitiveAssertion> getWSRMPAssertions(PrimitiveAssertion assertion)
   {
      Policy policy = (Policy)assertion.getTerms().get(0);
      XorCompositeAssertion xor = (XorCompositeAssertion)policy.getTerms().get(0);
      AndCompositeAssertion and = (AndCompositeAssertion)xor.getTerms().get(0);
      List<?> primitiveAssertions = and.getTerms();

      List<PrimitiveAssertion> retVal = new LinkedList<PrimitiveAssertion>();
      for (int i = 0; i < primitiveAssertions.size(); i++)
      {
View Full Code Here

Examples of org.apache.ws.policy.XorCompositeAssertion

/*  97 */     if (!policy.isNormalized())
/*     */     {
/*  99 */       policy = (Policy)policy.normalize();
/*     */     }
/*     */
/* 103 */     XorCompositeAssertion exactlyOne = (XorCompositeAssertion)policy.getTerms().get(0);
/* 104 */     log.debug("####" + exactlyOne.getClass());
/* 105 */     log.debug("####" + exactlyOne.getTerms());
/* 106 */     for (AndCompositeAssertion alternative : exactlyOne.getTerms())
/*     */     {
/* 108 */       log.debug("alternative");
/*     */       try
/*     */       {
/* 111 */         deployAlternativeServerSide(alternative, extMetaData);
View Full Code Here

Examples of org.apache.ws.policy.XorCompositeAssertion

/* 148 */     if (!policy.isNormalized())
/*     */     {
/* 150 */       policy = (Policy)policy.normalize();
/*     */     }
/*     */
/* 153 */     XorCompositeAssertion exactlyOne = (XorCompositeAssertion)policy.getTerms().get(0);
/* 154 */     for (AndCompositeAssertion alternative : exactlyOne.getTerms())
/*     */     {
/* 156 */       for (Assertion assertion : alternative.getTerms())
/*     */       {
/* 158 */         if ((assertion instanceof PrimitiveAssertion))
/*     */         {
View Full Code Here

Examples of org.apache.ws.policy.XorCompositeAssertion

  public static List getPrimTermsList(Policy policy) {
    if (!policy.isNormalized()) {
      policy = (Policy) policy.normalize();
    }

    XorCompositeAssertion xorTerm = (XorCompositeAssertion) policy
        .getTerms().get(0);
    AndCompositeAssertion andTerm = (AndCompositeAssertion) xorTerm
        .getTerms().get(0);

    return andTerm.getTerms();
  }
View Full Code Here

Examples of org.apache.ws.policy.XorCompositeAssertion

    return policyTerm;
  }

  public static Policy getPolicy(List terms) {
    Policy policyTerm = new Policy();
    XorCompositeAssertion xorTerm = new XorCompositeAssertion();
    AndCompositeAssertion andTerm = new AndCompositeAssertion();

    andTerm.addTerms(terms);
    xorTerm.addTerm(andTerm);
    policyTerm.addTerm(xorTerm);

    return policyTerm;
  }
View Full Code Here

Examples of org.apache.ws.policy.XorCompositeAssertion

    andCompositeAssertion.addTerms(readTerms(element));
    return andCompositeAssertion;
  }

  private XorCompositeAssertion readXorComposite(OMElement element) {
    XorCompositeAssertion xorCompositeAssertion = new XorCompositeAssertion();
    xorCompositeAssertion.addTerms(readTerms(element));
    return xorCompositeAssertion;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.