Skip to content

Method: GenPackage()

1: package de.fhdw.wtf.generator.java.generatorModel;
2:
3: /**
4: * A {@link GenPackage} can either be a {@link GenQualifiedPackage} or a {@link GenUnqualifiedPackage} and represents
5: * java-packages in the generation process.
6: */
7: public abstract class GenPackage {
8:         
9:         /**
10:          * Constructor for {@link GenPackage}.
11:          */
12:         protected GenPackage() {
13:         }
14:         
15:         /**
16:          * Add the <code>name</code> to the given hierarchy.
17:          *
18:          * @param name
19:          * The name to add to the {@link GenPackage}.
20:          * @return Returns a newly created {@link GenPackage}.
21:          */
22:         public abstract GenPackage addName(String name);
23:         
24:         @Override
25:         public abstract String toString();
26:         
27:         /**
28:          * Add the <code>packag</code> to the current Package.
29:          *
30:          * @param packag
31:          * The {@link GenPackage} to add to the {@link GenPackage}.
32:          * @return Returns a newly created {@link GenPackage}.
33:          */
34:         public abstract GenPackage addPackage(GenPackage packag);
35:         
36:         /**
37:          * Returns an exact copy of this package.
38:          *
39:          * @return GenPackage
40:          */
41:         public abstract GenPackage copy();
42:         
43: }