View Javadoc

1   /*
2    * To change this template, choose Tools | Templates
3    * and open the template in the editor.
4    */
5   
6   package cz.cuni.amis.pogamut.unreal.t3dgenerator.datatypes;
7   
8   /**
9    * A reference that is initialized by string classname and name. Useful 
10   * for referencing objects, that are not part of the generated map and thus
11   * are not represented by any object within the running program.
12   * @author Martin Cerny
13   */
14  public class StaticReference extends UnrealReference{
15      private String className;
16      private String referenceTarget;
17  
18      public StaticReference(String className, String referenceTarget) {
19          this.className = className;
20          this.referenceTarget = referenceTarget;
21      }
22  
23  
24  
25      @Override
26      public String getClassName() {
27          return className;
28      }
29  
30      @Override
31      public String getReferenceTarget() {
32          return referenceTarget;
33      }
34  
35  }