java.lang.Object
org.objectstyle.woproject.pb.PBProject
- public class PBProject
- extends java.lang.Object
A PBProject represents a ProjectBuilder project file
traditionally called PB.project.
|
Constructor Summary |
PBProject(boolean isFramework)
Creates a new PBProject object
with an associated project file assumed to be called "PB.project"
and located in the current directory. |
PBProject(java.io.File projectFile,
boolean isFramework)
Creates a new PBProject object
with an associated project file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_APP_PROJECT
public static final java.lang.String DEFAULT_APP_PROJECT
- See Also:
- Constant Field Values
DEFAULT_FRAMEWORK_PROJECT
public static final java.lang.String DEFAULT_FRAMEWORK_PROJECT
- See Also:
- Constant Field Values
DYNAMIC_CODE_GEN
public static final java.lang.String DYNAMIC_CODE_GEN
- See Also:
- Constant Field Values
FILESTABLE
public static final java.lang.String FILESTABLE
- See Also:
- Constant Field Values
CLASSES
public static final java.lang.String CLASSES
- See Also:
- Constant Field Values
FRAMEWORKS
public static final java.lang.String FRAMEWORKS
- See Also:
- Constant Field Values
OTHER_LINKED
public static final java.lang.String OTHER_LINKED
- See Also:
- Constant Field Values
OTHER_SOURCES
public static final java.lang.String OTHER_SOURCES
- See Also:
- Constant Field Values
WOAPP_RESOURCES
public static final java.lang.String WOAPP_RESOURCES
- See Also:
- Constant Field Values
WOCOMPONENTS
public static final java.lang.String WOCOMPONENTS
- See Also:
- Constant Field Values
WEB_SERVER_RESOURCES
public static final java.lang.String WEB_SERVER_RESOURCES
- See Also:
- Constant Field Values
PROJECTNAME
public static final java.lang.String PROJECTNAME
- See Also:
- Constant Field Values
PROJECTTYPE
public static final java.lang.String PROJECTTYPE
- See Also:
- Constant Field Values
PROJECTVERSION
public static final java.lang.String PROJECTVERSION
- See Also:
- Constant Field Values
SUBPROJECTS
public static final java.lang.String SUBPROJECTS
- See Also:
- Constant Field Values
YES
public static final java.lang.String YES
- See Also:
- Constant Field Values
NO
public static final java.lang.String NO
- See Also:
- Constant Field Values
isFramework
protected boolean isFramework
projectFile
protected java.io.File projectFile
pbProject
protected java.util.Map pbProject
filesTable
protected java.util.Map filesTable
PBProject
public PBProject(boolean isFramework)
throws java.io.IOException
- Creates a new PBProject object
with an associated project file assumed to be called "PB.project"
and located in the current directory. If file does not exist,
PBProject object is initialized using default template.
PBProject
public PBProject(java.io.File projectFile,
boolean isFramework)
throws java.io.IOException
- Creates a new PBProject object
with an associated project file. If file does not exist,
PBProject object is initialized using default template.
getDefaultTemplate
public java.lang.String getDefaultTemplate()
update
public void update()
throws java.io.IOException
- Updates itself from the underlying
PB.project file.
If the file does not exist, uses a default template to load a
skeleton project.
saveChanges
public void saveChanges()
throws java.io.IOException
- Stores changes made to this object in the underlying PB.project file.
isDynamicCodeGen
public boolean isDynamicCodeGen()
setDynamicCodeGen
public void setDynamicCodeGen(boolean aBoolean)
getClasses
public java.util.List getClasses()
setClasses
public void setClasses(java.util.List anArray)
getWebServerResources
public java.util.List getWebServerResources()
setWebServerResources
public void setWebServerResources(java.util.List anArray)
getFrameworks
public java.util.List getFrameworks()
setFrameworks
public void setFrameworks(java.util.List anArray)
getSubprojects
public java.util.List getSubprojects()
setSubprojects
public void setSubprojects(java.util.List anArray)
getOtherLinked
public java.util.List getOtherLinked()
setOtherLinked
public void setOtherLinked(java.util.List anArray)
getOtherSources
public java.util.List getOtherSources()
setOtherSources
public void setOtherSources(java.util.List anArray)
getWoAppResources
public java.util.List getWoAppResources()
setWoAppResources
public void setWoAppResources(java.util.List anArray)
getWoComponents
public java.util.List getWoComponents()
setWoComponents
public void setWoComponents(java.util.List anArray)
getProjectName
public java.lang.String getProjectName()
setProjectName
public void setProjectName(java.lang.String aString)
getProjectType
public java.lang.String getProjectType()
setProjectType
public void setProjectType(java.lang.String aString)
getProjectVersion
public java.lang.String getProjectVersion()
setProjectVersion
public void setProjectVersion(java.lang.String aString)
getFilesTable
protected java.util.Map getFilesTable()
saveFilesTable
protected void saveFilesTable()
readFilesTable
protected void readFilesTable()
getProjectFile
public java.io.File getProjectFile()
- Returns the projectFile.
setProjectFile
public void setProjectFile(java.io.File projectFile)
- Sets the projectFile.