|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.projmgmt.msproject.mppobject.MPPObject
wt.projmgmt.msproject.mppobject.MPPAssignment
An object that represents data from a Microsoft Project
Plan Assignment
.
Field Summary | |
(package private) MPPResource |
resource
|
private static String |
RESOURCE
|
(package private) MPPTask |
task
|
Fields inherited from class wt.projmgmt.msproject.mppobject.MPPObject |
|
Constructor Summary | |
MPPAssignment()
|
Method Summary | |
protected Persistable |
createPersistable()
Create a new Persistable that is of the correct
type for this object. |
protected String |
getGenericName()
Return a generic name fo the this object. |
String |
getName()
Return the name assigned to this object. |
protected String |
getNameElement()
Return the name of the XML element that should
be used to obtain the value of this object's name. |
MPPResource |
getResource()
Get the MPPResource
associated with this assignment. |
MPPTask |
getTask()
Get the MPPTask
associated with this assignment. |
protected boolean |
isValidPersistable(Persistable p)
Make sure that the specified Persistable is
of the right type for this object. |
protected Persistable |
refreshPersistable()
Retrieve the Persistable that corresponds to this
object from the database. |
void |
setResource(MPPResource resource)
Set the MPPResource
associated with this assignment. |
void |
setTask(MPPTask task)
Set the MPPTask
associated with this assignment. |
protected Persistable |
updatePersistable(Persistable p)
Update the specified Persistable with the data
in this object. |
Methods inherited from class wt.projmgmt.msproject.mppobject.MPPObject |
compareTo, containsKey, entrySet, get, getCurrentDate, getID, getImportInfo, getObjectIdentifier, getPersistable, getPersistableClass, getPersistableID, getPlan, getProjectPlan, getUID, isContainer, keySet, print, printImpl, printMsg, printNoUpdate, printNoUpdate, printRollUp, printUpdate, printUpdate, put, savePersistable, setID, setPersistable, setPlan, toString, updatePersistableCache |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
MPPResource resource
MPPTask task
Constructor Detail |
public MPPAssignment()
Method Detail |
public String getName()
MPPObject
getName
in class MPPObject
protected final String getGenericName()
MPPObject
getGenericName
in class MPPObject
protected final String getNameElement()
MPPObject
XML
element that should
be used to obtain the value of this object's name.
getNameElement
in class MPPObject
protected Persistable refreshPersistable() throws WTException
MPPObject
Persistable
that corresponds to this
object from the database. Return null
if no such
persistable exists.
refreshPersistable
in class MPPObject
WTException
protected Persistable createPersistable() throws WTException
MPPObject
Persistable
that is of the correct
type for this object.
createPersistable
in class MPPObject
WTException
protected Persistable updatePersistable(Persistable p) throws WTException, WTPropertyVetoException
MPPObject
Persistable
with the data
in this object.
updatePersistable
in class MPPObject
WTException
WTPropertyVetoException
protected boolean isValidPersistable(Persistable p) throws WTException
MPPObject
Persistable
is
of the right type for this object. Return false
if null
is passed to the method.
This class's implementation of this method ensures that the
perisitable is in the right ProjectPlan
. Subclasses
that override this method should be sure to make a call to
super
so that this code is executed.
isValidPersistable
in class MPPObject
WTException
public MPPResource getResource()
MPPResource
associated with this assignment.
public final void setResource(MPPResource resource)
MPPResource
associated with this assignment.
public final MPPTask getTask()
MPPTask
associated with this assignment.
public final void setTask(MPPTask task)
MPPTask
associated with this assignment.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |