b52823f02408029de4a1bb33cba6a47db77caa5e
[cfb.git] / prod / net / jaekl / cfb / xml / LocalVariable.java
1 package net.jaekl.cfb.xml;
2
3 import org.xml.sax.Attributes;
4
5 import net.jaekl.qd.xml.ParseResult;
6 import net.jaekl.qd.xml.XmlParseException;
7
8 public class LocalVariable extends ParseResult {
9
10         static final String TAG = "LocalVariable";
11         static final String[] INTERNAL = { };
12         static final Object[][] EXTERNAL = { };
13
14         static final String NAME = "name";
15         static final String ROLE = "role";
16         
17         String m_name;
18         String m_role;
19         
20         public LocalVariable() {
21                 super(TAG, INTERNAL, EXTERNAL);
22                 
23                 m_name = m_role = null;
24         }
25         
26         @Override
27         public void endContents(String uri, String localName, String qName, String chars, Attributes attr) 
28                 throws XmlParseException 
29         {
30                 m_name = getRequiredAttr(TAG, attr, NAME);
31                 m_role = getRequiredAttr(TAG, attr, ROLE);
32         }
33
34         @Override
35         public void endExternal(String uri, String localName, String qName)
36                 throws XmlParseException 
37         {
38                 // no-op
39         }
40 }