|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.taursys.dom.DocumentAdapterBuilder
DocumentAdapterBuilder is used to create DocumentAdapters. It provides a variety of build methods.
Field Summary | |
protected static java.lang.String |
MESSAGE_NULL_INPUT_STREAM
|
Constructor Summary | |
DocumentAdapterBuilder()
|
Method Summary | |
DocumentAdapter |
build(java.lang.ClassLoader loader,
java.lang.String resourceName)
Build a new DocumentAdapter from the XML document read as a resource using the given ClassLoader. |
DocumentAdapter |
build(java.lang.Class clazz,
java.lang.String resourceName)
Build a new DocumentAdapter from the XML document contained in the indicated resource in the jar of the given class. |
abstract DocumentAdapter |
build(java.io.InputStream is)
Build a new DocumentAdapter from the XML document contained in the InputStream. |
DocumentAdapter |
build(java.lang.String uri)
Build a new DocumentAdapter from the XML document found at the given String URI. |
DocumentAdapter |
build(java.net.URL url)
Build a new DocumentAdapter from the XML document found at the URL. |
abstract boolean |
getFeature(java.lang.String featureName)
Returns true if given featureName is enables, otherwise false See the Specific DocumentAdapterBuilder, DocumentBuilder and/or Parser for the specific Features and Properties. |
abstract java.lang.Object |
getProperty(java.lang.String propertyName)
Gets the given property. |
abstract void |
setFeature(java.lang.String featureName,
boolean value)
Enables the given featureName if value is true, otherwise disables feature. |
abstract void |
setProperty(java.lang.String propertyName,
java.lang.Object value)
Sets the given property to the given value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String MESSAGE_NULL_INPUT_STREAM
Constructor Detail |
public DocumentAdapterBuilder()
Method Detail |
public abstract void setProperty(java.lang.String propertyName, java.lang.Object value)
propertyName
- name of the property to setvalue
- for the propertypublic abstract java.lang.Object getProperty(java.lang.String propertyName)
propertyName
- to retrieve
public abstract void setFeature(java.lang.String featureName, boolean value)
featureName
- to enable/disablevalue
- true to enable, false to disablepublic abstract boolean getFeature(java.lang.String featureName)
featureName
- to query
public abstract DocumentAdapter build(java.io.InputStream is) throws DocumentAdapterBuilderException
is
- InputStream containing the XML source document
DocumentAdapterBuilderException
- if invalid parameters or problems parsing the document.public DocumentAdapter build(java.lang.Class clazz, java.lang.String resourceName) throws DocumentAdapterBuilderException
clazz
- use jar file (or class directory) which contains this classresourceName
- name of file containing the XML source document
DocumentAdapterBuilderException
- if invalid parameters or problems parsing the document.public DocumentAdapter build(java.lang.ClassLoader loader, java.lang.String resourceName) throws DocumentAdapterBuilderException
loader
- ClassLoader to read the resourceresourceName
- name of file containing the XML source document
DocumentAdapterBuilderException
- if invalid parameters or problems parsing the document.public DocumentAdapter build(java.net.URL url) throws DocumentAdapterBuilderException
url
- URL pointing to the XML source document
DocumentAdapterBuilderException
- if invalid parameters or problems parsing the document.public DocumentAdapter build(java.lang.String uri) throws DocumentAdapterBuilderException
uri
- URI pointing to the XML source document
DocumentAdapterBuilderException
- if invalid parameters or problems parsing or validating the
document.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |