Package org.openbp.core.model.item

Examples of org.openbp.core.model.item.ItemContainer


    ItemTypeDescriptor itd = getItemTypeDescriptor(item.getItemType());
    if (itd.isContainedItem())
    {
      // Item is wrapped by a container class in its xml file
      obj = new ItemContainer(item);
    }

    // Dirty hack:
    // Castor doesn't support CDATA sections. So we write a dummy string and replace that
    // dummy string for the actual CDATA-escaped string when writing the xml to the file.
View Full Code Here


    try
    {
      if (itd.isContainedItem())
      {
        // Item is wrapped by a container class in its xml file
        ItemContainer container = (ItemContainer) XMLDriver.getInstance().deserializeStream(ItemContainer.class, in);
        item = container.getItem();
      }
      else
      {
        item = (Item) XMLDriver.getInstance().deserializeStream(itd.getItemClass(), in);
      }
View Full Code Here

    try
    {
      if (itd.isContainedItem())
      {
        // Item is wrapped by a container class in its xml file
        ItemContainer container = (ItemContainer) driver.deserializeResource(ItemContainer.class, itemDescriptorResource);
        item = container.getItem();
      }
      else
      {
        item = (Item) driver.deserializeResource(itd.getItemClass(), itemDescriptorResource);
      }
View Full Code Here

TOP

Related Classes of org.openbp.core.model.item.ItemContainer

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.