Package org.tinyuml.model

Examples of org.tinyuml.model.NamedElement


 
  /**
   * Test the basic methods.
   */
  public void testMethods() {
    NamedElement elem = new DefaultNamedElement();
    elem.setName("name1");
    assertEquals("name1", elem.getName());   
    assertEquals("name1", elem.toString());
  }
View Full Code Here


 
  /**
   * Test the basic methods.
   */
  public void testMethods() {
    NamedElement elem = new DefaultNamedElement();
    elem.setName("name1");
    assertEquals("name1", elem.getName());   
    assertEquals("name1", elem.toString());
  }
View Full Code Here

    currentNode = null;
    int elementId = Integer.valueOf(attributes.getValue("element-id"));
    int shapeId = Integer.valueOf(attributes.getValue("id"));
    Node shape = null;

    NamedElement elem = elementMap.get(elementId);
    if (elem instanceof UmlClass) {
      shape = new ClassElement((UmlClass) elem);
    } else if (elem instanceof UmlPackage) {
      shape = diagram.getElementFactory().createPackage((UmlPackage) elem);
    } else if (elem instanceof UmlComponent) {
View Full Code Here

 
  /**
   * Test the basic methods.
   */
  public void testMethods() {
    NamedElement elem = new DefaultNamedElement();
    elem.setName("name1");
    assertEquals("name1", elem.getName());   
    assertEquals("name1", elem.toString());
  }
View Full Code Here

    currentNode = null;
    int elementId = Integer.valueOf(attributes.getValue("element-id"));
    int shapeId = Integer.valueOf(attributes.getValue("id"));
    Node shape = null;

    NamedElement elem = elementMap.get(elementId);
    if (elem instanceof UmlClass) {
      shape = new ClassElement((UmlClass) elem);
    } else if (elem instanceof UmlPackage) {
      shape = diagram.getElementFactory().createPackage((UmlPackage) elem);
    } else if (elem instanceof UmlComponent) {
View Full Code Here

    currentNode = null;
    int elementId = Integer.valueOf(attributes.getValue("element-id"));
    int shapeId = Integer.valueOf(attributes.getValue("id"));
    Node shape = null;

    NamedElement elem = elementMap.get(elementId);
    if (elem instanceof UmlClass) {
      shape = new ClassElement((UmlClass) elem);
    } else if (elem instanceof UmlPackage) {
      shape = diagram.getElementFactory().createPackage((UmlPackage) elem);
    } else if (elem instanceof UmlComponent) {
View Full Code Here

    currentNode = null;
    int elementId = Integer.valueOf(attributes.getValue("element-id"));
    int shapeId = Integer.valueOf(attributes.getValue("id"));
    Node shape = null;

    NamedElement elem = elementMap.get(elementId);
    if (elem instanceof UmlClass) {
      shape = new ClassElement((UmlClass) elem);
    } else if (elem instanceof UmlPackage) {
      shape = new PackageElement((UmlPackage) elem);
    } else if (elem instanceof UmlComponent) {
View Full Code Here

TOP

Related Classes of org.tinyuml.model.NamedElement

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.