Classes | |
class | DALURIResolver |
class | XMLNSElement |
Public Member Functions | |
XSDElementTypeResolver (String root, Logger logger) throws ParserConfigurationException, SAXException | |
String[] | getElementTypes (final String parentElementName, final String[] xmlns, final String[] elements) |
boolean | doesExtend (final String xmlns, final String baseTypeName) throws SAXException, IOException, URIException, XMLException |
DALURIResolver | getUriResolver () |
Protected Member Functions | |
void | initializeParser () throws ParserConfigurationException, SAXException |
String[] | internalGetElementTypes (String parentElementName, final String xmlns, final String[] elements) throws SAXException, IOException, URIException, XMLException |
Protected Attributes | |
Parser | parser |
Map< XMLNSElement, String > | cache = new HashMap<XMLNSElement, String>() |
Map< String, Boolean > | doesExtendMap = new HashMap<String, Boolean>() |
Package Attributes | |
DALURIResolver | uriResolver |
com.cosylab.cdb.jdal.XSDElementTypeResolver.XSDElementTypeResolver | ( | String | root, | |
Logger | logger | |||
) | throws ParserConfigurationException, SAXException |
boolean com.cosylab.cdb.jdal.XSDElementTypeResolver.doesExtend | ( | final String | xmlns, | |
final String | baseTypeName | |||
) | throws SAXException, IOException, URIException, XMLException |
: Change this method to not rely on the xsd file name to match a part of the xml namespace. For example, all xsd files could be parsed using a xerces XMLGrammarLoader (see http://xerces.apache.org/xerces2-j/faq-grammars.html#faq-3). This xsd cache could then be queried here for the given namespace, and it could also be shared with the xml parser in DALImpl.
References com.cosylab.cdb.jdal.XSDElementTypeResolver.doesExtendMap, org.exolab.castor.xml.schema.ComplexType.getBaseType(), org.exolab.castor.xml.schema.Schema.getComplexTypes(), org.exolab.castor.xml.schema.Schema.getElementDecls(), org.exolab.castor.xml.schema.XMLType.getName(), org.exolab.castor.xml.schema.ElementDecl.getName(), org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.getSchema(), org.exolab.castor.xml.schema.ElementDecl.getType(), com.cosylab.cdb.jdal.XSDElementTypeResolver.parser, org.exolab.castor.xml.schema.reader.ComponentReader.setURIResolver(), and com.cosylab.cdb.jdal.XSDElementTypeResolver.uriResolver.
Referenced by com.cosylab.cdb.jdal.HibernateWDALImpl.loadXMLCDB().
String [] com.cosylab.cdb.jdal.XSDElementTypeResolver.getElementTypes | ( | final String | parentElementName, | |
final String[] | xmlns, | |||
final String[] | elements | |||
) |
DALURIResolver com.cosylab.cdb.jdal.XSDElementTypeResolver.getUriResolver | ( | ) |
References com.cosylab.cdb.jdal.XSDElementTypeResolver.uriResolver.
void com.cosylab.cdb.jdal.XSDElementTypeResolver.initializeParser | ( | ) | throws ParserConfigurationException, SAXException [protected] |
String [] com.cosylab.cdb.jdal.XSDElementTypeResolver.internalGetElementTypes | ( | String | parentElementName, | |
final String | xmlns, | |||
final String[] | elements | |||
) | throws SAXException, IOException, URIException, XMLException [protected] |
References com.cosylab.cdb.jdal.XSDElementTypeResolver.cache, org.exolab.castor.xml.schema.XMLType.getBaseType(), org.exolab.castor.xml.schema.Schema.getComplexTypes(), org.exolab.castor.xml.schema.ComplexType.getElementDecl(), org.exolab.castor.xml.schema.Schema.getElementDecls(), org.exolab.castor.xml.schema.XMLType.getName(), org.exolab.castor.xml.schema.ElementDecl.getName(), org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.getSchema(), org.exolab.castor.xml.schema.ElementDecl.getType(), com.cosylab.cdb.jdal.XSDElementTypeResolver.parser, org.exolab.castor.xml.schema.reader.ComponentReader.setURIResolver(), and com.cosylab.cdb.jdal.XSDElementTypeResolver.uriResolver.
Referenced by com.cosylab.cdb.jdal.XSDElementTypeResolver.getElementTypes().
Map<XMLNSElement, String> com.cosylab.cdb.jdal.XSDElementTypeResolver.cache = new HashMap<XMLNSElement, String>() [protected] |
Map<String, Boolean> com.cosylab.cdb.jdal.XSDElementTypeResolver.doesExtendMap = new HashMap<String, Boolean>() [protected] |
Referenced by com.cosylab.cdb.jdal.XSDElementTypeResolver.doesExtend().
Parser com.cosylab.cdb.jdal.XSDElementTypeResolver.parser [protected] |
DALURIResolver com.cosylab.cdb.jdal.XSDElementTypeResolver.uriResolver [package] |