Examples of containsKey()


Examples of org.waveprotocol.wave.model.document.operation.impl.AnnotationMap.containsKey()

              if (key.equals(o.key)) {
                valueSet.addAll(o.valueAlternatives);
              }
            }
            AnnotationMap inheritedAnnotations = a.inheritedAnnotations();
            if (inheritedAnnotations.containsKey(key)) {
              valueSet.add(inheritedAnnotations.get(key));
            } else {
              valueSet.add(null);
            }
            ArrayList<String> newValues = new ArrayList<String>(valueSet);
View Full Code Here

Examples of org.yinwang.yin.Scope.containsKey()

                Node nameNode = elements.get(0);
                if (!(nameNode instanceof Name)) {
                    throw new ParserException("expect a name, but got: " + nameNode.toString(), nameNode);
                }
                String id = ((Name) nameNode).id;
                if (properties.containsKey(id)) {
                    throw new ParserException("duplicated name: " + nameNode.toString(), nameNode);
                }

                Node typeNode = elements.get(1);
                if (!(typeNode instanceof Name)) {
View Full Code Here

Examples of org.zanata.rest.dto.stats.contribution.LocaleStatistics.containsKey()

            int count = ((BigDecimal) entry[0]).intValue();
            ContentState state = ContentState.values()[(int) entry[1]];
            LocaleId localeId = new LocaleId(entry[2].toString());

            BaseTranslationCount stats;
            if (localeStatistics.containsKey(localeId)) {
                stats = localeStatistics.get(localeId);
            } else {
                stats = new BaseTranslationCount(0,0,0,0,0);
            }
            stats.set(state, count);
View Full Code Here

Examples of pivot.web.QueryDictionary.containsKey()

            assertTrue(s, validKeys.remove(s));
        }

        assertEquals(0, validKeys.size());

        assertTrue(dict.containsKey("key2"));
        assertFalse(dict.isEmpty());

        dict.clear();
        assertTrue(dict.isEmpty());
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.model.dict.ProcessDictionary.containsKey()

    }

    @Override
    public boolean hasFullyLocalizedMessage(String key, Locale locale) {
        ProcessDictionary dictionary = fetchSpecificDictionary(fullyLocalizedLanguageCode(locale));
        return dictionary != null && dictionary.containsKey(key);
    }

    @Override
    public boolean hasLocalizedMessage(String key, Locale locale) {
        ProcessDictionary dictionary = fetchSpecificDictionary(localizedLanguageCode(locale));
View Full Code Here

Examples of railo.runtime.Component.containsKey()

    PageContextImpl pc=createPageContext(requestURI,id,functionName,arguments,cfcPeristent);
   
    try {
      ThreadLocalPageContext.register(pc);
      Component cfc=getCFC(pc,requestURI);
      if(cfc.containsKey(functionName)){
        pc.execute(requestURI, true,false);
        // Result
        return pc.variablesScope().get(AMF_FORWARD,null);
      }
    }
View Full Code Here

Examples of railo.runtime.exp.CatchBlock.containsKey()

  @Override
  public CatchBlock getCatchBlock(Config config) {
    CatchBlock cb=rootCause.getCatchBlock(config);
    Collection cause = (Collection) Duplicator.duplicate(cb,false);
    //rtn.setEL("message", getMessage());
    if(!cb.containsKey(KeyConstants._detail))cb.setEL(KeyConstants._detail, "Exception throwed while invoking function ["+eventName+"] from "+Constants.APP_CFC);
    cb.setEL(ROOT_CAUSE, cause);
    cb.setEL(CAUSE, cause);
    //cb.setEL("stacktrace", getStackTraceAsString());
    //rtn.setEL("tagcontext", new ArrayImpl());
    //rtn.setEL("type", getTypeAsString());
View Full Code Here

Examples of railo.runtime.type.Struct.containsKey()

      else throw ExceptionUtil.createException(data,cfc,"invalid value for attribute [params] of tag [property]",null);
      className=className.trim().toLowerCase();
     
      // special classes
      if("foreign".equals(className)){
        if(!sct.containsKey(PROPERTY)) sct.setEL(PROPERTY, toString(cfc,prop,meta, PROPERTY,true,data));
       
        if(sct.containsKey(PROPERTY)){
          String p = CommonUtil.toString(sct.get(PROPERTY),null);
          if(!Util.isEmpty(p))foreignCFC.append(p);
        }
View Full Code Here

Examples of railo.runtime.type.cfc.ComponentAccess.containsKey()

  }

  @Override
  public void onApplicationEnd(CFMLFactory factory, String applicationName) throws PageException {
    ComponentAccess app = apps.get(applicationName);
    if(app==null || !app.containsKey(ON_APPLICATION_END)) return;
   
    PageContextImpl pc=(PageContextImpl) ThreadLocalPageContext.get();
    boolean createPc=pc==null;
    try {
      if(createPc)pc =  createPageContext(factory,app,applicationName,null,ON_APPLICATION_END);
View Full Code Here

Examples of sample.util.SimpleCommandLineParser.containsKey()

      IOException, ServiceException, InterruptedException {

    SimpleCommandLineParser parser = new SimpleCommandLineParser(args);
    String user = parser.getValue("username", "user", "u");
    String password = parser.getValue("password", "pass", "p");
    boolean help = parser.containsKey("help", "h");

    if (help || (user == null || password == null)) {
      printMessage(USAGE_MESSAGE);
      System.exit(1);
    }
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.