|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.utils.xml.XMLUtilsConfig
public class XMLUtilsConfig
This class holds data to construct and set the parser in XMLUtils.
| Constructor Summary | |
|---|---|
XMLUtilsConfig()
Shorthand for XMLUtilsConfig(true, false). |
|
XMLUtilsConfig(boolean validate,
boolean includeIgnorableWhitespace)
Validation by XML Schema is always turned on. |
|
| Method Summary | |
|---|---|
java.util.Iterator |
getFeatures()
Returns all features as String-Objects in this iterator. |
boolean |
getFeatureValue(java.lang.String feature)
Returns the value of a given feature. |
java.lang.Boolean |
getIncludeIgnorabelWhitespace()
Shorthand for getFeature("http://apache.org/xml/features/dom/include-ignorable-whitespace") . |
java.lang.Boolean |
getValidate()
Shorthand for getFeature("http://xml.org/sax/features/validation") . |
void |
setFeature(java.lang.String feature,
boolean value)
These are the same features as allowed by the used parser. |
void |
setIncludeIgnorabelWhitespace(boolean value)
Shorthand for setFeature("http://apache.org/xml/features/dom/include-ignorable-whitespace", value) . |
void |
setValidate(boolean value)
Shorthand for setFeature("http://xml.org/sax/features/validation", value) . |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLUtilsConfig()
XMLUtilsConfig(true, false).This means that validation and stripping of empty text nodes is turned on by default. ************************************************************************
public XMLUtilsConfig(boolean validate,
boolean includeIgnorableWhitespace)
validate - -includeIgnorableWhitespace - -| Method Detail |
|---|
public java.util.Iterator getFeatures()
#getFeatureValue() it is
possible to retrieve all set features and their values.
public boolean getFeatureValue(java.lang.String feature)
getFeatures() it is possible to retrieve all
set features and their values.
feature - -
public java.lang.Boolean getIncludeIgnorabelWhitespace()
getFeature("http://apache.org/xml/features/dom/include-ignorable-whitespace")
.
public java.lang.Boolean getValidate()
getFeature("http://xml.org/sax/features/validation")
.
public void setFeature(java.lang.String feature,
boolean value)
feature - -value - -public void setIncludeIgnorabelWhitespace(boolean value)
setFeature("http://apache.org/xml/features/dom/include-ignorable-whitespace", value)
. If this is turned on then validation must be turned on eventually too other wise an exception will be
thrown when given this as a paramter to a parse()-method in XMLUtils.
value - -public void setValidate(boolean value)
setFeature("http://xml.org/sax/features/validation", value)
.
value - -
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||