|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.taursys.dom.DocumentAdapterBuilder com.taursys.dom.test.util.TestDocumentAdapterBuilder
TestDocumentAdapterBuilder for the DocumentAdapterBuilderFactoryTest
Field Summary |
Fields inherited from class com.taursys.dom.DocumentAdapterBuilder |
MESSAGE_NULL_INPUT_STREAM |
Constructor Summary | |
TestDocumentAdapterBuilder()
|
Method Summary | |
DocumentAdapter |
build(java.io.InputStream is)
Test method checks that InputStream is not null and that it can read a byte from the stream. |
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. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Gets the given property. |
void |
setFeature(java.lang.String featureName,
boolean value)
Enables the given featureName if value is true, otherwise disables feature. |
void |
setProperty(java.lang.String propertyName,
java.lang.Object value)
Sets the given property to the given value. |
Methods inherited from class com.taursys.dom.DocumentAdapterBuilder |
build, build, build, build |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TestDocumentAdapterBuilder()
Method Detail |
public DocumentAdapter build(java.io.InputStream is) throws DocumentAdapterBuilderException
build
in class DocumentAdapterBuilder
is
- InputStream that contains data
DocumentAdapterBuilderException
- if problemspublic void setProperty(java.lang.String propertyName, java.lang.Object value)
DocumentAdapterBuilder
setProperty
in class DocumentAdapterBuilder
propertyName
- name of the property to setvalue
- for the propertypublic java.lang.Object getProperty(java.lang.String propertyName)
DocumentAdapterBuilder
getProperty
in class DocumentAdapterBuilder
propertyName
- to retrieve
public void setFeature(java.lang.String featureName, boolean value)
DocumentAdapterBuilder
setFeature
in class DocumentAdapterBuilder
featureName
- to enable/disablevalue
- true to enable, false to disablepublic boolean getFeature(java.lang.String featureName)
DocumentAdapterBuilder
getFeature
in class DocumentAdapterBuilder
featureName
- to query
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |