public class JOCLContentHandler extends org.xml.sax.helpers.DefaultHandler
ContentHandler
for the Java Object Configuration Language.Modifier and Type | Field and Description |
---|---|
protected boolean |
_acceptEmptyNamespaceForAttributes |
protected boolean |
_acceptEmptyNamespaceForElements |
protected boolean |
_acceptJoclPrefixForAttributes |
protected boolean |
_acceptJoclPrefixForElements |
protected org.datanucleus.store.rdbms.datasource.dbcp.jocl.JOCLContentHandler.ConstructorDetails |
_cur |
protected Locator |
_locator |
protected ArrayList |
_typeList |
protected ArrayList |
_valueList |
protected static String |
ATT_CLASS |
protected static String |
ATT_ISNULL |
protected static String |
ATT_VALUE |
protected static String |
ELT_ARRAY |
protected static String |
ELT_BOOLEAN |
protected static String |
ELT_BYTE |
protected static String |
ELT_CHAR |
protected static String |
ELT_COLLECTION |
protected static String |
ELT_DOUBLE |
protected static String |
ELT_FLOAT |
protected static String |
ELT_INT |
protected static String |
ELT_LIST |
protected static String |
ELT_LONG |
protected static String |
ELT_OBJECT |
protected static String |
ELT_SHORT |
protected static String |
ELT_STRING |
static String |
JOCL_NAMESPACE_URI |
static String |
JOCL_PREFIX |
Constructor and Description |
---|
JOCLContentHandler() |
JOCLContentHandler(boolean emptyEltNS,
boolean joclEltPrefix,
boolean emptyAttrNS,
boolean joclAttrPrefix) |
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public static final String JOCL_NAMESPACE_URI
public static final String JOCL_PREFIX
protected ArrayList _typeList
protected ArrayList _valueList
protected org.datanucleus.store.rdbms.datasource.dbcp.jocl.JOCLContentHandler.ConstructorDetails _cur
protected boolean _acceptEmptyNamespaceForElements
protected boolean _acceptJoclPrefixForElements
protected boolean _acceptEmptyNamespaceForAttributes
protected boolean _acceptJoclPrefixForAttributes
protected Locator _locator
protected static final String ELT_OBJECT
protected static final String ELT_ARRAY
protected static final String ELT_COLLECTION
protected static final String ELT_LIST
protected static final String ATT_CLASS
protected static final String ATT_ISNULL
protected static final String ELT_BOOLEAN
protected static final String ELT_BYTE
protected static final String ELT_CHAR
protected static final String ELT_DOUBLE
protected static final String ELT_FLOAT
protected static final String ELT_INT
protected static final String ELT_LONG
protected static final String ELT_SHORT
protected static final String ELT_STRING
protected static final String ATT_VALUE
public JOCLContentHandler()
public JOCLContentHandler(boolean emptyEltNS, boolean joclEltPrefix, boolean emptyAttrNS, boolean joclAttrPrefix)
public static JOCLContentHandler parse(File f) throws SAXException, FileNotFoundException, IOException
public static JOCLContentHandler parse(Reader in) throws SAXException, IOException
SAXException
IOException
public static JOCLContentHandler parse(InputStream in) throws SAXException, IOException
SAXException
IOException
public static JOCLContentHandler parse(InputSource in) throws SAXException, IOException
SAXException
IOException
public static JOCLContentHandler parse(File f, XMLReader reader) throws SAXException, FileNotFoundException, IOException
public static JOCLContentHandler parse(Reader in, XMLReader reader) throws SAXException, IOException
SAXException
IOException
public static JOCLContentHandler parse(InputStream in, XMLReader reader) throws SAXException, IOException
SAXException
IOException
public static JOCLContentHandler parse(InputSource in, XMLReader reader) throws SAXException, IOException
SAXException
IOException
public int size()
public void clear()
public void clear(int i)
public Class getType(int i)
public Object getValue(int i)
public Object[] getValueArray()
public Object[] getTypeArray()
public void startElement(String uri, String localName, String qname, Attributes attr) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String qname) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
protected String getAttributeValue(String localname, Attributes attr)
protected String getAttributeValue(String localname, Attributes attr, String implied)
Copyright © 2017. All rights reserved.