Examples of containsKey()


Examples of com.iisigroup.cap.response.AjaxFormResult.containsKey()

    }
    if (aKeys.length > 0 && !CapString.isEmpty(aKeys[0])) {
      Class[] paramTypes = { IRequest.class };
      IResult rtn = null;
      for (String key : aKeys) {
        if (mresult.containsKey(key)) {
          continue;
        }
        Method method = ReflectionUtils.findMethod(this.getClass(),
            key, paramTypes);
        if (method != null) {
View Full Code Here

Examples of com.jbidwatcher.util.Record.containsKey()

  private String findKeys(PreparedStatement ps) throws SQLException {
    ResultSet rs = ps.getGeneratedKeys();
    if(rs != null) {
      Record insertMap = getFirstResult(rs);
      if (insertMap.containsKey("1")) {
        return insertMap.get("1");
      } else if(insertMap.containsKey("generated_key")) {
        return insertMap.get("generated_key");
      } else if(insertMap.values().size() == 1) {
        return insertMap.values().toArray()[0].toString();
View Full Code Here

Examples of com.linkedin.data.DataMap.containsKey()

  private static void generateClassAnnotations(JDefinedClass clazz, RecordTemplate schema)
  {
    if(schema.data().containsKey("annotations"))
    {
      DataMap annotations = schema.data().getDataMap("annotations");
      if(annotations.containsKey(ResourceModelEncoder.DEPRECATED_ANNOTATION_NAME))
      {
        clazz.annotate(Deprecated.class);

        DataMap deprecated = annotations.getDataMap(ResourceModelEncoder.DEPRECATED_ANNOTATION_NAME);
        if(deprecated.containsKey(ResourceModelEncoder.DEPRECATED_ANNOTATION_DOC_FIELD))
View Full Code Here

Examples of com.linkedin.restli.internal.common.PathSegment.MapMap.containsKey()

          throw new PathSegmentSyntaxException("Multiple values of complex query parameter are not supported");

        if(parameterName.charAt(parameterName.length()-1) == ']')
          throw new PathSegmentSyntaxException("Multiple values of indexed query parameter are not supported");

        if(dataMap.containsKey(parameterName))
          throw new PathSegmentSyntaxException("Conflicting references to key " + parameterName + "[0]");

        else
        {
          dataMap.put(parameterName, new DataList(valueList));
View Full Code Here

Examples of com.mongodb.BasicDBObject.containsKey()

        for (Object jsonObj: jsonList) {
          BasicDBObject json = (BasicDBObject)jsonObj;
          try {
            String key = docInfo.getKey();
            // (allow user to not prepend array: if they don't want to)
            if ((1 == json.size()) && json.containsKey((Object)"array")) {
              if (!key.startsWith("array:") &&
                  !key.startsWith(":array") && !key.startsWith("$:array") &&
                  !key.startsWith("::") && !key.startsWith("$::"))
              {
                if (key.startsWith(":")) { // jpath
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDMap.containsKey()

                        Vector3 posMax;
                        Vector3 posMin;

                        // If PositionDomain is not specified, the default is from -0.5 to 0.5
                        if (subMeshMap.containsKey("PositionDomain"))
                        {
                            posMax = ((OSDMap)subMeshMap.get("PositionDomain")).get("Max").asVector3();
                            posMin = ((OSDMap)subMeshMap.get("PositionDomain")).get("Min").asVector3();
                        }
                        else
View Full Code Here

Examples of com.qspin.qtaste.config.GUIConfiguration.containsKey()

                  // update the screen with the doc of the selected test script
                  setTestCaseDoc(script.getTestcaseDoc(), false);
                // Get the user preferences to display the testcase tab
                GUIConfiguration guiConfiguration = GUIConfiguration.getInstance();
                String testCaseTabOnSelect = "none"; // default
                if (guiConfiguration.containsKey(TEST_CASE_TAB_ON_SELECT_PROPERTY)) {
                    testCaseTabOnSelect = guiConfiguration.getString(TEST_CASE_TAB_ON_SELECT_PROPERTY).toLowerCase();
                } else {
                    guiConfiguration.setProperty(TEST_CASE_TAB_ON_SELECT_PROPERTY, testCaseTabOnSelect);
                    try {
                        guiConfiguration.save();
View Full Code Here

Examples of com.qspin.qtaste.config.TestBedConfiguration.containsKey()

        this.timeout = timeout;
        this.extraDetails = "";

        //TODO: change this temporary hack by making a SmartSocketsCache ?
        TestBedConfiguration config = TestBedConfiguration.getInstance();
        if (config == null || !config.containsKey("probe_manager.probe")) {
            throw new RuntimeException("Error: Probe is not configured in testbed!");
        }
    }

    protected boolean validate() {
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.context.ProducedTypeCache.containsKey()

                !hasUnderlyingType() &&
                collectVarianceOverrides().isEmpty() &&
                ProducedTypeCache.isEnabled();
        ProducedTypeCache cache = dec.getUnit().getCache();
        if (canCache &&
                cache.containsKey(this, dec)) {
            return cache.get(this, dec);
        }
        SupertypeCheck check =
                checkSupertype(getDeclaration(), dec);
        ProducedType superType;
View Full Code Here

Examples of com.sandwich.koan.cmdline.CommandLineArgumentBuilder.containsKey()

public class AppLauncher {

  public static void main(final String... args) throws Throwable {
    Map<ArgumentType, CommandLineArgument> argsMap = new CommandLineArgumentBuilder(args);
    if(argsMap.containsKey(ArgumentType.RUN_KOANS)){
      new Thread(new Runnable(){
        public void run() {
          do{
            try {
              char c = (char)System.in.read();
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.