1 package net.jaekl.cfb.xml.messages;
3 import net.jaekl.qd.xml.MissingAttributeException;
4 import net.jaekl.qd.xml.ParseResult;
5 import net.jaekl.qd.xml.XmlParseException;
7 import org.xml.sax.Attributes;
9 public class BugPattern extends ParseResult {
10 static final String TYPE = "type";
11 static final String SHORT = "ShortDescription";
12 static final String LONG = "LongDescription";
13 static final String DETAILS = "Details";
15 static final String TAG = "BugPattern";
16 static final String[] INTERNAL = { SHORT, LONG, DETAILS };
17 static final Object[][] EXTERNAL = { };
27 super(TAG, INTERNAL, EXTERNAL);
28 m_type = m_short = m_long = m_details = "";
31 public String getType() { return m_type; }
32 public String getShort() { return m_short; }
33 public String getLong() { return m_long; }
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 (SHORT.equals(localName)) {
45 else if (LONG.equals(localName)) {
48 else if (DETAILS.equals(localName)) {
54 public void endExternal(String uri, String localName, String qName) throws XmlParseException
59 // Called once for this tag itself
61 public void handleMainAttributes(Attributes attr) throws MissingAttributeException {
62 m_type = this.getRequiredAttr(TAG, attr, TYPE);