Пример #1
0
  public static ElementInMove_c resolveInstance(
      ModelRoot modelRoot,
      java.util.UUID p_m_elementid,
      java.util.UUID p_m_diagramid,
      float p_m_startingx,
      float p_m_startingy) {
    InstanceList instances = modelRoot.getInstanceList(ElementInMove_c.class);
    ElementInMove_c source = null;
    synchronized (instances) {
      Object[] key = {p_m_elementid, p_m_diagramid};
      source = (ElementInMove_c) instances.get(key);
      if (source != null && !modelRoot.isCompareRoot()) {
        source.convertFromProxy();
        source.batchUnrelate();
        // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
        source.m_elementid = IdAssigner.preprocessUUID(p_m_elementid);
        // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
        source.m_diagramid = IdAssigner.preprocessUUID(p_m_diagramid);
        source.m_startingx = p_m_startingx;
        source.m_startingy = p_m_startingy;

        return source;
      }
    }
    // there is no instance matching the id
    ElementInMove_c new_inst =
        new ElementInMove_c(modelRoot, p_m_elementid, p_m_diagramid, p_m_startingx, p_m_startingy);
    return new_inst;
  }
 public static BridgeInvocation_c createProxy(
     ModelRoot modelRoot,
     java.util.UUID p_m_statement_id,
     java.util.UUID p_m_brg_id,
     int p_m_bridgenamelinenumber,
     int p_m_bridgenamecolumn,
     int p_m_externalentitykeyletterslinenumber,
     int p_m_externalentitykeyletterscolumn,
     String p_contentPath,
     IPath p_localPath) {
   ModelRoot resolvedModelRoot = ModelRoot.findModelRoot(modelRoot, p_contentPath, p_localPath);
   // if a model root was not resolved it is most likely
   // due to a missing file of the proxy, defualt back to
   // the original model root
   if (resolvedModelRoot != null) modelRoot = resolvedModelRoot;
   InstanceList instances = modelRoot.getInstanceList(BridgeInvocation_c.class);
   BridgeInvocation_c new_inst = null;
   synchronized (instances) {
     Object[] key = {p_m_statement_id};
     new_inst = (BridgeInvocation_c) instances.get(key);
   }
   String contentPath = PersistenceUtil.resolveRelativePath(p_localPath, new Path(p_contentPath));
   if (modelRoot.isNewCompareRoot()) {
     // for comparisons we do not want to change
     // the content path
     contentPath = p_contentPath;
   }
   if (new_inst != null && !modelRoot.isCompareRoot()) {
     PersistableModelComponent pmc = new_inst.getPersistableComponent();
     if (pmc == null) {
       // dangling reference, redo this instance
       new_inst.batchUnrelate();
       // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
       new_inst.m_statement_id = IdAssigner.preprocessUUID(p_m_statement_id);
       // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
       new_inst.m_brg_id = IdAssigner.preprocessUUID(p_m_brg_id);
       new_inst.m_bridgenamelinenumber = p_m_bridgenamelinenumber;
       new_inst.m_bridgenamecolumn = p_m_bridgenamecolumn;
       new_inst.m_externalentitykeyletterslinenumber = p_m_externalentitykeyletterslinenumber;
       new_inst.m_externalentitykeyletterscolumn = p_m_externalentitykeyletterscolumn;
     }
   }
   if (new_inst == null) {
     // there is no instance matching the id, create a proxy
     // if the resource doesn't exist then this will be a dangling reference
     new_inst =
         new BridgeInvocation_c(
             modelRoot,
             p_m_statement_id,
             p_m_brg_id,
             p_m_bridgenamelinenumber,
             p_m_bridgenamecolumn,
             p_m_externalentitykeyletterslinenumber,
             p_m_externalentitykeyletterscolumn);
     new_inst.m_contentPath = contentPath;
   }
   return new_inst;
 }
  // Public Constructors
  public TransientValueReference_c(
      ModelRoot modelRoot, java.util.UUID p_m_value_id, java.util.UUID p_m_var_id) {
    super(modelRoot);
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_value_id = IdAssigner.preprocessUUID(p_m_value_id);
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_var_id = IdAssigner.preprocessUUID(p_m_var_id);

    Object[] key = {m_value_id};
    addInstanceToMap(key);
  }
Пример #4
0
  // Public Constructors
  public DataTypeInPackage_c(
      ModelRoot modelRoot, java.util.UUID p_m_package_id, java.util.UUID p_m_dt_id) {
    super(modelRoot);
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_package_id = IdAssigner.preprocessUUID(p_m_package_id);
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_dt_id = IdAssigner.preprocessUUID(p_m_dt_id);

    Object[] key = {m_package_id, m_dt_id};
    addInstanceToMap(key);
  }
  // Public Constructors
  public InstanceStateMachine_c(
      ModelRoot modelRoot, java.util.UUID p_m_sm_id, java.util.UUID p_m_obj_id) {
    super(modelRoot);
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_sm_id = IdAssigner.preprocessUUID(p_m_sm_id);
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_obj_id = IdAssigner.preprocessUUID(p_m_obj_id);

    Object[] key = {m_sm_id};
    addInstanceToMap(key);
  }
Пример #6
0
  // Public Constructors
  public ComponentInComponent_c(
      ModelRoot modelRoot, java.util.UUID p_m_id, java.util.UUID p_m_parent_id) {
    super(modelRoot);
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_id = IdAssigner.preprocessUUID(p_m_id);
    // extract 28 bit value only
    m_idLongBased = 0xfffffff & p_m_id.getLeastSignificantBits();
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_parent_id = IdAssigner.preprocessUUID(p_m_parent_id);

    setUniqueId(m_id);
    Object[] key = {m_id};
    addInstanceToMap(key);
  }
Пример #7
0
  // Public Constructors
  public ElementInMove_c(
      ModelRoot modelRoot,
      java.util.UUID p_m_elementid,
      java.util.UUID p_m_diagramid,
      float p_m_startingx,
      float p_m_startingy) {
    super(modelRoot);
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_elementid = IdAssigner.preprocessUUID(p_m_elementid);
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_diagramid = IdAssigner.preprocessUUID(p_m_diagramid);
    m_startingx = p_m_startingx;
    m_startingy = p_m_startingy;

    Object[] key = {m_elementid, m_diagramid};
    addInstanceToMap(key);
  }
Пример #8
0
  // Public Constructors
  public InformalArgument_c(ModelRoot modelRoot, java.util.UUID p_m_arg_id) {
    super(modelRoot);
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_arg_id = IdAssigner.preprocessUUID(p_m_arg_id);

    Object[] key = {m_arg_id};
    addInstanceToMap(key);
  }
Пример #9
0
 public static ComponentInComponent_c createProxy(
     ModelRoot modelRoot,
     java.util.UUID p_m_id,
     java.util.UUID p_m_parent_id,
     String p_contentPath,
     IPath p_localPath) {
   ModelRoot resolvedModelRoot = ModelRoot.findModelRoot(modelRoot, p_contentPath, p_localPath);
   // if a model root was not resolved it is most likely
   // due to a missing file of the proxy, defualt back to
   // the original model root
   if (resolvedModelRoot != null) modelRoot = resolvedModelRoot;
   InstanceList instances = modelRoot.getInstanceList(ComponentInComponent_c.class);
   ComponentInComponent_c new_inst = null;
   synchronized (instances) {
     Object[] key = {p_m_id};
     new_inst = (ComponentInComponent_c) instances.get(key);
   }
   String contentPath = PersistenceUtil.resolveRelativePath(p_localPath, new Path(p_contentPath));
   if (modelRoot.isNewCompareRoot()) {
     // for comparisons we do not want to change
     // the content path
     contentPath = p_contentPath;
   }
   if (new_inst != null && !modelRoot.isCompareRoot()) {
     PersistableModelComponent pmc = new_inst.getPersistableComponent();
     if (pmc == null) {
       // dangling reference, redo this instance
       new_inst.batchUnrelate();
       // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
       new_inst.m_id = IdAssigner.preprocessUUID(p_m_id);
       // extract 28 bit value only
       new_inst.m_idLongBased = 0xfffffff & p_m_id.getLeastSignificantBits();
       // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
       new_inst.m_parent_id = IdAssigner.preprocessUUID(p_m_parent_id);
     }
   }
   if (new_inst == null) {
     // there is no instance matching the id, create a proxy
     // if the resource doesn't exist then this will be a dangling reference
     new_inst = new ComponentInComponent_c(modelRoot, p_m_id, p_m_parent_id);
     new_inst.m_contentPath = contentPath;
   }
   return new_inst;
 }
Пример #10
0
  // Public Constructors
  public AssignToMember_c(
      ModelRoot modelRoot,
      java.util.UUID p_m_statement_id,
      java.util.UUID p_m_r_value_id,
      java.util.UUID p_m_l_value_id,
      int p_m_attributelinenumber,
      int p_m_attributecolumn) {
    super(modelRoot);
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_statement_id = IdAssigner.preprocessUUID(p_m_statement_id);
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_r_value_id = IdAssigner.preprocessUUID(p_m_r_value_id);
    m_attributelinenumber = p_m_attributelinenumber;
    m_attributecolumn = p_m_attributecolumn;
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_l_value_id = IdAssigner.preprocessUUID(p_m_l_value_id);

    Object[] key = {m_statement_id};
    addInstanceToMap(key);
  }
Пример #11
0
  // Public Constructors
  public Graphnode_c(
      ModelRoot modelRoot, float p_m_width, float p_m_height, java.util.UUID p_m_elementid) {
    super(modelRoot);
    m_width = p_m_width;
    m_height = p_m_height;
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_elementid = IdAssigner.preprocessUUID(p_m_elementid);

    Object[] key = {m_elementid};
    addInstanceToMap(key);
  }
  // Public Constructors
  public ComponentResultSet_c(
      ModelRoot modelRoot, java.util.UUID p_m_id, String p_m_name, int p_m_type) {
    super(modelRoot);
    m_name = p_m_name;
    m_type = p_m_type;
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_id = IdAssigner.preprocessUUID(p_m_id);

    Object[] key = {m_name, m_id};
    addInstanceToMap(key);
  }
  // Public Constructors
  public BridgeInvocation_c(
      ModelRoot modelRoot,
      java.util.UUID p_m_statement_id,
      java.util.UUID p_m_brg_id,
      int p_m_bridgenamelinenumber,
      int p_m_bridgenamecolumn,
      int p_m_externalentitykeyletterslinenumber,
      int p_m_externalentitykeyletterscolumn) {
    super(modelRoot);
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_statement_id = IdAssigner.preprocessUUID(p_m_statement_id);
    // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
    m_brg_id = IdAssigner.preprocessUUID(p_m_brg_id);
    m_bridgenamelinenumber = p_m_bridgenamelinenumber;
    m_bridgenamecolumn = p_m_bridgenamecolumn;
    m_externalentitykeyletterslinenumber = p_m_externalentitykeyletterslinenumber;
    m_externalentitykeyletterscolumn = p_m_externalentitykeyletterscolumn;

    Object[] key = {m_statement_id};
    addInstanceToMap(key);
  }
  public static BridgeInvocation_c resolveInstance(
      ModelRoot modelRoot,
      java.util.UUID p_m_statement_id,
      java.util.UUID p_m_brg_id,
      int p_m_bridgenamelinenumber,
      int p_m_bridgenamecolumn,
      int p_m_externalentitykeyletterslinenumber,
      int p_m_externalentitykeyletterscolumn) {
    InstanceList instances = modelRoot.getInstanceList(BridgeInvocation_c.class);
    BridgeInvocation_c source = null;
    synchronized (instances) {
      Object[] key = {p_m_statement_id};
      source = (BridgeInvocation_c) instances.get(key);
      if (source != null && !modelRoot.isCompareRoot()) {
        source.convertFromProxy();
        source.batchUnrelate();
        // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
        source.m_statement_id = IdAssigner.preprocessUUID(p_m_statement_id);
        // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
        source.m_brg_id = IdAssigner.preprocessUUID(p_m_brg_id);
        source.m_bridgenamelinenumber = p_m_bridgenamelinenumber;
        source.m_bridgenamecolumn = p_m_bridgenamecolumn;
        source.m_externalentitykeyletterslinenumber = p_m_externalentitykeyletterslinenumber;
        source.m_externalentitykeyletterscolumn = p_m_externalentitykeyletterscolumn;

        return source;
      }
    }
    // there is no instance matching the id
    BridgeInvocation_c new_inst =
        new BridgeInvocation_c(
            modelRoot,
            p_m_statement_id,
            p_m_brg_id,
            p_m_bridgenamelinenumber,
            p_m_bridgenamecolumn,
            p_m_externalentitykeyletterslinenumber,
            p_m_externalentitykeyletterscolumn);
    return new_inst;
  }
Пример #15
0
  public static DataTypeInPackage_c resolveInstance(
      ModelRoot modelRoot, java.util.UUID p_m_package_id, java.util.UUID p_m_dt_id) {
    InstanceList instances = modelRoot.getInstanceList(DataTypeInPackage_c.class);
    DataTypeInPackage_c source = null;
    synchronized (instances) {
      Object[] key = {p_m_package_id, p_m_dt_id};
      source = (DataTypeInPackage_c) instances.get(key);
      if (source != null && !modelRoot.isCompareRoot()) {
        source.convertFromProxy();
        source.batchUnrelate();
        // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
        source.m_package_id = IdAssigner.preprocessUUID(p_m_package_id);
        // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
        source.m_dt_id = IdAssigner.preprocessUUID(p_m_dt_id);

        return source;
      }
    }
    // there is no instance matching the id
    DataTypeInPackage_c new_inst = new DataTypeInPackage_c(modelRoot, p_m_package_id, p_m_dt_id);
    return new_inst;
  }
Пример #16
0
  public static AssignToMember_c resolveInstance(
      ModelRoot modelRoot,
      java.util.UUID p_m_statement_id,
      java.util.UUID p_m_r_value_id,
      java.util.UUID p_m_l_value_id,
      int p_m_attributelinenumber,
      int p_m_attributecolumn) {
    InstanceList instances = modelRoot.getInstanceList(AssignToMember_c.class);
    AssignToMember_c source = null;
    synchronized (instances) {
      Object[] key = {p_m_statement_id};
      source = (AssignToMember_c) instances.get(key);
      if (source != null && !modelRoot.isCompareRoot()) {
        source.convertFromProxy();
        source.batchUnrelate();
        // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
        source.m_statement_id = IdAssigner.preprocessUUID(p_m_statement_id);
        // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
        source.m_r_value_id = IdAssigner.preprocessUUID(p_m_r_value_id);
        source.m_attributelinenumber = p_m_attributelinenumber;
        source.m_attributecolumn = p_m_attributecolumn;
        // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
        source.m_l_value_id = IdAssigner.preprocessUUID(p_m_l_value_id);

        return source;
      }
    }
    // there is no instance matching the id
    AssignToMember_c new_inst =
        new AssignToMember_c(
            modelRoot,
            p_m_statement_id,
            p_m_r_value_id,
            p_m_l_value_id,
            p_m_attributelinenumber,
            p_m_attributecolumn);
    return new_inst;
  }
Пример #17
0
  public static ComponentInComponent_c resolveInstance(
      ModelRoot modelRoot, java.util.UUID p_m_id, java.util.UUID p_m_parent_id) {
    InstanceList instances = modelRoot.getInstanceList(ComponentInComponent_c.class);
    ComponentInComponent_c source = null;
    synchronized (instances) {
      Object[] key = {p_m_id};
      source = (ComponentInComponent_c) instances.get(key);
      if (source != null && !modelRoot.isCompareRoot()) {
        source.convertFromProxy();
        source.batchUnrelate();
        // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
        source.m_id = IdAssigner.preprocessUUID(p_m_id);
        // extract 28 bit value only
        source.m_idLongBased = 0xfffffff & p_m_id.getLeastSignificantBits();
        // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
        source.m_parent_id = IdAssigner.preprocessUUID(p_m_parent_id);

        return source;
      }
    }
    // there is no instance matching the id
    ComponentInComponent_c new_inst = new ComponentInComponent_c(modelRoot, p_m_id, p_m_parent_id);
    return new_inst;
  }
 public void setId(java.util.UUID newValue) {
   if (newValue != null) {
     if (newValue.equals(m_id)) {
       return;
     }
   } else if (m_id != null) {
     if (m_id.equals(newValue)) {
       return;
     }
   } else {
     return;
   }
   AttributeChangeModelDelta change =
       new AttributeChangeModelDelta(
           Modeleventnotification_c.DELTA_ATTRIBUTE_CHANGE, this, "Id", m_id, newValue, true);
   m_id = IdAssigner.preprocessUUID(newValue);
   Ooaofooa.getDefaultInstance().fireModelElementAttributeChanged(change);
 }
Пример #19
0
  public static Graphnode_c resolveInstance(
      ModelRoot modelRoot, float p_m_width, float p_m_height, java.util.UUID p_m_elementid) {
    InstanceList instances = modelRoot.getInstanceList(Graphnode_c.class);
    Graphnode_c source = null;
    synchronized (instances) {
      Object[] key = {p_m_elementid};
      source = (Graphnode_c) instances.get(key);
      if (source != null && !modelRoot.isCompareRoot()) {
        source.convertFromProxy();
        source.batchUnrelate();
        source.m_width = p_m_width;
        source.m_height = p_m_height;
        // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
        source.m_elementid = IdAssigner.preprocessUUID(p_m_elementid);

        return source;
      }
    }
    // there is no instance matching the id
    Graphnode_c new_inst = new Graphnode_c(modelRoot, p_m_width, p_m_height, p_m_elementid);
    return new_inst;
  }
  public static ComponentResultSet_c resolveInstance(
      ModelRoot modelRoot, java.util.UUID p_m_id, String p_m_name, int p_m_type) {
    InstanceList instances = modelRoot.getInstanceList(ComponentResultSet_c.class);
    ComponentResultSet_c source = null;
    synchronized (instances) {
      Object[] key = {p_m_name, new UUID(0, new Long(p_m_type)), p_m_id};
      source = (ComponentResultSet_c) instances.get(key);
      if (source != null && !modelRoot.isCompareRoot()) {
        source.convertFromProxy();
        source.batchUnrelate();
        source.m_name = p_m_name;
        source.m_type = p_m_type;
        // pre-process the uuid so that we re-use null uuid instance rather then creating a new one.
        source.m_id = IdAssigner.preprocessUUID(p_m_id);

        return source;
      }
    }
    // there is no instance matching the id
    ComponentResultSet_c new_inst = new ComponentResultSet_c(modelRoot, p_m_id, p_m_name, p_m_type);
    return new_inst;
  }
Пример #21
0
 public void setId(java.util.UUID newValue) {
   m_id = IdAssigner.preprocessUUID(newValue);
 }
Пример #22
0
 public void setStatement_id(java.util.UUID newValue) {
   m_statement_id = IdAssigner.preprocessUUID(newValue);
 }