Examples of containsKey()


Examples of org.jboss.errai.marshalling.client.api.json.EJObject.containsKey()

    public String determineTypeFor(String formatType, Object o) {
      EJValue jsonValue = (EJValue) o;

      if (jsonValue.isObject() != null) {
        EJObject jsonObject = jsonValue.isObject();
        if (jsonObject.containsKey(SerializationParts.ENCODED_TYPE)) {
          return jsonObject.get(SerializationParts.ENCODED_TYPE).isString().stringValue();
        }
        else {
          return Map.class.getName();
        }
View Full Code Here

Examples of org.jboss.forge.addon.configuration.Configuration.containsKey()

    if (isInstalled()) {
      final ConfigurationFacet configFacet = project.getFacet(ConfigurationFacet.class);
      final Configuration config = configFacet.getConfiguration();

      for (final ProjectProperty property : Arrays.asList(ProjectProperty.values())) {
        if (config.containsKey(getProjectAttribute(property))) {
          config.clearProperty(getProjectAttribute(property));
        }
      }

      return true;
View Full Code Here

Examples of org.jboss.forge.env.Configuration.containsKey()

   }

   public String remoteRepository()
   {
      Configuration user = userConfig();
      if (user.containsKey(REPOSITORY_KEY))
      {
         return user.getString(REPOSITORY_KEY);
      }
      return defaultRemoteRepository();
   }
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.ResourceManagersMetaData.containsKey()

      JBoss50MetaData merged = new JBoss50MetaData();
      merged.merge(override, original);
      rms = merged.getResourceManagers();
      assertNotNull(rms);
      assertEquals(4, rms.size());System.out.println("rms: " + rms.keySet());
      assertTrue(rms.containsKey("original1"));
      assertTrue(rms.containsKey("original2"));
      assertTrue(rms.containsKey("override1"));
      assertTrue(rms.containsKey("override2"));
   }
}
View Full Code Here

Examples of org.jboss.metadata.javaee.spec.MessageDestinationReferencesMetaData.containsKey()

                     if(mref.getType() != null)
                        ref.setType(mref.getType());
                     mref.setMappedName(ref.getMappedName());
                  }
               }
               else if(msgRefs.containsKey(resRefName))
               {
                  MessageDestinationReferenceMetaData mref = msgRefs.get(resRefName);
                  mref.setMappedName(ref.getMappedName());                 
               }
               else
View Full Code Here

Examples of org.jboss.metatype.api.types.CompositeMetaType.containsKey()

   private void validateKey(String key)
   {
      if (key == null || key.length() == 0)
         throw new IllegalArgumentException("null or empty key");
      CompositeMetaType metaType = getMetaType();
      if (metaType.containsKey(key) == false)
         throw new IllegalArgumentException("no such item name " + key + " for composite type " + metaType);
   }

   /**
    * Construct Composite Value
View Full Code Here

Examples of org.jboss.metatype.api.values.CollectionValueSupport.containsKey()

         return operationResult;
      }
      else if (val instanceof CompositeValueSupport)
      {
         CompositeValueSupport valueSupport = (CompositeValueSupport) val;
         if (valueSupport.containsKey("cause"))
         {
            CompositeValueSupport cause = (CompositeValueSupport) valueSupport.get("cause");
            SimpleValueSupport message = (SimpleValueSupport) cause.get("message");
            Exception exception = new Exception(message.toString());
            throw exception;
View Full Code Here

Examples of org.jboss.metatype.api.values.CompositeValue.containsKey()

      CompositeValue compVal = (CompositeValue) metaVal;
      if (expectedStacks != null)
      {
         for (String stack : expectedStacks)
         {
            assertTrue("ChannelFactory has stack " + stack, compVal.containsKey(stack));
         }
      }
      for (String stack : compVal.getMetaType().keySet())
      {
         validateProtocolStackValue(stack, compVal.get(stack));
View Full Code Here

Examples of org.jboss.metatype.api.values.CompositeValueSupport.containsKey()

         return operationResult;
      }
      else if (val instanceof CompositeValueSupport)
      {
         CompositeValueSupport valueSupport = (CompositeValueSupport) val;
         if (valueSupport.containsKey("cause"))
         {
            CompositeValueSupport cause = (CompositeValueSupport) valueSupport.get("cause");
            SimpleValueSupport message = (SimpleValueSupport) cause.get("message");
            Exception exception = new Exception(message.toString());
            throw exception;
View Full Code Here

Examples of org.jboss.metatype.api.values.TableValueSupport.containsKey()

   {
      TableMetaType tableType = initTableType();

      TableValueSupport data = new TableValueSupport(tableType);

      assertFalse("Didn't expect containsKey null", data.containsKey(null));

      MetaValue[] index = new MetaValue[] { initStringValue1(), initInteger2() };
      assertFalse("Didn't expect containsKey on empty data", data.containsKey(index));

      CompositeValue compData = initCompositeValue2(data);
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.