org.ofbiz.base.config
Class MainResourceHandler
java.lang.Object
org.ofbiz.base.config.MainResourceHandler
- All Implemented Interfaces:
- java.io.Serializable, ResourceHandler
public final class MainResourceHandler
- extends java.lang.Object
- implements ResourceHandler
Contains resource information and provides for loading data
- See Also:
- Serialized Form
Constructor Summary |
MainResourceHandler(java.lang.String xmlFilename,
org.w3c.dom.Element element)
|
MainResourceHandler(java.lang.String xmlFilename,
java.lang.String loaderName,
java.lang.String location)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
module
public static final java.lang.String module
xmlFilename
protected final java.lang.String xmlFilename
loaderName
protected final java.lang.String loaderName
location
protected final java.lang.String location
MainResourceHandler
public MainResourceHandler(java.lang.String xmlFilename,
org.w3c.dom.Element element)
MainResourceHandler
public MainResourceHandler(java.lang.String xmlFilename,
java.lang.String loaderName,
java.lang.String location)
getLoaderName
public java.lang.String getLoaderName()
- Specified by:
getLoaderName
in interface ResourceHandler
getLocation
public java.lang.String getLocation()
- Specified by:
getLocation
in interface ResourceHandler
getDocument
public org.w3c.dom.Document getDocument()
throws GenericConfigException
- Specified by:
getDocument
in interface ResourceHandler
- Throws:
GenericConfigException
getStream
public java.io.InputStream getStream()
throws GenericConfigException
- Specified by:
getStream
in interface ResourceHandler
- Throws:
GenericConfigException
getURL
public java.net.URL getURL()
throws GenericConfigException
- Specified by:
getURL
in interface ResourceHandler
- Throws:
GenericConfigException
isFileResource
public boolean isFileResource()
throws GenericConfigException
- Specified by:
isFileResource
in interface ResourceHandler
- Throws:
GenericConfigException
getFullLocation
public java.lang.String getFullLocation()
throws GenericConfigException
- Specified by:
getFullLocation
in interface ResourceHandler
- Throws:
GenericConfigException
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object