|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DOMLoader
This interface defines the methods needed to implement a DOMLoader. A dom loader is used to front various dom factory implementations.
Note that the behavior of the getDOM() methods depend upon the
backing dom factory implementation(s).
Some dom factories only support loading documents from a
class
, others from a
document path
, while others may support both.
Likewise, dom loader implementations may support one or both. Dom
loader implementations must provide at least one backing dom factory
and should provide a way for runtime configuration of one or more dom
factories.
Where Implementations do not support a particular getDOM() method, they should simply throw an IOException and document their lack of support.
DOMFactory
Method Summary | |
---|---|
Document |
getDOM(Class clazz)
Get the DOM associated with the provided class, based on the default locale |
Document |
getDOM(Class clazz,
Locale locale)
Get the DOM associated with the provided class, based on the specified locale |
Document |
getDOM(String docPath)
Get the DOM associated with the provided document path, based on the default locale |
Document |
getDOM(String docPath,
Locale locale)
Get the DOM associated with the provided document path, based on the specified Locale |
Method Detail |
---|
Document getDOM(Class clazz) throws IOException
clazz
- the class to be loaded as a Document object
IOException
DOMFactory.getInstance(Class)
Document getDOM(Class clazz, Locale locale) throws IOException
clazz
- the class to be loaded as a Document objectlocale
- the target Locale (may be null)
IOException
DOMFactory.getInstance(Class)
Document getDOM(String docPath) throws IOException
docPath
- the path to the document to be loaded as a Document object
IOException
DOMFactory.getInstance(String)
Document getDOM(String docPath, Locale locale) throws IOException
docPath
- the path to the document to be loaded as a Document objectlocale
- the target Locale (may be null)
IOException
DOMFactory.getInstance(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |