Package easysm.datatypes

Examples of easysm.datatypes.Name


   *
   */
 
  public boolean canAdd(AttributeInfo newAttrInfo)
  {
    Name newAttrName = newAttrInfo.name();
    Class container = (Class) newAttrInfo.ofClass();
    if (attrExists(newAttrName, container)) {
      main.inputCDError(Constants.EXISTING_ATTRIBUTE);
      return false;
    }
View Full Code Here


    return true;
  }
 
  public boolean canUpdate(Attribute oldAttr, AttributeInfo newAttrInfo)
  {
    Name newAttrName = newAttrInfo.name();
    Class container = (Class) newAttrInfo.ofClass();
    if (!oldAttr.name().equals(newAttrName) && attrExists(newAttrName, container)) {
      main.inputCDError(Constants.EXISTING_ATTRIBUTE);
      return false;
    }
View Full Code Here

   *
   */
 
  public boolean canAdd(OperationInfo newOpInfo)
  {
    Name newOpName = newOpInfo.name();
    Class container = (Class) newOpInfo.ofClass();
    if (opExists(newOpName, container)) {
      main.inputCDError(Constants.EXISTING_OPERATION);
      return false;
    }
View Full Code Here

    return true;
  }
 
  public boolean canUpdate(Operation oldOp, OperationInfo newOpInfo)
  {
    Name newOpName = newOpInfo.name();
    Class container = (Class) newOpInfo.ofClass();
    if (!oldOp.name().equals(newOpName) && opExists(newOpName, container)) {
      main.inputCDError(Constants.EXISTING_OPERATION);
      return false;
    }
View Full Code Here

   *
   */
 
  public boolean canAdd(StateObserverInfo newSoInfo)
  {
    Name newSoName = newSoInfo.name();
    if (soExists(newSoName)) {
      main.soError(Constants.EXISTING_STATE_OBSERVER);
      return false;
    }
    if (eventExists(newSoName)) {
View Full Code Here

    return true;
  }
 
  public boolean canUpdate(StateObserver oldSo, StateObserverInfo newSoInfo)
  {
    Name newSoName = newSoInfo.name();
    if (oldSo.name().equals(newSoName)) {
      return true;
    }
    if (soExists(newSoName)) {
      main.soError(Constants.EXISTING_STATE_OBSERVER);
View Full Code Here

   *
   */
 
  public boolean canAdd(EventInfo newEventInfo)
  {
    Name newEventName = newEventInfo.name();
    if (eventExists(newEventName)) {
      main.eventsError(Constants.EXISTING_EVENT);
      return false;
    }
    if (soExists(newEventName)) {
View Full Code Here

    return true;
  }
 
  public boolean canUpdate(Event oldEvent, EventInfo newEventInfo)
  {
    Name newEventName = newEventInfo.name();
    if (!oldEvent.name().equals(newEventName)) {
      if (eventExists(newEventName)) {
        main.eventsError(Constants.EXISTING_EVENT);
        return false;
      }
View Full Code Here

  /*
   * Event Handlers
   */
  private void button_okActionPerformed(ActionEvent evt)
  {
    Name stateName;
    try {
      stateName = new Name(jtexfield_name.getText());
    } catch (InvalidNameException e) {
      updateStateTable.error(Constants.MALFORMED_NAME);
      parent.getError();
      jtexfield_name.selectAll();
      jtexfield_name.requestFocus();
View Full Code Here

   */
  private void jbutton_okActionPerformed(ActionEvent evt)
  {
    Type soType = availableTypes[types.getSelectedIndex()];
    Expr soExpr = new Expr(invariant.getText());
    Name soName;

    try {
      soName = new Name(name.getText());
    } catch (InvalidNameException e) {
      updateStateObservers.error(Constants.MALFORMED_NAME);
      parent.getError();
      name.selectAll();
      name.requestFocus();
View Full Code Here

TOP

Related Classes of easysm.datatypes.Name

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.