Examples of StringSet


Examples of com.esri.gpt.framework.collection.StringSet

* Constructs with an authenticator if crendentials are required by the mail server.
* @param authenticator the authenticator
*/
public MailRequest(Authenticator authenticator) {
  _authenticator = authenticator;
  setRecipients(new StringSet());
}
View Full Code Here

Examples of com.esri.gpt.framework.collection.StringSet

                String incomingToAddress) {
  setSmtpHost(smtpHost);
  setSmtpPort(Val.chkInt(smtpPort,-1));
 
  // tokenize the addresses, try to ensure that valid values have been set
  StringSet ssFrom = new StringSet();
  StringSet ssTo = new StringSet();
  ssFrom.addDelimited(outgoingFromAddress);
  ssTo.addDelimited(incomingToAddress);
  if ((ssFrom.size() > 0) && (ssTo.size() > 0)) {
    setOutgoingFromAddress(ssFrom.iterator().next());
    setIncomingToAddress(incomingToAddress);
  } else if (ssFrom.size() > 0) {
    setOutgoingFromAddress(ssFrom.iterator().next());
    setIncomingToAddress(outgoingFromAddress);
  } else if (ssTo.size() > 0) {
    setOutgoingFromAddress(ssTo.iterator().next());
    setIncomingToAddress(incomingToAddress);
  }
}
View Full Code Here

Examples of com.esri.gpt.framework.collection.StringSet

    // get action
    HeActionCriteria.HistoryAction action =
      getCriteria().getActionCriteria().getAction();

    StringSet uuids =
      getCriteria().getActionCriteria().getSelectedRecordIdSet();

    String[] aUuids = uuids.toArray(new String[uuids.size()]);

    switch (action) {
      case ViewReport:
        if (aUuids.length == 1) {
          getCriteria().getActionCriteria().setEventUuid(aUuids[0]);
View Full Code Here

Examples of com.esri.gpt.framework.collection.StringSet

* @param context the context associated with the active request
* @param actionCriteria the criteria for the action
* @throws Exception if an exception occurs
*/
private void executeSynchronization(ActionEvent event, RequestContext context, MmdActionCriteria actionCriteria) throws Exception {
  StringSet uuids = actionCriteria.getSelectedRecordIdSet();
  String[] aUuids = uuids.toArray(new String[uuids.size()]);
  HrHarvestRequest hrvFullRequest =
    new HrHarvestRequest(context,aUuids,HjRecord.JobType.Now,new HrCriteria(),new HrResult());
  hrvFullRequest.execute();
  if (hrvFullRequest.getActionResult().getNumberOfRecordsModified() > 0) {
    extractMessageBroker().addSuccessMessage(
View Full Code Here

Examples of com.esri.gpt.framework.collection.StringSet

* @param context the context associated with the active request
* @param actionCriteria the criteria for the action
* @throws Exception if an exception occurs
*/
private void executeCancelSynchronization(ActionEvent event, RequestContext context, MmdActionCriteria actionCriteria) throws Exception {
  StringSet uuids = actionCriteria.getSelectedRecordIdSet();
  String[] aUuids = uuids.toArray(new String[uuids.size()]);
  int canceledCount = 0;
  for (String uuid : aUuids) {
    if (context.getApplicationContext().getHarvestingEngine().cancel(context, uuid)) {
      canceledCount++;
    }
View Full Code Here

Examples of com.esri.gpt.framework.collection.StringSet

* @param context the context associated with the active request
* @param actionCriteria the criteria for the action
* @throws Exception if an exception occurs
*/
private void executeShowHarvested(ActionEvent event, RequestContext context, MmdActionCriteria actionCriteria) throws Exception {
  StringSet uuids = actionCriteria.getSelectedRecordIdSet();
  String[] aUuids = uuids.toArray(new String[uuids.size()]);
  if (aUuids.length>0) {
      getCriteria().getQueryCriteria().reset();
      getCriteria().getQueryCriteria().setSiteUuid(aUuids[0]);
  }
}
View Full Code Here

Examples of com.esri.gpt.framework.collection.StringSet

* @param context the context associated with the active request
* @param actionCriteria the criteria for the action
* @throws Exception if an exception occurs
*/
private void executeFind(ActionEvent event, RequestContext context, MmdActionCriteria actionCriteria) throws Exception {
  StringSet uuids = actionCriteria.getSelectedRecordIdSet();
  String[] aUuids = uuids.toArray(new String[uuids.size()]);
  if (aUuids.length>0) {
      getCriteria().getQueryCriteria().reset();
      getCriteria().getQueryCriteria().setUuid(aUuids[0]);
  }
}
View Full Code Here

Examples of com.esri.gpt.framework.collection.StringSet

    DiscoveryQuery query = this.getDiscoveryQuery();
    String elementSetType = qOptions.getElementSetType();
    if (elementSetType == null) {
     
      boolean isDublinCore = qOptions.isDublinCoreResponse();
      StringSet elementNames = qOptions.getElementNames();
      boolean hasElementNames = (elementNames != null) && (elementNames.size() > 0);
      if (isDublinCore && hasElementNames) {
        AliasedDiscoverables aliased = this.queryables.getAllAliased();
        query.setReturnables(new Discoverables());
        for (String elementName: elementNames) {
          Discoverable discoverable = aliased.get(elementName);
View Full Code Here

Examples of net.sourceforge.chaperon.common.StringSet

    for (State state = first; state!=null; state = state.next)
    {
      //State state = getState(i);
      //System.out.println("\nState "+i+"\n"+state);
      SortedCharSet limits = new SortedCharSet();
      StringSet nonterminals = new StringSet();
      PatternSet gotoPattern = new PatternSet();

      for (Item item = state.first; item!=null; item = item.next)
      {
        if (item.position==Item.SHIFT)
        {
          if (item.pattern.getSymbol()!=null)
            nonterminals.addString(item.pattern.getSymbol());

          limits.addChar(item.pattern.getLimits());
        }
        else if (item.position==Item.GOTO)
          gotoPattern.addPattern(item.pattern);

        limits.addChar(item.lookahead.getLimits());
      }

//      System.out.println("limits="+limits);
//      System.out.println("nonterminals="+nonterminals);
//      System.out.println("gotoPattern="+gotoPattern);
      // for all other characters from the begin
      if ((limits.getCharCount()>=1) && (limits.getChar(0)>'\u0000'))
      {
        addShiftAction(state, '\u0000', (char)(limits.getChar(0)-1));
        addReduceAction(state, '\u0000', (char)(limits.getChar(0)-1));
      }

      // for each character
      for (int j = 0; j<limits.getCharCount(); j++)
      {
        if ((j>0) && ((limits.getChar(j)-limits.getChar(j-1))>1))
        {
          addShiftAction(state, (char)(limits.getChar(j-1)+1), (char)(limits.getChar(j)-1));
          addReduceAction(state, (char)(limits.getChar(j-1)+1), (char)(limits.getChar(j)-1));
        }

        addShiftAction(state, limits.getChar(j), limits.getChar(j));
        addReduceAction(state, limits.getChar(j), limits.getChar(j));
      }

      // for all other characters to the end
      if (limits.getCharCount()>=1)
      {
        addShiftAction(state, (char)(limits.getChar(limits.getCharCount()-1)+1), '\u4000');
        addReduceAction(state, (char)(limits.getChar(limits.getCharCount()-1)+1), '\u4000');
      }

      // for universal characters
      if (limits.getCharCount()==0)
      {
        addShiftAction(state, '\u0000', '\u4000');
        addReduceAction(state, '\u0000', '\u4000');
      }

      // for each nonterminal
      for (int j = 0; j<nonterminals.getStringCount(); j++)
        addGotoAction(state, nonterminals.getString(j));

      for (PatternIterator pattern = gotoPattern.getPattern(); pattern.hasNext();)
        addGotoAction(state, pattern.next());

      addReduceAction(state);
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.builder.StringSet

      }
      return false;
    }

    if (simpleStrings.elementSize > 20) {
      simpleStrings = new StringSet(3);
    } else {
      simpleStrings.clear();
    }
    if (qualifiedStrings.elementSize > 20) {
      qualifiedStrings = new StringSet(3);
    } else {
      qualifiedStrings.clear();
    }

    if ((newBuildConfig.getChanged() & PROJECTSOURCEFILES_CHANGED) == 0) {
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.