Methods Summary |
---|
public boolean | getFeature(java.lang.String name)Returns the particular property requested for in the underlying
implementation of DefaultHandler.
if (FEATURE_NS.equals(name) == true) {
return namespaces;
} else if (FEATURE_PREF.equals(name) == true) {
return prefixes;
} else {
throw new SAXNotRecognizedException(name);
}
|
public javax.xml.parsers.SAXParser | newSAXParser()Creates a new instance of a SAXParser using the currently
configured factory parameters.
if ((namespaces == true) && (prefixes == false)) {
return new Parser(true);
} else if ((namespaces == false) && (prefixes == true)) {
return new Parser(false);
} else {
throw new ParserConfigurationException("");
}
|
public void | setFeature(java.lang.String name, boolean value)Sets the particular feature in the underlying implementation of
DefaultHandler.
A list of the core features and properties can be found at
http://www.saxproject.org/?selected=get-set
if (FEATURE_NS.equals(name) == true) {
namespaces = value;
} else if (FEATURE_PREF.equals(name) == true) {
prefixes = value;
} else {
throw new SAXNotRecognizedException(name);
}
|
public void | setNamespaceAware(boolean awareness)Specifies that the parser produced by this code will
provide support for XML namespaces. By default the value of this is set
to false .
super.setNamespaceAware(awareness);
if (awareness == true) {
namespaces = true;
prefixes = false;
} else {
namespaces = false;
prefixes = true;
}
|