wt.projmgmt.msproject.mppobject
Class MPPResourceBuilder
java.lang.Object
wt.projmgmt.msproject.DefaultSAXContentHandler
wt.projmgmt.msproject.ChildContentHandler
wt.projmgmt.msproject.mppobject.MPPObjectBuilder
wt.projmgmt.msproject.mppobject.MPPResourceBuilder
- All Implemented Interfaces:
- ContentHandler, ContentHandler
- public class MPPResourceBuilder
- extends MPPObjectBuilder
A ContentHandler
that builds a
MPPResource
from the data
contained in a section of the document it is parsing.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MPPResourceBuilder
public MPPResourceBuilder(ContentHandler parent)
- Create a handler that builds a
MPPResource
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.
- Parameters:
parent
- the parent handler
MPPResourceBuilder
public MPPResourceBuilder(ContentHandler parent,
String localName)
- Create a handler that builds a
MPPResource
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.
- Parameters:
parent
- the parent handlerlocalName
- the localName of the scoping element
createObject
protected MPPObject createObject()
- Description copied from class:
MPPObjectBuilder
- Create the
MPPObject
that should be populated by this builder.
- Specified by:
createObject
in class MPPObjectBuilder
isObjectValid
protected boolean isObjectValid(MPPObject mppObj)
- Returns
true
if the specified object is
not null
and its name is also not null
.
- Overrides:
isObjectValid
in class MPPObjectBuilder
getResource
public final MPPResource getResource()
isUnsupported
protected boolean isUnsupported(String namespaceURL,
String localName,
String qName)
- Description copied from class:
MPPObjectBuilder
- Returns true if the specified element contains data that
should be ignored by this builder. If this returns true
for a particular element, then control will be turned over
to a
IgnoreContentHandler
until the element is complete.
- Specified by:
isUnsupported
in class MPPObjectBuilder