public class NamespaceBinder extends DefaultFilter
true.
This configuration recognizes the following features:
| Modifier and Type | Class and Description |
|---|---|
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. |
| Modifier and Type | Field and Description |
|---|---|
static String |
XHTML_1_0_URI
XHTML 1.0 namespace URI (http://www.w3.org/1999/xhtml).
|
static String |
XML_URI
XML namespace URI (http://www.w3.org/XML/1998/namespace).
|
static String |
XMLNS_URI
XMLNS namespace URI (http://www.w3.org/2000/xmlns/).
|
| Constructor and Description |
|---|
NamespaceBinder(HTMLConfiguration htmlConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindNamespaces(QName element,
XMLAttributes attrs) |
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) |
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) |
void |
reset(XMLComponentManager manager)
Resets the component.
|
void |
startDocument(XMLLocator locator,
String encoding,
NamespaceContext nscontext,
Augmentations augs)
Start document.
|
void |
startElement(QName element,
XMLAttributes attrs,
Augmentations augs)
Start element.
|
characters, comment, doctypeDecl, endCDATA, endDocument, getDocumentHandler, getDocumentSource, merge, processingInstruction, setDocumentHandler, setDocumentSource, setFeature, setProperty, startCDATA, xmlDeclpublic static final String XHTML_1_0_URI
public static final String XML_URI
public static final String XMLNS_URI
public NamespaceBinder(HTMLConfiguration htmlConfiguration)
public String[] getRecognizedFeatures()
getRecognizedFeatures in interface XMLComponentgetRecognizedFeatures in class DefaultFilterpublic Boolean getFeatureDefault(String featureId)
getFeatureDefault in interface HTMLComponentgetFeatureDefault in interface XMLComponentgetFeatureDefault in class DefaultFilterfeatureId - The feature identifier.public String[] getRecognizedProperties()
getRecognizedProperties in interface XMLComponentgetRecognizedProperties in class DefaultFilterpublic Object getPropertyDefault(String propertyId)
getPropertyDefault in interface HTMLComponentgetPropertyDefault in interface XMLComponentgetPropertyDefault in class DefaultFilterpropertyId - The property identifier.public void reset(XMLComponentManager manager) throws XMLConfigurationException
reset in interface XMLComponentreset in class DefaultFiltermanager - The component manager.XNIException - Thrown by component on initialization error.XMLConfigurationExceptionpublic void startDocument(XMLLocator locator, String encoding, NamespaceContext nscontext, Augmentations augs) throws XNIException
startDocument in interface XMLDocumentHandlerstartDocument in class DefaultFilterlocator - The document locator, or null if the document
location cannot be reported during the parsing of
this document. However, it is strongly
recommended that a locator be supplied that can at
least report the system identifier of the document.encoding - The auto-detected IANA encoding name of the entity
stream. This value will be null in those situations
where the entity encoding is not auto-detected (e.g.
internal entities or a document entity that is parsed
from a java.io.Reader).nscontext - The namespace context in effect at the start of this
document. This object represents the current context.
Implementors of this class are responsible for
copying the namespace bindings from the the current
context (and its parent contexts) if that information
is important.augs - Additional information that may include infoset
augmentationsXNIException - Thrown by handler to signal an error.public void startElement(QName element, XMLAttributes attrs, Augmentations augs) throws XNIException
startElement in interface XMLDocumentHandlerstartElement in class DefaultFilterelement - The name of the element.attrs - The element attributes.augs - Additional information that may include infoset
augmentationsXNIException - Thrown by handler to signal an error.public void emptyElement(QName element, XMLAttributes attrs, Augmentations augs) throws XNIException
emptyElement in interface XMLDocumentHandleremptyElement in class DefaultFilterelement - The name of the element.attrs - The element attributes.augs - Additional information that may include infoset
augmentationsXNIException - Thrown by handler to signal an error.public void endElement(QName element, Augmentations augs) throws XNIException
endElement in interface XMLDocumentHandlerendElement in class DefaultFilterelement - The name of the element.augs - Additional information that may include infoset augmentationsXNIException - Thrown by handler to signal an error.protected static short getNamesValue(String value)
protected void bindNamespaces(QName element, XMLAttributes attrs)
Copyright © 2024 HtmlUnit. All rights reserved.