|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.projmgmt.msproject.DefaultSAXContentHandler
wt.projmgmt.msproject.ChildContentHandler
wt.projmgmt.msproject.mppobject.MPPObjectBuilder
wt.projmgmt.msproject.mppobject.MPPTaskBuilder
A ContentHandler
that builds a
MPPTask
from the data
contained in a section of the document it is parsing.
Field Summary | |
private MPPPredecessorLinkBuilder |
plBuilder
|
Fields inherited from class wt.projmgmt.msproject.mppobject.MPPObjectBuilder |
|
Fields inherited from class wt.projmgmt.msproject.ChildContentHandler |
|
Constructor Summary | |
MPPTaskBuilder(ContentHandler parent)
Create a handler that builds a MPPTask
from a particular portion of the document being scanned. |
|
MPPTaskBuilder(ContentHandler parent,
String localName)
Create a handler that builds a MPPTask
from a particular portion of the document being scanned. |
Method Summary | |
private void |
addPredecessor(long uid,
int type)
Add the predecessor to the task using the correct ProjectLinkType . |
protected MPPObject |
createObject()
Create the MPPObject
that should be populated by this builder. |
void |
endElement(String namespaceURL,
String localName,
String qName)
|
MPPTask |
getTask()
|
protected boolean |
isUnsupported(String namespaceURL,
String localName,
String qName)
Returns true if the specified element contains data that should be ignored by this builder. |
void |
reset()
Reset the builder so that it can be used again. |
void |
startElement(String namespaceURL,
String localName,
String qName,
Attributes atts)
|
Methods inherited from class wt.projmgmt.msproject.mppobject.MPPObjectBuilder |
characters, getObject, isObjectValid, isScopeEnd, setScope |
Methods inherited from class wt.projmgmt.msproject.ChildContentHandler |
getDocumentLocator, getImportInfo, getParent, getReader, setDocumentLocator, setParent |
Methods inherited from class wt.projmgmt.msproject.DefaultSAXContentHandler |
endDocument, endPrefixMapping, ignorableWhitespace, outputEndElement, outputStartElement, processingInstruction, skippedEntity, startDocument, startPrefixMapping |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ContentHandler |
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, skippedEntity, startDocument, startPrefixMapping |
Field Detail |
private final MPPPredecessorLinkBuilder plBuilder
Constructor Detail |
public MPPTaskBuilder(ContentHandler parent)
MPPTask
from a particular portion of the document being scanned.
If this constructor is used then MPPObjectBuilder.setScope(java.lang.String)
must
be called to set the scope before the builder is used.
parent
- the parent handlerpublic MPPTaskBuilder(ContentHandler parent, String localName)
MPPTask
from a particular portion of the document being scanned.
When the end tag for the specified scope
element
is encontered, control is passed back to the parent handler.
parent
- the parent handlerlocalName
- the localName of the scoping elementMethod Detail |
public void reset()
MPPObjectBuilder
reset
in class MPPObjectBuilder
protected MPPObject createObject()
MPPObjectBuilder
MPPObject
that should be populated by this builder.
createObject
in class MPPObjectBuilder
public final MPPTask getTask()
protected boolean isUnsupported(String namespaceURL, String localName, String qName)
MPPObjectBuilder
IgnoreContentHandler
until the element is complete.
isUnsupported
in class MPPObjectBuilder
public void startElement(String namespaceURL, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class MPPObjectBuilder
SAXException
public void endElement(String namespaceURL, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class MPPObjectBuilder
SAXException
private final void addPredecessor(long uid, int type)
ProjectLinkType
. If there is
no ProjectLinkType
that corresponds to the type
then the predecessor is not added.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |