|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cactus.eclipse.webapp.internal.Webapp
public class Webapp
Represents a web application for a given project. It knows how to load its values from project properties and how to persist them.
| Constructor Summary | |
|---|---|
Webapp(org.eclipse.jdt.core.IJavaProject theJavaProject)
|
|
| Method Summary | |
|---|---|
java.io.File |
getAbsoluteDir()
|
org.eclipse.jdt.core.IClasspathEntry[] |
getClasspath()
|
java.lang.String |
getDir()
|
java.lang.String |
getOutput()
|
boolean |
init()
Initialize the web app properties with default values or stored values if they exist. |
void |
loadDefaultValues()
Loads the default values of a webapp. |
void |
loadPersistentValues()
Loads the persistent properties for this webapp. |
boolean |
loadValues()
Loads this webapp from the project properties. |
void |
persist()
Saves this webapp in the project's properties |
void |
setClasspath(org.eclipse.jdt.core.IClasspathEntry[] theClasspath)
Sets the classpath. |
void |
setDir(java.lang.String theDir)
Sets the dir. |
void |
setOutput(java.lang.String theOutput)
Sets the output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Webapp(org.eclipse.jdt.core.IJavaProject theJavaProject)
theJavaProject - the project this webapp is linked to| Method Detail |
|---|
public final boolean init()
public final boolean loadValues()
public final void loadPersistentValues()
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException - if we fail to load a persistent propertypublic final void loadDefaultValues()
public final void persist()
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException - if an error occurs while savingpublic final void setClasspath(org.eclipse.jdt.core.IClasspathEntry[] theClasspath)
theClasspath - The classpath to setpublic final void setDir(java.lang.String theDir)
theDir - The dir to setpublic final void setOutput(java.lang.String theOutput)
theOutput - The output to setpublic final org.eclipse.jdt.core.IClasspathEntry[] getClasspath()
public final java.lang.String getDir()
public final java.io.File getAbsoluteDir()
public final java.lang.String getOutput()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||