01: /*
02: * Jacareto Copyright (c) 2002-2005
03: * Applied Computer Science Research Group, Darmstadt University of
04: * Technology, Institute of Mathematics & Computer Science,
05: * Ludwigsburg University of Education, and Computer Based
06: * Learning Research Group, Aachen University. All rights reserved.
07: *
08: * Jacareto is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU General Public
10: * License as published by the Free Software Foundation; either
11: * version 2 of the License, or (at your option) any later version.
12: *
13: * Jacareto is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16: * General Public License for more details.
17: *
18: * You should have received a copy of the GNU General Public
19: * License along with Jacareto; if not, write to the Free
20: * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21: *
22: */
23:
24: package jacareto.conceptualmodel;
25:
26: import jacareto.system.Environment;
27:
28: /**
29: * This folder element of a conceptual-model.
30: *
31: * @author <a href="mailto:markus.bois@web.de">Markus Bois</a>
32: * @version 1.0
33: */
34: public class FolderElement extends ConceptualModelElement {
35: /**
36: * Creates a new "folder" conceptual-model element.
37: *
38: * @param env the environment
39: */
40: public FolderElement(Environment env) {
41: this (env, "", null);
42: }
43:
44: /**
45: * Creates a new "conceptual" conceptual-model element.
46: *
47: * @param env the environment
48: * @param name the name of the conceptual-model element
49: * @param children the child conceptual-model elements
50: */
51: public FolderElement(Environment env, String name,
52: ConceptualModelElement[] children) {
53: super (env, name, children);
54: }
55:
56: /**
57: * Returns the name of the element.
58: *
59: * @return the name
60: */
61: public String getElementName() {
62: return language.getString("ConceptualModel.Folder.Name");
63: }
64:
65: /**
66: * Returns a description of the element.
67: *
68: * @return the description
69: */
70: public String getElementDescription() {
71: return language.getString("ConceptualModel.Folder.Description");
72: }
73:
74: /**
75: * Returns a String which describes the content of the element shortly.
76: *
77: * @return a string with a short description of the element
78: */
79: public String toShortString() {
80: return getName() + " (" + getElementName() + ")";
81: }
82: }
|