|
|||||||||||
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.PlanContentHandler
This is the top level content handler for importing
a Microsoft Project XML
file.
Field Summary | |
private MPPPlanBuilder |
builder
|
private ObjectContentHandler |
childHandler
|
private IgnoreContentHandler |
ignoreHandler
|
private ImportInfo |
importInfo
|
private Locator |
locator
|
private static int |
MAP_INIT_CAPACITY
|
private XMLReader |
reader
|
Constructor Summary | |
PlanContentHandler(XMLReader reader)
Create a handler that uses the specified XMLReader . |
|
PlanContentHandler(XMLReader reader,
ImportInfo info)
Create a handler that uses the specified XMLReader
and ImportInfo . |
Method Summary | |
void |
endElement(String namespaceURL,
String localName,
String qName)
|
Locator |
getDocumentLocator()
Get the handler's Locator . |
ImportInfo |
getImportInfo()
Get the ImportInfo that
is used to control this handler's (and its children's)
parsing. |
MPPPlan |
getPlan()
|
XMLReader |
getReader()
Get the handler's XMLReader . |
protected boolean |
ignoreData(String namespaceURL,
String localName,
String qName)
Return true if the data contained in the specified
element should be (or has been) ignored. |
void |
setDocumentLocator(Locator locator)
Set the handler's Locator . |
void |
startElement(String namespaceURL,
String localName,
String qName,
Attributes atts)
|
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 final ImportInfo importInfo
private final XMLReader reader
private Locator locator
private final MPPPlanBuilder builder
private final IgnoreContentHandler ignoreHandler
private final ObjectContentHandler childHandler
Constructor Detail |
public PlanContentHandler(XMLReader reader)
XMLReader
.
reader
- the XMLReader that uses this handlerpublic PlanContentHandler(XMLReader reader, ImportInfo info)
XMLReader
and ImportInfo
.
reader
- the XMLReader that uses this handlerinfo
- the import info that should be used to control parsingMethod Detail |
public final ImportInfo getImportInfo()
ImportInfo
that
is used to control this handler's (and its children's)
parsing.
getImportInfo
in interface ContentHandler
public XMLReader getReader()
ContentHandler
XMLReader
.
getReader
in interface ContentHandler
public final Locator getDocumentLocator()
Locator
.
getDocumentLocator
in interface ContentHandler
public final void setDocumentLocator(Locator locator)
Locator
.
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class DefaultSAXContentHandler
public final MPPPlan getPlan()
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
protected boolean ignoreData(String namespaceURL, String localName, String qName)
true
if the data contained in the specified
element should be (or has been) ignored.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |