Package org.ofbiz.core.util
Class UtilXml.LocalResolver
java.lang.Object
org.ofbiz.core.util.UtilXml.LocalResolver
- All Implemented Interfaces:
EntityResolver
- Enclosing class:
- UtilXml
Local entity resolver to handle J2EE DTDs. With this a http connection
to sun is not needed during deployment.
Function boolean hadDTD() is here to avoid validation errors in
descriptors that do not have a DOCTYPE declaration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasDTD()Returns the boolean value to inform id DTD was found in the XML file or notresolveEntity(String publicId, String systemId) Returns DTD inputSource.
-
Constructor Details
-
LocalResolver
-
-
Method Details
-
resolveEntity
Returns DTD inputSource. If DTD was found in the dtds Map and inputSource was created flag hasDTD is set to true.- Specified by:
resolveEntityin interfaceEntityResolver- Parameters:
publicId- - Public ID of DTDsystemId- - System ID of DTD- Returns:
- InputSource of DTD
- Throws:
SAXExceptionIOException
-
hasDTD
public boolean hasDTD()Returns the boolean value to inform id DTD was found in the XML file or not- Returns:
- boolean - true if DTD was found in XML
-