|
|||||||||||
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.MPPExtendedAttributeBuilder
A ContentHandler
that parses the values for
an ExtendedAttribute
element.
Field Summary | |
private StringBuffer |
buffer
|
private static int |
EA_MAP_INIT_CAPACITY
|
private Map |
map
|
Fields inherited from class wt.projmgmt.msproject.ChildContentHandler |
|
Constructor Summary | |
MPPExtendedAttributeBuilder(ContentHandler parent)
Create a handler that parses values for an ExtendedAttribute element. |
Method Summary | |
private void |
addKeyValuePair(String namespaceURL,
String localName,
String qName)
If there is character content in the content buffer, add it it to the map. |
void |
characters(char[] ch,
int start,
int length)
|
void |
endElement(String namespaceURL,
String localName,
String qName)
|
String |
getValue()
Get the Value of this extended attribute. |
long |
getValueID()
Get the ValueID of this extended attribute. |
boolean |
isDefined()
Returns true if this handler contains a
complete set of data to define an extended attribute. |
private void |
printKeyValuePairs()
Print out the key=>value pairs that this handler has parsed so far. |
void |
reset()
Removes all mappings from this handler. |
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, startElement, 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, startElement, startPrefixMapping |
Field Detail |
private static final int EA_MAP_INIT_CAPACITY
private final Map map
private StringBuffer buffer
Constructor Detail |
public MPPExtendedAttributeBuilder(ContentHandler parent)
ExtendedAttribute
element.
parent
- the parent handlerMethod Detail |
public long getValueID()
ValueID
of this extended attribute.
public String getValue()
Value
of this extended attribute.
public boolean isDefined()
true
if this handler contains a
complete set of data to define an extended attribute.
public void reset()
public final void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultSAXContentHandler
SAXException
public final void endElement(String namespaceURL, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultSAXContentHandler
SAXException
private final void addKeyValuePair(String namespaceURL, String localName, String qName)
If there is no content or there is no element name on the stack, this method does not add any value to the object. It still clears the content buffer in these cases.
private final void printKeyValuePairs()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |