Package org.apache.ibatis.builder.xml
Class XMLMapperEntityResolver
java.lang.Object
org.apache.ibatis.builder.xml.XMLMapperEntityResolver
- All Implemented Interfaces:
EntityResolver
Offline entity resolver for the MyBatis DTDs.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate InputSource
getInputSource
(String path, String publicId, String systemId) resolveEntity
(String publicId, String systemId) Converts a public DTD into a local one.
-
Field Details
-
IBATIS_CONFIG_SYSTEM
- See Also:
-
IBATIS_MAPPER_SYSTEM
- See Also:
-
MYBATIS_CONFIG_SYSTEM
- See Also:
-
MYBATIS_MAPPER_SYSTEM
- See Also:
-
MYBATIS_CONFIG_DTD
- See Also:
-
MYBATIS_MAPPER_DTD
- See Also:
-
-
Constructor Details
-
XMLMapperEntityResolver
public XMLMapperEntityResolver()
-
-
Method Details
-
resolveEntity
Converts a public DTD into a local one.- Specified by:
resolveEntity
in interfaceEntityResolver
- Parameters:
publicId
- The public id that is what comes after "PUBLIC"systemId
- The system id that is what comes after the public id.- Returns:
- The InputSource for the DTD
- Throws:
SAXException
- If anything goes wrong
-
getInputSource
-