View Javadoc

1   /*
2    PlantUMLAbstractClassElementImpl.java
3    Creation date : 6/12/2011
4    Copyright © Benjamin Croizet (graffity2199@yahoo.fr)
5   
6    This program is free software; you can redistribute it and/or
7    modify it under the terms of the GNU General Public License
8    or GNU Lesser General Public License as published by the
9    Free Software Foundation; either version 3 of the License,
10   or (at your option) any later version.
11  
12   This program is distributed in the hope that it will be useful,
13   but WITHOUT ANY WARRANTY; without even the implied warranty of
14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   GNU General Public License for more details.
16  
17   You should have received copies of the GNU General Public License
18   and GNU Lesser General Public License along with this program;
19   if not, write to the Free Software Foundation, Inc.,
20   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21   http://www.fsf.org/licensing/licenses/gpl.html
22   http://www.gnu.org/licenses/lgpl.html
23   */
24  
25  package net.sourceforge.plantumldependency.cli.plantumldiagram.classes.element.impl;
26  
27  import static net.sourceforge.plantumldependency.cli.plantumldiagram.classes.element.tag.PlantUMLClassesDiagramElementTag.ABSTRACT_CLASS_TAG;
28  import net.sourceforge.plantumldependency.cli.plantumldiagram.classes.element.PlantUMLClassesDiagramAbstractClassElement;
29  import net.sourceforge.plantumldependency.cli.plantumldiagram.classes.element.stereotype.PlantUMLStereotype;
30  
31  /**
32   * The default {@link PlantUMLClassesDiagramAbstractClassElement} implementation.
33   *
34   * @author Benjamin Croizet (<a href="mailto:graffity2199@yahoo.fr>graffity2199@yahoo.fr</a>)
35   * @since 1.1.1
36   * @version 1.3.0
37   */
38  public class PlantUMLClassesDiagramAbstractClassElementImpl extends PlantUMLClassesDiagramClassElementImpl implements
39          PlantUMLClassesDiagramAbstractClassElement {
40  
41      /** Serial version UID. */
42      private static final long serialVersionUID = 6101443785458060906L;
43  
44      /**
45       * Medium constructor.
46       *
47       * @param fullName
48       *            the element full name, mustn't be <code>null</code>.
49       * @since 1.1.1
50       */
51      public PlantUMLClassesDiagramAbstractClassElementImpl(final String fullName) {
52          this(fullName, null);
53      }
54  
55      /**
56       * Full constructor.
57       *
58       * @param fullName
59       *            the element full name, mustn't be <code>null</code>.
60       * @param stereotyp
61       *            the element stereotype, if any, may be <code>null</code>.
62       * @since 1.1.1
63       */
64      public PlantUMLClassesDiagramAbstractClassElementImpl(final String fullName, final PlantUMLStereotype stereotyp) {
65          super(fullName, ABSTRACT_CLASS_TAG, stereotyp);
66      }
67  
68      /**
69       * {@inheritDoc}
70       *
71       * @since 1.1.1
72       */
73      @Override
74      public String toString() {
75          return getClass().getSimpleName() + " [" + super.toString() + "]";
76      }
77  }