buildframework/helium/sf/java/antdata/src/com/nokia/helium/ant/data/RootAntObjectMeta.java
changeset 628 7c4a911dc066
parent 587 85df38eb4012
child 645 b8d81fa19e7d
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
    29  */
    29  */
    30 public class RootAntObjectMeta extends AntObjectMeta {
    30 public class RootAntObjectMeta extends AntObjectMeta {
    31     static final String DEFAULT_PACKAGE = "(default)";
    31     static final String DEFAULT_PACKAGE = "(default)";
    32 
    32 
    33     private AntFile antFile;
    33     private AntFile antFile;
       
    34     private String filepath;
    34     private String scopeFilter;
    35     private String scopeFilter;
    35 
    36 
    36     public RootAntObjectMeta(AntFile antFile, Element node) throws IOException {
    37     public RootAntObjectMeta(AntFile antFile, Element node) throws IOException {
    37         super(null, node);
    38         super(null, node);
    38         this.antFile = antFile;
    39         this.antFile = antFile;
       
    40         this.filepath = antFile.getFile().getCanonicalPath();
    39     }
    41     }
    40 
    42 
    41     public String getPackage() {
    43     public String getPackage() {
    42         return getComment().getTagValue("package", DEFAULT_PACKAGE);
    44         return getComment().getTagValue("package", DEFAULT_PACKAGE);
    43     }
    45     }
    46         return antFile.getFile();
    48         return antFile.getFile();
    47     }
    49     }
    48 
    50 
    49     public AntFile getAntFile() {
    51     public AntFile getAntFile() {
    50         return antFile;
    52         return antFile;
       
    53     }
       
    54     
       
    55     /**
       
    56      * Returns the location path of the object.
       
    57      * 
       
    58      * @return Location path string.
       
    59      */
       
    60     public String getFilePath() {
       
    61         return filepath;
    51     }
    62     }
    52 
    63 
    53     public void setScopeFilter(String scopeFilter) {
    64     public void setScopeFilter(String scopeFilter) {
    54         this.scopeFilter = scopeFilter;
    65         this.scopeFilter = scopeFilter;
    55     }
    66     }
    74             }
    85             }
    75         }
    86         }
    76         return objects;
    87         return objects;
    77     }
    88     }
    78 }
    89 }
       
    90 
       
    91