Java Doc for NamespaceBinder.java in  » HTML-Parser » nekohtml » org » cyberneko » html » filters » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » HTML Parser » nekohtml » org.cyberneko.html.filters 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

Field Summary
final protected static  StringINSERT_NAMESPACES
     Insert namespace binding URIs.
final protected static  StringNAMESPACES
     Namespaces.
final protected static  StringNAMESPACES_URI
     Namespaces URI.
final protected static  StringNAMES_ATTRS
     Modify HTML attribute names: { "upper", "lower", "default" }.
final protected static  StringNAMES_ELEMS
     Modify HTML element names: { "upper", "lower", "default" }.
final protected static  shortNAMES_LOWERCASE
     Lowercase HTML names.
final protected static  shortNAMES_NO_CHANGE
     Don't modify HTML names.
final protected static  shortNAMES_UPPERCASE
     Uppercase HTML names.
final protected static  StringOVERRIDE_NAMESPACES
     Override namespace binding URI.
final public static  StringXHTML_1_0_URI
     XHTML 1.0 namespace URI (http://www.w3.org/1999/xhtml).
final public static  StringXMLNS_URI
     XMLNS namespace URI (http://www.w3.org/2000/xmlns/).
final public static  StringXML_URI
     XML namespace URI (http://www.w3.org/XML/1998/namespace).
protected  booleanfInsertNamespaces
     Insert namespaces.
protected  shortfNamesAttrs
     Modify HTML attribute names.
protected  shortfNamesElems
     Modify HTML element names.
final protected  NamespaceSupportfNamespaceContext
     Namespace context.
protected  booleanfNamespacePrefixes
     Namespace prefixes.
protected  booleanfNamespaces
     Namespaces.
protected  StringfNamespacesURI
     Namespaces URI.
protected  booleanfOverrideNamespaces
     Override namespaces.


Method Summary
protected  voidbindNamespaces(QName element, XMLAttributes attrs)
     Binds namespaces.
public  voidemptyElement(QName element, XMLAttributes attrs, Augmentations augs)
     Empty element.
public  voidendElement(QName element, Augmentations augs)
     End element.
public  BooleangetFeatureDefault(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  shortgetNamesValue(String value)
     Converts HTML names string value to constant value.
public  ObjectgetPropertyDefault(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  StringmodifyName(String name, short mode)
     Modifies the given name based on the specified mode.
public  voidreset(XMLComponentManager manager)
     Resets the component.
protected static  voidsplitQName(QName qname)
     Splits a qualified name.
public  voidstartDocument(XMLLocator locator, String encoding, NamespaceContext nscontext, Augmentations augs)
     Start document.
public  voidstartElement(QName element, XMLAttributes attrs, Augmentations augs)
     Start element.

Field Detail
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.





Method Detail
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.



getNamesValue
final protected static short getNamesValue(String value)(Code)
Converts HTML names string value to constant value.
See Also:   NamespaceBinder.NAMES_NO_CHANGE
See Also:   NamespaceBinder.NAMES_LOWERCASE
See Also:   NamespaceBinder.NAMES_UPPERCASE



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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.