1 package net.sf.quarrel.uml; 2 3 /*** 4 * Implements the base functionality of the Element interface. 5 */ 6 public abstract class AbstractElement 7 implements Element { 8 9 /*** 10 * The name of the element. 11 */ 12 private final String _name; 13 14 /*** 15 * Creates a new instance. 16 * 17 * @param name the name of the element. 18 */ 19 protected AbstractElement(String name) { 20 _name = name; 21 } 22 23 /*** 24 * {@inheritDoc} 25 */ 26 public String getName() { 27 return _name; 28 } 29 30 }