Java Doc for ExtendedContentHandler.java in  » XML » xalan » org » apache » xml » serializer » 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 » XML » xalan » org.apache.xml.serializer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.xml.serializer.ExtendedContentHandler

ExtendedContentHandler
abstract interface ExtendedContentHandler extends org.xml.sax.ContentHandler(Code)
This interface describes extensions to the SAX ContentHandler interface. It is intended to be used by a serializer. The methods on this interface will implement SAX- like behavior. This allows the gradual collection of information rather than having it all up front. For example the call
 startElement(namespaceURI,localName,qName,atts)
 
could be replaced with the calls
 startElement(namespaceURI,localName,qName)
 addAttributes(atts)
 
If there are no attributes the second call can be dropped. If attributes are to be added one at a time with calls to
 addAttribute(namespaceURI, localName, qName, type, value)
 


Field Summary
final public static  intHTML_ATTREMPTY
    
final public static  intHTML_ATTRURL
    
final public static  intNO_BAD_CHARS
    


Method Summary
public  voidaddAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute)
    
public  voidaddAttribute(String qName, String value)
     Add an attribute to the current element.
public  voidaddAttribute(String uri, String localName, String rawName, String type, String value)
     Add at attribute to the current element, not from an xsl:attribute element.
public  voidaddAttributes(org.xml.sax.Attributes atts)
    
public  voidaddUniqueAttribute(String qName, String value, int flags)
     Add a unique attribute to the current element. The attribute is guaranteed to be unique here.
public  voidaddXSLAttribute(String qName, String value, String uri)
     Add an attribute from an xsl:attribute element.
public  voidcharacters(String chars)
     This method is used to notify of a character event, but passing the data as a character String rather than the standard character array.
public  voidcharacters(org.w3c.dom.Node node)
     This method is used to notify of a character event, but passing the data as a DOM Node rather than the standard character array.
public  voidendElement(String elemName)
     This method is used to notify that an element has ended.
public  voidentityReference(String entityName)
     Notify of an entity reference.
public  NamespaceMappingsgetNamespaceMappings()
     This method returns an object that has the current namespace mappings in effect.
public  StringgetNamespaceURI(String name, boolean isElement)
     This method gets the prefix associated with a current element or attribute name.
public  StringgetNamespaceURIFromPrefix(String prefix)
     This method returns the namespace URI currently associated with the prefix.
Parameters:
  prefix - a prefix of an element or attribute.
public  StringgetPrefix(String uri)
     This method returns the prefix that currently maps to the given namespace URI.
public  voidnamespaceAfterStartElement(String uri, String prefix)
     This method is used to notify that a prefix mapping is to start, but after an element is started.
public  voidsetSourceLocator(SourceLocator locator)
     This method is used to set the source locator, which might be used to generated an error message.
public  voidstartElement(String uri, String localName, String qName)
     This method is used to notify that an element is starting.
public  voidstartElement(String qName)
    
public  booleanstartPrefixMapping(String prefix, String uri, boolean shouldFlush)
     This method is used to notify that a prefix maping is to start, which can be for the current element, or for the one to come.
Parameters:
  prefix - the prefix that maps to the given URI
Parameters:
  uri - the namespace URI of the given prefix
Parameters:
  shouldFlush - if true this call is like the SAXstartPrefixMapping(prefix,uri) call and the mapping applies to theelement to come.

Field Detail
HTML_ATTREMPTY
final public static int HTML_ATTREMPTY(Code)



HTML_ATTRURL
final public static int HTML_ATTRURL(Code)



NO_BAD_CHARS
final public static int NO_BAD_CHARS(Code)





Method Detail
addAttribute
public void addAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute) throws SAXException(Code)
Add at attribute to the current element
Parameters:
  uri - the namespace URI of the attribute name
Parameters:
  localName - the local name of the attribute (without prefix)
Parameters:
  rawName - the qualified name of the attribute
Parameters:
  type - the attribute type typically character data (CDATA)
Parameters:
  value - the value of the attribute
Parameters:
  XSLAttribute - true if the added attribute is coming from an xsl:attribute element
throws:
  SAXException -



addAttribute
public void addAttribute(String qName, String value)(Code)
Add an attribute to the current element. The namespace URI of the attribute will be calculated from the prefix of qName. The local name will be derived from qName and the type will be assumed to be "CDATA".
Parameters:
  qName -
Parameters:
  value -



addAttribute
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException(Code)
Add at attribute to the current element, not from an xsl:attribute element.
Parameters:
  uri - the namespace URI of the attribute name
Parameters:
  localName - the local name of the attribute (without prefix)
Parameters:
  rawName - the qualified name of the attribute
Parameters:
  type - the attribute type typically character data (CDATA)
Parameters:
  value - the value of the attribute
throws:
  SAXException -



addAttributes
public void addAttributes(org.xml.sax.Attributes atts) throws org.xml.sax.SAXException(Code)
Add attributes to the current element
Parameters:
  atts - the attributes to add.
throws:
  SAXException -



addUniqueAttribute
public void addUniqueAttribute(String qName, String value, int flags) throws SAXException(Code)
Add a unique attribute to the current element. The attribute is guaranteed to be unique here. The serializer can write it out immediately without saving it in a table first. The integer flag contains information about the attribute, which helps the serializer to decide whether a particular processing is needed.
Parameters:
  qName - the fully qualified attribute name.
Parameters:
  value - the attribute value
Parameters:
  flags - a bitwise flag



addXSLAttribute
public void addXSLAttribute(String qName, String value, String uri)(Code)
Add an attribute from an xsl:attribute element.
Parameters:
  qName - the qualified attribute name (prefix:localName)
Parameters:
  value - the attributes value
Parameters:
  uri - the uri that the prefix of the qName is mapped to.



characters
public void characters(String chars) throws SAXException(Code)
This method is used to notify of a character event, but passing the data as a character String rather than the standard character array.
Parameters:
  chars - the character data
throws:
  SAXException -



characters
public void characters(org.w3c.dom.Node node) throws org.xml.sax.SAXException(Code)
This method is used to notify of a character event, but passing the data as a DOM Node rather than the standard character array.
Parameters:
  node - a DOM Node containing text.
throws:
  SAXException -



endElement
public void endElement(String elemName) throws SAXException(Code)
This method is used to notify that an element has ended. Unlike the standard SAX method
 endElement(namespaceURI,localName,qName)
 
only the last parameter is passed. If needed the serializer can derive the localName from the qualified name and derive the namespaceURI from its implementation.
Parameters:
  elemName - the fully qualified element name.
throws:
  SAXException -



entityReference
public void entityReference(String entityName) throws SAXException(Code)
Notify of an entity reference.
Parameters:
  entityName - the name of the entity
throws:
  SAXException -



getNamespaceMappings
public NamespaceMappings getNamespaceMappings()(Code)
This method returns an object that has the current namespace mappings in effect. NamespaceMappings an object that has the current namespacemappings in effect.



getNamespaceURI
public String getNamespaceURI(String name, boolean isElement)(Code)
This method gets the prefix associated with a current element or attribute name.
Parameters:
  name - the qualified name of an element, or attribute
Parameters:
  isElement - true if it is an element name, false if it is anatttribute name String the namespace URI associated with the element orattribute.



getNamespaceURIFromPrefix
public String getNamespaceURIFromPrefix(String prefix)(Code)
This method returns the namespace URI currently associated with the prefix.
Parameters:
  prefix - a prefix of an element or attribute. String the namespace URI currently associated with the prefix.



getPrefix
public String getPrefix(String uri)(Code)
This method returns the prefix that currently maps to the given namespace URI.
Parameters:
  uri - the namespace URI String the prefix that currently maps to the given URI.



namespaceAfterStartElement
public void namespaceAfterStartElement(String uri, String prefix) throws SAXException(Code)
This method is used to notify that a prefix mapping is to start, but after an element is started. The SAX method call
 startPrefixMapping(prefix,uri)
 
is used just before an element starts and applies to the element to come, not to the current element. This method applies to the current element. For example one could make the calls in this order:
 startElement("prfx8:elem9")
 namespaceAfterStartElement("http://namespace8","prfx8")
 

Parameters:
  uri - the namespace URI being declared
Parameters:
  prefix - the prefix that maps to the given namespace
throws:
  SAXException -



setSourceLocator
public void setSourceLocator(SourceLocator locator)(Code)
This method is used to set the source locator, which might be used to generated an error message.
Parameters:
  locator - the source locator



startElement
public void startElement(String uri, String localName, String qName) throws org.xml.sax.SAXException(Code)
This method is used to notify that an element is starting. This method is just like the standard SAX method
 startElement(uri,localName,qname,atts)
 
but without the attributes.
Parameters:
  uri - the namespace URI of the element
Parameters:
  localName - the local name (without prefix) of the element
Parameters:
  qName - the qualified name of the element
throws:
  SAXException -



startElement
public void startElement(String qName) throws SAXException(Code)
This method is used to notify of the start of an element
Parameters:
  qName - the fully qualified name of the element
throws:
  SAXException -



startPrefixMapping
public boolean startPrefixMapping(String prefix, String uri, boolean shouldFlush) throws SAXException(Code)
This method is used to notify that a prefix maping is to start, which can be for the current element, or for the one to come.
Parameters:
  prefix - the prefix that maps to the given URI
Parameters:
  uri - the namespace URI of the given prefix
Parameters:
  shouldFlush - if true this call is like the SAXstartPrefixMapping(prefix,uri) call and the mapping applies to theelement to come. If false the mapping applies to the current element. boolean false if the prefix mapping was already in effect (inother words we are just re-declaring), true if this is a new, neverbefore seen mapping for the element.
throws:
  SAXException -



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