Examples of addTarget()


Examples of mage.target.common.TargetCreaturePermanent.addTarget()

            FilterCreaturePermanent filter = new FilterCreaturePermanent("enchant creature put onto the battlefield with Animate Dead");
            filter.add(new PermanentIdPredicate(cardInGraveyard.getId()));
            Target target = new TargetCreaturePermanent(filter);
            //enchantAbility.setTargetName(target.getTargetName());
            if (enchantedCreature != null) {
                target.addTarget(enchantedCreature.getId(), source, game);
                enchantment.getSpellAbility().getTargets().clear();
                enchantment.getSpellAbility().getTargets().add(target);
                enchantedCreature.addAttachment(enchantment.getId(), game);
            }
            return true;
View Full Code Here

Examples of mage.target.common.TargetCreaturePermanentAmount.addTarget()

                        if (ability.getTargets().get(index) instanceof TargetCreaturePermanentAmount) {
                            // supports only to set the complete amount to one target
                            TargetCreaturePermanentAmount targetAmount = (TargetCreaturePermanentAmount) ability.getTargets().get(index);
                            targetAmount.setAmount(ability, game);
                            int amount = targetAmount.getAmountRemaining();
                            targetAmount.addTarget(id, amount,ability, game);
                            targetsSet++;
                        } else {
                            ability.getTargets().get(index).addTarget(id, ability, game);
                            targetsSet++;
                        }
View Full Code Here

Examples of model.devscore.couplings.MultiCouplingTargetList.addTarget()

   * @param target
   *          the target
   */
  public void addToCoupling(String ident, MultiCouplingTarget target) {
    MultiCouplingTargetList mctl = new MultiCouplingTargetList();
    mctl.addTarget(target);
    addToCoupling(ident, mctl);
  }

  /**
   * Add the targets specified in the targets parameter to the coupling
View Full Code Here

Examples of net.rim.tumbler.file.Library.Platform.addTarget()

          for (int i = 0; i < childNodes.getLength(); i++) {
            Target target = processTargetNode(childNodes.item(i));

            if (target != null) {
              platform.addTarget(target);
            }
          }

          return platform;
        }
View Full Code Here

Examples of net.sf.minuteProject.configuration.bean.Targets.addTarget()

  private Targets getTargets() {
    Targets targets = new Targets();
//    Target target = getChoosenTarget();
//    targets.addTarget(target);
    for (Target target2 : getAllRelatedTechnologies()) {
      targets.addTarget(target2);
    }
    return targets;
  }

  private List<Target> getDependentTargetTechnologies() {
View Full Code Here

Examples of org.apache.ambari.eventdb.model.WorkflowDag.WorkflowDagEntry.addTarget()

      dagEntry.setSource(matcher.group(1).replace("\\", ""));
      String[] values = StringUtils.getStrings(
          matcher.group(2).replace("\\", ""));
      if (values != null) {
        for (String target : values) {
          dagEntry.addTarget(target);
        }
      }
      dag.addEntry(dagEntry);
    }
    if (dag.getEntries().isEmpty()) {
View Full Code Here

Examples of org.apache.cayenne.reflect.Property.addTarget()

            public boolean visitAttribute(AttributeProperty property) {
                return false;
            }

            public boolean visitToMany(ToManyProperty property) {
                property.addTarget(source, target, false);
                return false;
            }

            public boolean visitToOne(ToOneProperty property) {
                property.setTarget(source, target, false);
View Full Code Here

Examples of org.apache.log.filter.PriorityFilter.addTarget()

                                                  + "' at " + configs[ i ].getLocation() );
            }

            getLogger().debug( "creating target " + configs[ i ].getName() + ": " + configs[ i ].toString() );
            final LogTarget logtarget = factory.createTarget( configs[ i ] );
            filter.addTarget( logtarget );
        }
        return filter;
    }

    /**
 
View Full Code Here

Examples of org.apache.log.output.PriorityFilteringTarget.addTarget()

            }

            getLogger().debug(
                "creating target " + configs[ i ].getName() + ": " + configs[ i ].toString() );
            final LogTarget logtarget = factory.createTarget( configs[ i ] );
            filter.addTarget( logtarget );
        }
        return filter;
    }

    /**
 
View Full Code Here

Examples of org.apache.synapse.mediators.eip.splitter.CloneMediator.addTarget()

                    continueParent.getAttributeValue()));
        }

        Iterator targetElements = elem.getChildrenWithName(TARGET_Q);
        while (targetElements.hasNext()) {
            mediator.addTarget(TargetFactory.createTarget(
                    (OMElement) targetElements.next(), properties));
        }

        return mediator;
    }
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.