Examples of ValueObject


Examples of org.dozer.vo.ValueObject

  }

  @Test
  public void testCopyByReferenceFromMap() {
    HashMap<String, ValueObject> hashMap = newInstance(HashMap.class);
    hashMap.put("1", new ValueObject());

    ValueObject destination = newInstance(ValueObject.class);
    mapper.map(hashMap, destination);

    assertNotNull(destination);
    assertNotNull(destination.getValue());
  }
View Full Code Here

Examples of org.dozer.vo.ValueObject

  }

  @Test
  public void testCopyByReferenceFromMap() {
    HashMap<String, ValueObject> hashMap = newInstance(HashMap.class);
    hashMap.put("1", new ValueObject());

    ValueObject destination = newInstance(ValueObject.class);
    mapper.map(hashMap, destination);

    assertNotNull(destination);
    assertNotNull(destination.getValue());
  }
View Full Code Here

Examples of org.drools.process.core.ValueObject

   
    public Object end(final String uri,
                      final String localName,
                      final ExtensibleXmlParser parser) throws SAXException {
        final Element element = parser.endElementBuilder();
        ValueObject valueObject = (ValueObject) parser.getParent();
        String text = ((Text)element.getChildNodes().item( 0 )).getWholeText();
        if (text != null) {
            text.trim();
            if ("".equals(text)) {
                text = null;
            }
        }
        Object value = restoreValue(text, valueObject.getType(), parser);
        valueObject.setValue(value);
        return null;
    }
View Full Code Here

Examples of org.drools.process.core.ValueObject

   
    public Object end(final String uri,
                      final String localName,
                      final ExtensibleXmlParser parser) throws SAXException {
        final Element element = parser.endElementBuilder();
        ValueObject valueObject = (ValueObject) parser.getParent();
        String text = ((Text)element.getChildNodes().item( 0 )).getWholeText();
        if (text != null) {
            text.trim();
            if ("".equals(text)) {
                text = null;
            }
        }
        Object value = restoreValue(text, valueObject.getType(), parser);
        valueObject.setValue(value);
        return null;
    }
View Full Code Here

Examples of org.jboss.cache.aop.test.ValueObject

    */
   public void testRecuriveMapKey()
   {
      try {
         IdObject id = new IdObject("1");
         ValueObject value = new ValueObject(id, 3.0f);
         cachedMap.put(id, value);
      } // try
      catch (Exception x) {
         x.printStackTrace();
         fail("testFailed");
View Full Code Here

Examples of org.jbpm.process.core.ValueObject

   
    public Object end(final String uri,
                      final String localName,
                      final ExtensibleXmlParser parser) throws SAXException {
        final Element element = parser.endElementBuilder();
        ValueObject valueObject = (ValueObject) parser.getParent();
        String text = ((Text)element.getChildNodes().item( 0 )).getWholeText();
        if (text != null) {
            text.trim();
            if ("".equals(text)) {
                text = null;
            }
        }
        Object value = restoreValue(text, valueObject.getType(), parser);
        valueObject.setValue(value);
        return null;
    }
View Full Code Here

Examples of org.openswing.swing.message.receive.java.ValueObject

      HttpServletRequest request,
      HttpServletResponse response,
      HttpSession userSession,
      ServletContext context) {
    try {
      ValueObject oldVO = ((ValueObject[])inputPar)[0];
      ValueObject newVO = ((ValueObject[])inputPar)[1];

      // retrieve internationalization settings (Resources object)...
      ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
      String serverLanguageId = ((JAIOUserSessionParameters)userSessionPars).getServerLanguageId();
      String t1 = factory.getResources(serverLanguageId).getResource("there is already another people with the same first and last name.");
View Full Code Here

Examples of thread.caches.ValueObject

        Random random = new Random();
        random.nextInt(100);
        for (int i = 0; i < 100; i++) {
            KeyObject keyObject = new KeyObject(i + "");

            ValueObject valueObject = new ValueObject(keyObject, i + " data ");
            storage.add(valueObject);
        }

    }
View Full Code Here

Examples of thread.caches.ValueObject

        Random random = new Random();
        random.nextInt(100);
        for (int i = 0; i < 100; i++) {
            KeyObject keyObject = new KeyObject(i + "");

            ValueObject valueObject = new ValueObject(keyObject, i + " data ");
            storage.add(valueObject);
        }
        return storage;
    }
View Full Code Here

Examples of thread.caches.ValueObject

        Random random = new Random();
        random.nextInt(100);
        for (int i = 0; i < 100; i++) {
            KeyObject keyObject = new KeyObject(i + "");

            ValueObject valueObject = new ValueObject(keyObject, i + " data ");
            storage.add(valueObject);
        }

    }
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.