1 package net.sf.quarrel.file;
2
3 import java.util.Collection;
4
5
6 /***
7 * Represents a part of UML model, as read from the file. Derived from the
8 * String encapsulated in ElementText.
9 *
10 * @see ElementParsingService
11 */
12 public interface FileElement {
13
14 /***
15 * Returns the name of the element.
16 * @return
17 */
18 public String getName();
19
20 /***
21 * Returns the type of the element
22 * @return
23 */
24 public ElementType getElementType();
25
26 /***
27 * Returns a collection (copy) of String objects listing the set of features of the type specified.
28 * Will be an empty list if there are no instances of the feature type.
29 *
30 * @throws java.lang.IllegalArgumentException
31 * if an unsupport FeatureType is specified
32 * @return
33 * @param type
34 */
35 public Collection getFeatures(FeatureType type);
36
37 }