1 package net.jaekl.cfb.xml.messages;
3 import org.xml.sax.Attributes;
5 import net.jaekl.qd.xml.MissingAttributeException;
6 import net.jaekl.qd.xml.ParseResult;
7 import net.jaekl.qd.xml.XmlParseException;
9 public class BugCategory extends ParseResult {
10 static final String CATEGORY = "category"; // attribute name
11 static final String DESCRIPTION = "Description";
12 static final String ABBREVIATION = "Abbreviation";
13 static final String DETAILS = "Details";
15 static final String TAG = "BugCategory";
16 static final String[] INTERNAL = { DESCRIPTION, ABBREVIATION, DETAILS };
17 static final Object[][] EXTERNAL = { };
27 super(TAG, INTERNAL, EXTERNAL);
28 m_category = m_descr = m_abbrev = m_details = "";
31 public String getCategory() { return m_category; }
32 public String getDescr() { return m_descr; }
33 public String getAbbrev() { return m_abbrev; }
34 public String getDetails() { return m_details; }
36 public void setId(long id) { m_id = id; }
37 public long getId() { return m_id; }
40 public void endContents(String uri, String localName, String qName, String chars) throws XmlParseException
42 if (DESCRIPTION.equals(localName)) {
45 else if (ABBREVIATION.equals(localName)) {
48 else if (DETAILS.equals(localName)) {
54 public void endExternal(String uri, String localName, String qName)
55 throws XmlParseException
60 // Called once for this tag itself
62 public void handleMainAttributes(Attributes attr) throws MissingAttributeException {
63 m_category = this.getRequiredAttr(TAG, attr, CATEGORY);