Package easysm.datatypes

Examples of easysm.datatypes.Name


  @Before
  public void setUp()
  {
    main = new Main(false);
    Name name = null;
    try {
      name = new Name("Test");
      stPino = new Name("Pino");
      stGino = new Name("Gino");
      stTino = new Name("Tino");
    } catch (InvalidNameException e) {
      //
    }
    ProjectInfo projectInfo = new ProjectInfo(name, "Test", "Test");
    main.doNewProject(projectInfo);
View Full Code Here


  @Before
  public void setUp()
  {
    main = new Main(false);
    Name name = null;
    try {
      name = new Name("Test");
      cIffy = new Name("Iffy");
      cPine = new Name("Pine");
      cSure = new Name("Sure");
    } catch (InvalidNameException e) {
      //
    }
    ProjectInfo projectInfo = new ProjectInfo(name, "Test", "Test");
    main.doNewProject(projectInfo);
View Full Code Here

  @Before
  public void setUp()
  {
    main = new Main(false);
    Name name = null;
    try {
      name = new Name("Test");
      ePine = new Name("pine");
      eIffy = new Name("iffy");
    } catch (InvalidNameException e) {
      //
    }
    ProjectInfo projectInfo = new ProjectInfo(name, "Test", "Test");
    main.doNewProject(projectInfo);
View Full Code Here

  @Before
  public void setUp()
  {
    main = new Main(false);
    Name name = null;
    try {
      name = new Name("Test");
      soPine = new Name("Pine");
      soIffy = new Name("Iffy");
    } catch (InvalidNameException e) {
      //
    }
    ProjectInfo projectInfo = new ProjectInfo(name, "Test", "Test");
    main.doNewProject(projectInfo);
View Full Code Here

  @Before
  public void setUp()
  {
    main = new Main(false);
    Name name = null;
    try {
      name = new Name("Test");
      cPine = new Name("Pine");
      cIffy = new Name("Iffy");
      cGino = new Name("Gino");
      cBobb = new Name("Bobb");
      cTupe = new Name("Tupe");
    } catch (InvalidNameException e) {
      //
    }
    ProjectInfo projectInfo = new ProjectInfo(name, "Test", "Test");
    main.doNewProject(projectInfo);
View Full Code Here

    Events e = new Events(new EventsInfo());
    List<Event> eSet = e.eventList();

    cd = Generator.generateOutputCD(cd, soList, eSet);
    assertTrue(cd.context().attributes().size() == 1);
    Name attrName = cd.context().attributes().get(0).name();
    Type attrType = cd.context().attributes().get(0).type();
    assertTrue(attrName.equals(cGino));
    assertTrue(attrType.equals(Type.INTEGER));
  }
View Full Code Here

    e.addEvent(new Event(new EventInfo(cGino, parInfo)));
    List<Event> eSet = e.eventList();

    cd = Generator.generateOutputCD(cd, soSet, eSet);
    assertTrue(cd.context().attributes().size() == 0);
    Name opName = cd.context().operations().get(0).name();
    Type opReturnType = cd.context().operations().get(0).returnType();
    List<Parameter> opParams = cd.context().operations().get(0).parameters();
    assertTrue(opName.equals(cGino));
    assertTrue(opReturnType == null);
    assertTrue(opParams.isEmpty());
  }
View Full Code Here

    assertTrue(cd.classes().size() == 2);
   
    assertTrue(cd.context().attributes().size() == 1);
    assertTrue(cd.context().operations().size() == 1);

    Name attrName = cd.context().attributes().get(0).name();
    Type attrType = cd.context().attributes().get(0).type();
    assertTrue(attrName.equals(cBobb));
    assertTrue(attrType.equals(Type.INTEGER));

    Name opName = cd.context().operations().get(0).name();
    Type opReturnType = cd.context().operations().get(0).returnType();
    List<Parameter> opParams = cd.context().operations().get(0).parameters();
    assertTrue(opName.equals(cIffy));
    assertTrue(opReturnType == null);
    assertTrue(opParams.isEmpty());
  }
View Full Code Here

   * Event Handlers
   */
  private void button_okActionPerformed(ActionEvent evt)
  {
    Type typeOfParam = types[jcombobox_types.getSelectedIndex()];
    Name name;

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

    dispose();
  }

  private void jbutton_okActionPerformed(ActionEvent evt)
  {
    Name name = null;

    try {
      name = new Name(jtextfield_nameClass.getText());
    } catch (InvalidNameException e) {
      updateInputCD.error(Constants.MALFORMED_NAME);
      parent.getError();
      jtextfield_nameClass.selectAll();
      jtextfield_nameClass.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.