|
|||||||||||
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.ObjectContentHandler
This ContentHandler
supports importing
objects from a Microsoft Project Plan
. This
includes tasks, resources and assignments.
Field Summary | |
private MPPObjectBuilder |
builder
|
private String |
childTag
|
private static int |
MAP_INIT_CAPACITY
|
private Map |
objects
|
private String |
parentTag
|
Fields inherited from class wt.projmgmt.msproject.ChildContentHandler |
|
Constructor Summary | |
ObjectContentHandler(ContentHandler parent)
Create a handler to process the child elements of a parent element. |
|
ObjectContentHandler(ContentHandler parent,
String parentTag,
String childTag)
Create a handler to process the child elements of a parent element. |
Method Summary | |
protected void |
addObject(MPPObject mppObj)
Add an object to this handlers collection of objects. |
void |
endElement(String namespaceURL,
String localName,
String qName)
|
Map |
getObjects()
Get the objects that have been built by this handler. |
void |
reset()
Reset the handler so that it can be used again. |
void |
setBuilder(MPPObjectBuilder builder)
Set the builder to the specified MPPObjectBuilder . |
void |
setScope(String parentTag,
String childTag)
Set the parent tag and child tag used for scoping this handlers work. |
void |
startElement(String namespaceURL,
String localName,
String qName,
Attributes atts)
|
Methods inherited from class wt.projmgmt.msproject.ChildContentHandler |
getDocumentLocator, getImportInfo, getParent, getReader, setDocumentLocator, setParent |
Methods inherited from class wt.projmgmt.msproject.DefaultSAXContentHandler |
characters, 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 |
characters, endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, skippedEntity, startDocument, startPrefixMapping |
Field Detail |
private static final int MAP_INIT_CAPACITY
private String parentTag
private String childTag
private MPPObjectBuilder builder
private Map objects
Constructor Detail |
public ObjectContentHandler(ContentHandler parent)
setScope(java.lang.String, java.lang.String)
must be called to set the parent and child tags and
setBuilder(wt.projmgmt.msproject.mppobject.MPPObjectBuilder)
must be called to set the builder before
this handler can be used.
parent
- the parent handler to return control topublic ObjectContentHandler(ContentHandler parent, String parentTag, String childTag)
parent
- the parent handler to return control toparentTag
- the tag that determines when control is passed back
to the parent handlerchildTag
- the tag that specifies the child elementsMethod Detail |
public final void setScope(String parentTag, String childTag)
public final void reset()
public void setBuilder(MPPObjectBuilder builder)
MPPObjectBuilder
.
If this handler's scope is set, set the builder's
scope appropriately. Set the builder's parent to
be this handler.
public final Map getObjects()
protected void addObject(MPPObject mppObj)
mppObj
is null
then no
object is added.
public void startElement(String namespaceURL, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultSAXContentHandler
SAXException
public void endElement(String namespaceURL, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultSAXContentHandler
SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |