org.cyberneko.html.filters
public class NamespaceBinder extends DefaultFilter
true
.
This configuration recognizes the following features:
Version: $Id: NamespaceBinder.java,v 1.8 2005/05/30 00:19:28 andyc Exp $
Nested Class Summary | |
---|---|
static class | NamespaceBinder.NamespaceSupport
This namespace context object implements the old and new XNI
NamespaceContext interface methods so that it can
be used across all versions of Xerces2. |
Field Summary | |
---|---|
protected boolean | fInsertNamespaces Insert namespaces. |
protected short | fNamesAttrs Modify HTML attribute names. |
protected short | fNamesElems Modify HTML element names. |
protected NamespaceBinder.NamespaceSupport | fNamespaceContext Namespace context. |
protected boolean | fNamespacePrefixes Namespace prefixes. |
protected boolean | fNamespaces Namespaces. |
protected String | fNamespacesURI Namespaces URI. |
protected boolean | fOverrideNamespaces Override namespaces. |
protected static String | INSERT_NAMESPACES Insert namespace binding URIs. |
protected static String | NAMESPACES Namespaces. |
protected static String | NAMESPACES_URI Namespaces URI. |
protected static String | NAMES_ATTRS Modify HTML attribute names: { "upper", "lower", "default" }. |
protected static String | NAMES_ELEMS Modify HTML element names: { "upper", "lower", "default" }. |
protected static short | NAMES_LOWERCASE Lowercase HTML names. |
protected static short | NAMES_NO_CHANGE Don't modify HTML names. |
protected static short | NAMES_UPPERCASE Uppercase HTML names. |
protected static String | OVERRIDE_NAMESPACES Override namespace binding URI. |
static String | XHTML_1_0_URI XHTML 1.0 namespace URI (http://www.w3.org/1999/xhtml). |
static String | XMLNS_URI XMLNS namespace URI (http://www.w3.org/2000/xmlns/). |
static String | XML_URI XML namespace URI (http://www.w3.org/XML/1998/namespace). |
Method Summary | |
---|---|
protected void | bindNamespaces(QName element, XMLAttributes attrs) Binds namespaces. |
void | emptyElement(QName element, XMLAttributes attrs, Augmentations augs) Empty element. |
void | endElement(QName element, Augmentations augs) End element. |
Boolean | getFeatureDefault(String featureId)
Returns the default state for a feature, or null if this
component does not want to report a default value for this
feature. |
protected static short | getNamesValue(String value)
Converts HTML names string value to constant value.
|
Object | getPropertyDefault(String propertyId)
Returns the default value for a property, or null if this
component does not want to report a default value for this
property. |
String[] | getRecognizedFeatures()
Returns a list of feature identifiers that are recognized by
this component. |
String[] | getRecognizedProperties()
Returns a list of property identifiers that are recognized by
this component. |
protected static String | modifyName(String name, short mode) Modifies the given name based on the specified mode. |
void | reset(XMLComponentManager manager)
Resets the component. |
protected static void | splitQName(QName qname) Splits a qualified name. |
void | startDocument(XMLLocator locator, String encoding, NamespaceContext nscontext, Augmentations augs) Start document. |
void | startElement(QName element, XMLAttributes attrs, Augmentations augs) Start element. |
See Also: NAMES_NO_CHANGE NAMES_LOWERCASE NAMES_UPPERCASE
Parameters: manager The component manager.
Throws: XNIException Thrown by component on initialization error.