Package org.jboss.system.server.profileservice.persistence.xml

Examples of org.jboss.system.server.profileservice.persistence.xml.PersistedPropertiesValue


     
      PersistedSimpleValue psv = (PersistedSimpleValue) pcv.getValues().get(0);
      assertEquals("domain", psv.getName());
      assertEquals("org.jboss", psv.getValue());
     
      PersistedPropertiesValue ppv = (PersistedPropertiesValue) pcv.getValues().get(1);
      assertEquals("keyPropertyList", ppv.getName());
      assertEquals(2, ppv.getEntries().size());
     
      // The other object name
      PersistedProperty po = restoredElement.getProperties().get(0);
      assertNotNull(po);
      assertTrue(po.getValue() instanceof PersistedSimpleValue);
View Full Code Here


    * @param the persisted properties
    * @return the persistence properties xml meta data
    */
   protected PersistedValue createPropertiesValue(PropertiesMetaValue value)
   {
      PersistedPropertiesValue properties = new PersistedPropertiesValue();
      List<PersistedPair> pairs = properties.getEntries();
      if(pairs == null)
      {
         pairs = new ArrayList<PersistedPair>();
         properties.setEntries(pairs);
      }
      for(Object key : value.keySet())
      {
         Object kvalue = value.get(key);
         PersistedPair pair = new PersistedPair(key.toString(), kvalue.toString());
View Full Code Here

      {
         return new PersistedArrayValue();
      }
      else if(metaType.isProperties())
      {
         return new PersistedPropertiesValue();
      }
      else
      {
         throw new IllegalStateException("unknown metaType");
      }
View Full Code Here

TOP

Related Classes of org.jboss.system.server.profileservice.persistence.xml.PersistedPropertiesValue

Copyright © 2018 www.massapicom. 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.