| java.lang.Object org.cyberneko.html.filters.DefaultFilter org.cyberneko.html.filters.NamespaceBinder
NamespaceBinder | public class NamespaceBinder extends DefaultFilter (Code) | | This filter binds namespaces if namespace processing is turned on
by setting the feature "http://xml.org/sax/features/namespaces" is
set to true .
This configuration recognizes the following features:
- http://xml.org/sax/features/namespaces
author: Andy Clark version: $Id: NamespaceBinder.java,v 1.8 2005/05/30 00:19:28 andyc Exp $ |
Inner Class :public static class NamespaceSupport implements NamespaceContext | |
Method Summary | |
protected void | bindNamespaces(QName element, XMLAttributes attrs) Binds namespaces. | public void | emptyElement(QName element, XMLAttributes attrs, Augmentations augs) Empty element. | public void | endElement(QName element, Augmentations augs) End element. | public 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. | final protected static short | getNamesValue(String value) Converts HTML names string value to constant value. | public 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. | public String[] | getRecognizedFeatures() Returns a list of feature identifiers that are recognized by
this component. | public String[] | getRecognizedProperties() Returns a list of property identifiers that are recognized by
this component. | final protected static String | modifyName(String name, short mode) Modifies the given name based on the specified mode. | public void | reset(XMLComponentManager manager) Resets the component. | protected static void | splitQName(QName qname) Splits a qualified name. | public void | startDocument(XMLLocator locator, String encoding, NamespaceContext nscontext, Augmentations augs) Start document. | public void | startElement(QName element, XMLAttributes attrs, Augmentations augs) Start element. |
INSERT_NAMESPACES | final protected static String INSERT_NAMESPACES(Code) | | Insert namespace binding URIs.
|
NAMESPACES | final protected static String NAMESPACES(Code) | | Namespaces.
|
NAMESPACES_URI | final protected static String NAMESPACES_URI(Code) | | Namespaces URI.
|
NAMES_ATTRS | final protected static String NAMES_ATTRS(Code) | | Modify HTML attribute names: { "upper", "lower", "default" }.
|
NAMES_ELEMS | final protected static String NAMES_ELEMS(Code) | | Modify HTML element names: { "upper", "lower", "default" }.
|
NAMES_LOWERCASE | final protected static short NAMES_LOWERCASE(Code) | | Lowercase HTML names.
|
NAMES_NO_CHANGE | final protected static short NAMES_NO_CHANGE(Code) | | Don't modify HTML names.
|
NAMES_UPPERCASE | final protected static short NAMES_UPPERCASE(Code) | | Uppercase HTML names.
|
OVERRIDE_NAMESPACES | final protected static String OVERRIDE_NAMESPACES(Code) | | Override namespace binding URI.
|
XHTML_1_0_URI | final public static String XHTML_1_0_URI(Code) | | XHTML 1.0 namespace URI (http://www.w3.org/1999/xhtml).
|
XMLNS_URI | final public static String XMLNS_URI(Code) | | XMLNS namespace URI (http://www.w3.org/2000/xmlns/).
|
XML_URI | final public static String XML_URI(Code) | | XML namespace URI (http://www.w3.org/XML/1998/namespace).
|
fInsertNamespaces | protected boolean fInsertNamespaces(Code) | | Insert namespaces.
|
fNamesAttrs | protected short fNamesAttrs(Code) | | Modify HTML attribute names.
|
fNamesElems | protected short fNamesElems(Code) | | Modify HTML element names.
|
fNamespaceContext | final protected NamespaceSupport fNamespaceContext(Code) | | Namespace context.
|
fNamespacePrefixes | protected boolean fNamespacePrefixes(Code) | | Namespace prefixes.
|
fNamespaces | protected boolean fNamespaces(Code) | | Namespaces.
|
fNamespacesURI | protected String fNamespacesURI(Code) | | Namespaces URI.
|
fOverrideNamespaces | protected boolean fOverrideNamespaces(Code) | | Override namespaces.
|
bindNamespaces | protected void bindNamespaces(QName element, XMLAttributes attrs)(Code) | | Binds namespaces.
|
emptyElement | public void emptyElement(QName element, XMLAttributes attrs, Augmentations augs) throws XNIException(Code) | | Empty element.
|
endElement | public void endElement(QName element, Augmentations augs) throws XNIException(Code) | | End element.
|
getFeatureDefault | public Boolean getFeatureDefault(String featureId)(Code) | | Returns the default state for a feature, or null if this
component does not want to report a default value for this
feature.
|
getPropertyDefault | public Object getPropertyDefault(String propertyId)(Code) | | Returns the default value for a property, or null if this
component does not want to report a default value for this
property.
|
getRecognizedFeatures | public String[] getRecognizedFeatures()(Code) | | Returns a list of feature identifiers that are recognized by
this component. This method may return null if no features
are recognized by this component.
|
getRecognizedProperties | public String[] getRecognizedProperties()(Code) | | Returns a list of property identifiers that are recognized by
this component. This method may return null if no properties
are recognized by this component.
|
modifyName | final protected static String modifyName(String name, short mode)(Code) | | Modifies the given name based on the specified mode.
|
reset | public void reset(XMLComponentManager manager) throws XMLConfigurationException(Code) | | Resets the component. The component can query the component manager
about any features and properties that affect the operation of the
component.
Parameters: manager - The component manager. throws: XNIException - Thrown by component on initialization error. |
splitQName | protected static void splitQName(QName qname)(Code) | | Splits a qualified name.
|
startDocument | public void startDocument(XMLLocator locator, String encoding, NamespaceContext nscontext, Augmentations augs) throws XNIException(Code) | | Start document.
|
startElement | public void startElement(QName element, XMLAttributes attrs, Augmentations augs) throws XNIException(Code) | | Start element.
|
Fields inherited from org.cyberneko.html.filters.DefaultFilter | protected XMLDocumentHandler fDocumentHandler(Code)(Java Doc) protected XMLDocumentSource fDocumentSource(Code)(Java Doc)
|
Methods inherited from org.cyberneko.html.filters.DefaultFilter | public void characters(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc) public void comment(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc) public void doctypeDecl(String root, String publicId, String systemId, Augmentations augs) throws XNIException(Code)(Java Doc) public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)(Java Doc) public void endCDATA(Augmentations augs) throws XNIException(Code)(Java Doc) public void endDocument(Augmentations augs) throws XNIException(Code)(Java Doc) public void endElement(QName element, Augmentations augs) throws XNIException(Code)(Java Doc) public void endGeneralEntity(String name, Augmentations augs) throws XNIException(Code)(Java Doc) public void endPrefixMapping(String prefix, Augmentations augs) throws XNIException(Code)(Java Doc) public XMLDocumentHandler getDocumentHandler()(Code)(Java Doc) public XMLDocumentSource getDocumentSource()(Code)(Java Doc) public Boolean getFeatureDefault(String featureId)(Code)(Java Doc) public Object getPropertyDefault(String propertyId)(Code)(Java Doc) public String[] getRecognizedFeatures()(Code)(Java Doc) public String[] getRecognizedProperties()(Code)(Java Doc) public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc) protected static String[] merge(String[] array1, String[] array2)(Code)(Java Doc) public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code)(Java Doc) public void reset(XMLComponentManager componentManager) throws XMLConfigurationException(Code)(Java Doc) public void setDocumentHandler(XMLDocumentHandler handler)(Code)(Java Doc) public void setDocumentSource(XMLDocumentSource source)(Code)(Java Doc) public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code)(Java Doc) public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code)(Java Doc) public void startCDATA(Augmentations augs) throws XNIException(Code)(Java Doc) public void startDocument(XMLLocator locator, String encoding, NamespaceContext nscontext, Augmentations augs) throws XNIException(Code)(Java Doc) public void startDocument(XMLLocator locator, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc) public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)(Java Doc) public void startGeneralEntity(String name, XMLResourceIdentifier id, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri, Augmentations augs) throws XNIException(Code)(Java Doc) public void textDecl(String version, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc) public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException(Code)(Java Doc)
|
|
|