Package org.openbp.core.model

Examples of org.openbp.core.model.ModelQualifier


  private Item registerDbModelItem(DbModelItem dbModelItem, Model owningModel)
  {
    Item item = dbModelItemToItem(dbModelItem);
    if (owningModel == null)
    {
      owningModel = internalGetModelByQualifier(new ModelQualifier(dbModelItem.getModelName(), null, null));
    }

    // Register the model
    try
    {
View Full Code Here


    query.eq("modelName", modelName);
    query.eq("itemName", itemName);
    query.eq("itemType", itemType);
    Iterator it = pc.runQuery(query);
    if (! it.hasNext())
      throw new ModelException("DatabaseOperation", "Component '" + new ModelQualifier(modelName, itemName, itemType).toUntypedString()
        + "' not found. Maybe the component has been deleted from the database.");
    DbModelItem dbModelItem = (DbModelItem) it.next();
    return dbModelItem;
  }
View Full Code Here

   * Gets the reference to the object.
   * @return The qualified name
   */
  public ModelQualifier getQualifier()
  {
    return new ModelQualifier(parentDataType, getName());
  }
View Full Code Here

   * Gets the reference to the object.
   * @return The qualified name
   */
  public ModelQualifier getQualifier()
  {
    return new ModelQualifier(getProcess(), getName());
  }
View Full Code Here

   * @param engine Engine that shall be used to execute the context
   * @return The socket
   */
  public NodeSocket determineInitialPosition(TokenContext context, String ref, Engine engine)
  {
    ModelQualifier processQD = new ModelQualifier(ref);
    String processModelName = processQD.getModel();
    String processName = processQD.getItem();
    String entryName = processQD.getObjectPath();

    // Model that contains the process to execute
    Model processModel = null;
    if (processModelName != null)
    {
View Full Code Here

   * Gets the reference to the object.
   * @return The qualified name
   */
  public ModelQualifier getQualifier()
  {
    return new ModelQualifier(getProcess(), getName());
  }
View Full Code Here

   * Gets the reference to the object.
   * @return The qualified name
   */
  public ModelQualifier getQualifier()
  {
    return new ModelQualifier(getProcess(), getName());
  }
View Full Code Here

    public void resolveNodeSocket(ModelMgr modelMgr)
    {
      if (tempNodeSocketQualifier != null)
      {
        ModelQualifier qualifier = new ModelQualifier(tempNodeSocketQualifier);
        qualifier.setItemType(ItemTypes.PROCESS);
        nodeSocket = EngineUtil.determineNodeSocketFromQualifier(qualifier, modelMgr);
        tempNodeSocketQualifier = null;
      }
    }
View Full Code Here

    {
      // Do the default write.
      out.defaultWriteObject();

      // Write out the node socket's information.
      ModelQualifier qualifier = nodeSocket.getQualifier();
      out.writeObject(qualifier.toString());
    }
View Full Code Here

      Object o = oe.getObject();

      if (o instanceof ModelQualifier)
      {
        // Get the item specified by the model qualifier
        ModelQualifier qualifier = (ModelQualifier) o;
        try
        {
          o = ModelConnector.getInstance().getItemByQualifier(qualifier, true);
        }
        catch (ModelException sie)
View Full Code Here

TOP

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

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.