Package org.openbp.common.io.xml

Examples of org.openbp.common.io.xml.XMLDriver.deserializeResource()


    for (int i = 0; i < resources.length; i++)
    {
      PluginProfile profile = null;
      try
      {
        profile = (PluginProfile) xmlDriver.deserializeResource(PluginProfile.class, resources[i]);
      }
      catch (XMLDriverException e)
      {
        LogUtil.error(getClass(), "Error reading plugin profile $0.", resources[i].getDescription(), e);
        continue;
View Full Code Here


    for (int i = 0; i < resources.length; i++)
    {
      Generator generator = null;
      try
      {
        generator = (Generator) xmlDriver.deserializeResource(Generator.class, resources[i]);
      }
      catch (XMLDriverException e)
      {
        ExceptionUtil.printTrace(e);
        continue;
View Full Code Here

    for (int i = 0; i < resources.length; i++)
    {
      // Deserialize item descriptor file
      try
      {
        itd = (ItemTypeDescriptor) driver.deserializeResource(ItemTypeDescriptor.class, resources[i]);
      }
      catch (XMLDriverException pe)
      {
        throw new ModelException("Initialization", "Error reading component type descriptor resource '" + resources[i].getDescription()
          + "': " + pe.getMessage());
View Full Code Here

      Skin skin = null;

      // Load the descriptor
      try
      {
        skin = (Skin) xmlDriver.deserializeResource(Skin.class, resources[i]);
      }
      catch (XMLDriverException e)
      {
        ExceptionUtil.printTrace(e);
        continue;
View Full Code Here

      }

      // Load the descriptor
      try
      {
        descriptor = (ObjectDescriptor) xmlDriver.deserializeResource(ObjectDescriptor.class, resources[i]);
      }
      catch (XMLDriverException e)
      {
        LogUtil.error(getClass(), "Error loading custom object descriptor $0.", resourceName, e);
        continue;
View Full Code Here

    // Deserialize model descriptor file (model.xml)
    Model model = null;
    try
    {
      model = (Model) driver.deserializeResource(ModelImpl.class, modelDescriptorResource);
    }
    catch (XMLDriverException pe)
    {
      getMsgContainer().addMsg(model, "Error reading model descriptor file $0 in model manager $1.", new Object[]
      {
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

        ItemContainer container = (ItemContainer) driver.deserializeResource(ItemContainer.class, itemDescriptorResource);
        item = container.getItem();
      }
      else
      {
        item = (Item) driver.deserializeResource(itd.getItemClass(), itemDescriptorResource);
      }
    }
    catch (XMLDriverException pe)
    {
      getMsgContainer().addMsg(model, "Error reading component descriptor file $0 in model manager $1.", new Object[]
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.