|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.project.ProjectFile
org.apache.cayenne.project.ApplicationProjectFile
public class ApplicationProjectFile
ApplicationProjectFile is a ProjectFile abstraction of the main project file in a Cayenne project. Right now Cayenne projects can not be renamed, so all the name tracking functionality is pretty much noop.
| Field Summary | |
|---|---|
protected ConfigSaverDelegate |
saveDelegate
|
| Fields inherited from class org.apache.cayenne.project.ProjectFile |
|---|
location, projectObj, tempFile |
| Constructor Summary | |
|---|---|
ApplicationProjectFile(Project project)
Constructor for default ApplicationProjectFile. |
|
ApplicationProjectFile(Project project,
String fileName)
Constructor for ApplicationProjectFile with an existing file. |
|
| Method Summary | |
|---|---|
boolean |
canHandle(Object obj)
Returns true if this file wrapper can handle a specified object. |
String |
getLocationSuffix()
Returns suffix to append to object name when creating a file name. |
Object |
getObject()
Returns a project. |
String |
getObjectName()
Returns a name of associated object, that is also used as a file name. |
ConfigSaverDelegate |
getSaveDelegate()
Returns the saveDelegate. |
void |
save(PrintWriter out)
Saves an underlying object to the file. |
void |
setSaveDelegate(ConfigSaverDelegate saveDelegate)
Sets the saveDelegate. |
| Methods inherited from class org.apache.cayenne.project.ProjectFile |
|---|
canHandleObject, checkWritePermissions, getLocation, getOldLocation, getProject, isRenamed, resolveFile, resolveOldFile, saveCommit, saveTemp, saveUndo, synchronizeLocation, tempFileForFile, toString, willSave |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ConfigSaverDelegate saveDelegate
| Constructor Detail |
|---|
public ApplicationProjectFile(Project project)
public ApplicationProjectFile(Project project,
String fileName)
| Method Detail |
|---|
public String getLocationSuffix()
getLocationSuffix in class ProjectFilepublic Object getObject()
getObject in class ProjectFilepublic String getObjectName()
ProjectFile
getObjectName in class ProjectFileProjectFile.getObjectName()
public void save(PrintWriter out)
throws Exception
ProjectFile
save in class ProjectFileExceptionpublic boolean canHandle(Object obj)
ProjectFile
canHandle in class ProjectFilepublic ConfigSaverDelegate getSaveDelegate()
public void setSaveDelegate(ConfigSaverDelegate saveDelegate)
saveDelegate - The saveDelegate to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||