View Javadoc

1   /*******************************************************************************
2    * Copyright (c) 2009 Ordina and committers to Mod4j
3    * All rights reserved. This program and the accompanying materials
4    * are made available under the terms of the Eclipse Public License v1.0
5    * which accompanies this distribution, and is available at
6    * http://www.eclipse.org/legal/epl-v10.html
7    *
8    * Contributors:
9    *     Ordina - initial implementation
10   *******************************************************************************/
11  package org.mod4j.common.generator.admin;
12  
13  public class GeneratedFile {
14  
15      // public GeneratedFile(String moduleName, String sourcePath, String packagePathname, FileType type, boolean
16      // extension){
17      // this.sourcePath = sourcePath;
18      // this.moduleName = moduleName;
19      // this.packagePathname = packagePathname;
20      // this.fileType = type;
21      // this.extensionPoint = extension;
22      // }
23  
24      public GeneratedFile(String sourcePath, FileType type, FileTrack owner, boolean extension) {
25          this.owner = owner;
26          this.sourcePath = sourcePath;
27          this.fileType = type;
28          this.extensionPoint = extension;
29      }
30  
31      protected FileTrack owner;
32  
33      public FileTrack getOwner() {
34          return owner;
35      }
36  
37      protected boolean changed = false; 
38  	protected boolean retained = false;
39  
40  	/**
41  	 * @return the changed
42  	 */
43  	public boolean isChanged() {
44  		return changed;
45  	}
46  
47  	/**
48  	 * @param changed the changed to set
49  	 */
50  	public void setChanged(boolean changed) {
51  		this.changed = changed;
52  	}
53  
54  	/**
55  	 * @return the retained
56  	 */
57  	public boolean isRetained() {
58  		return retained;
59  	}
60  
61  	/**
62  	 * @param retained the retained to set
63  	 */
64  	public void setRetained(boolean retained) {
65  		this.retained = retained;
66  	}
67  
68      
69      protected String moduleName;
70  
71      protected String sourcePath;
72  
73      protected long modifiedDate ;
74      
75      /**
76  	 * @return the modifiedDate
77  	 */
78  	public long getModifiedDate() {
79  		return modifiedDate;
80  	}
81  
82  	/**
83  	 * @param modifiedDate the modifiedDate to set
84  	 */
85  	public void setModifiedDate(long modifiedDate) {
86  		this.modifiedDate = modifiedDate;
87  	}
88  
89  	// private String packagePathname;
90      private boolean extensionPoint;
91  
92      protected FileType fileType = FileType.UNKNOWN;
93  
94      public FileType getFileType() {
95          return fileType;
96      }
97  
98      public String getModuleName() {
99          return moduleName;
100     }
101 
102     public String getSourcePath() {
103         return sourcePath;
104     }
105 
106     // public String getPackagePathname() {
107     // return packagePathname;
108     // }
109 
110     public boolean isExtensionPoint() {
111         return extensionPoint;
112     }
113 
114 }