Package org.openbp.core.model

Examples of org.openbp.core.model.ModelException


   * @param model Model to add
   * @throws OpenBPException On error
   */
  protected void addModelToStore(Model model)
  {
    throw new ModelException("ClassPathOperation", "Class path model manager does not support modfying operations.");
  }
View Full Code Here


   * @param model Model to save
   * @throws OpenBPException On error
   */
  protected void saveModelToStore(Model model)
  {
    throw new ModelException("ClassPathOperation", "Class path model manager does not support modfying operations.");
  }
View Full Code Here

   * @param item Item to add
   * @throws OpenBPException On error
   */
  protected void addItemToStore(Item item)
  {
    throw new ModelException("ClassPathOperation", "Class path model manager does not support modfying operations.");
  }
View Full Code Here

   * @param item Item to save
   * @throws OpenBPException On error
   */
  protected void saveItemToStore(Item item)
  {
    throw new ModelException("ClassPathOperation", "Class path model manager does not support modfying operations.");
  }
View Full Code Here

   * @param model Model to remove
   * @throws OpenBPException On error
   */
  protected void removeModelFromStore(Model model)
  {
    throw new ModelException("ClassPathOperation", "Class path model manager does not support modfying operations.");
  }
View Full Code Here

   * @param item Item to remove
   * @throws OpenBPException On error
   */
  protected void removeItemFromStore(Item item)
  {
    throw new ModelException("ClassPathOperation", "Class path model manager does not support modfying operations.");
  }
View Full Code Here

      {
        url = res.getURL();
      }
      catch (IOException e1)
      {
        throw new ModelException("ClassPathOperation", "Error accessing model URL '" + res.getDescription() + "'.");
      }
      String path = url.toString();
      int index = path.lastIndexOf(StringUtil.FOLDER_SEP_CHAR);
      if (index > 0)
      {
View Full Code Here

    {
      url = modelDescriptorResource.getURL();
    }
    catch (IOException e1)
    {
      throw new ModelException("ClassPathOperation", "Error accessing model URL '" + modelDescriptorResource.getDescription() + "'.");
    }
    String modelPath = url.toString();
    int index = modelPath.lastIndexOf(StringUtil.FOLDER_SEP_CHAR);
    if (index > 0)
    {
View Full Code Here

    {
      String itemType = itemQualifier.getItemType();
      ItemTypeDescriptor itd = getItemTypeDescriptor(itemType);
      if (itd == null)
      {
        throw new ModelException("UnknownItemType", "Unknown item type '" + itemType + "'.");
      }

      return readItemFromStore(model, itemQualifier.getItem(), itd);
    }
    return null;
View Full Code Here

      UrlResource itemDescriptorResource = new UrlResource(fileName);
      return readItemDescriptor(model, itd, itemDescriptorResource);
    }
    catch (MalformedURLException e)
    {
      throw new ModelException("ClassPathOperation", "Error accessing item URL '" + fileName + "'.");
    }
  }
View Full Code Here

TOP

Related Classes of org.openbp.core.model.ModelException

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.