public class GenOrmParser
extends org.xml.sax.helpers.DefaultHandler
<parser name="GenOrmParser">
<object tag="configuration" name="Configuration">
<object tag="option" name="Option">
<property name="Name">
<attribute>name</attribute>
</property>
<property name="Value">
<attribute>value</attribute>
</property>
</object>
<object tag="type" name="TypeMap">
<property name="Custom">
<attribute>custom</attribute>
</property>
<property name="JavaType">
<attribute>java</attribute>
</property>
<property name="DBType">
<attribute>db</attribute>
</property>
</object>
<object tag="plugin" name="Plugin">
<property name="PluginClass">
<attribute>class</attribute>
</property>
</object>
</object>
<object tag="global" name="Global">
<object tag="col" name="Column">
<property name="Comment">
<element>comment</element>
</property>
<property name="Name">
<attribute>name</attribute>
</property>
<property name="Type">
<attribute>type</attribute>
</property>
<property name="PrimaryKey">
<attribute>primary_key</attribute>
</property>
<property name="DefaultValue">
<attribute>default_value</attribute>
</property>
<property name="AllowNull">
<attribute>allow_null</attribute>
</property>
<property name="Unique">
<attribute>unique</attribute>
</property>
<property name="AutoSet">
<attribute>auto_set</attribute>
</property>
<object tag="property" name="Property">
<property name="Key">
<attribute>key</attribute>
</property>
<property name="Value">
<attribute>Value</attribute>
</property>
</object>
<object tag="reference" name="Reference">
<property name="Table">
<attribute>table</attribute>
</property>
<property name="Column">
<attribute>column</attribute>
</property>
</object>
</object>
</object>
<object tag="table" name="Table">
<property name="Type">
<element>comment</element>
</property>
<object reference="Property"/>
<object reference="Column"/>
</object>
</parser>
| Modifier and Type | Class and Description |
|---|---|
class |
GenOrmParser.Column |
class |
GenOrmParser.Configuration |
class |
GenOrmParser.Global |
class |
GenOrmParser.Option |
class |
GenOrmParser.Plugin |
class |
GenOrmParser.Property |
class |
GenOrmParser.Reference |
static interface |
GenOrmParser.SlickHandler
This is the interface implemented by you.
|
class |
GenOrmParser.Table |
class |
GenOrmParser.TypeMap |
| Constructor and Description |
|---|
GenOrmParser(GenOrmParser.SlickHandler handler)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName) |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs) |
public GenOrmParser(GenOrmParser.SlickHandler handler)
handler - Handler class provided by you to receive the data objects
created as the XML is parsed.public void characters(char[] ch,
int start,
int length)
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerpublic void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException