Xalan-C++ API Documentation
Xalan-C++ API Documentation
The Xalan C++ XSLT Processor Version 1.9
FormatterToXMLBase Class Reference
FormatterToXML_UTF8 formats SAX-style events into XML.
More...
Inheritance diagram for FormatterToXMLBase:
[legend]Collaboration diagram for FormatterToXMLBase:
[legend]List of all members.Public Types
Public Member Functions
- FormatterToXMLBase (Writer &writer, const XalanDOMString &version, const XalanDOMString &mediaType, const XalanDOMString &doctypeSystem, const XalanDOMString &doctypePublic, bool xmlDecl, const XalanDOMString &standalone, MemoryManagerType &theManager XALAN_DEFAULT_MEMMGR)
- Constructor.
- virtual ~FormatterToXMLBase ()
- MemoryManagerType & getMemoryManager ()
- virtual void setDocumentLocator (const LocatorType *const locator)
- virtual void startDocument ()
- virtual void endDocument ()
- virtual void startElement (const XMLCh *const name, AttributeListType &attrs)=0
- virtual void endElement (const XMLCh *const name)=0
- virtual void characters (const XMLCh *const chars, const unsigned int length)
- virtual void charactersRaw (const XMLCh *const chars, const unsigned int length)=0
- virtual void entityReference (const XMLCh *const name)=0
- Receive notification of a entityReference.
- virtual void ignorableWhitespace (const XMLCh *const chars, const unsigned int length)
- virtual void processingInstruction (const XMLCh *const target, const XMLCh *const data)
- virtual void resetDocument ()
- virtual void comment (const XMLCh *const data)=0
- Called when a Comment is to be constructed.
- virtual void cdata (const XMLCh *const ch, const unsigned int length)
- virtual Writer * getWriter () const
- virtual const XalanDOMString & getDoctypeSystem () const
- virtual const XalanDOMString & getDoctypePublic () const
- virtual const XalanDOMString & getEncoding () const=0
- virtual const XalanDOMString & getMediaType () const
- const XalanDOMString & getVersion () const
- const XalanDOMString & getStandalone () const
- bool getShouldWriteXMLHeader () const
- void setShouldWriteXMLHeader (bool b)
Protected Types
Protected Member Functions
Static Protected Member Functions
Protected Attributes
Static Protected Attributes
Detailed Description
FormatterToXML_UTF8 formats SAX-style events into XML.
Member Typedef Documentation
Member Enumeration Documentation
anonymous enum [protected]
|
|
|
- Enumeration values:
-
kNotSpecial |
|
kContentSpecial |
|
kAttributeSpecial |
|
kBothSpecial |
|
kSpecialsSize |
|
kBufferSize |
|
|
Constructor & Destructor Documentation
|
Constructor.
- Parameters:
-
writer | the writer. |
version | the string to write for the XML version number. |
mediaType | media type (MIME content type) of the data |
doctypeSystem | system identifier to be used in the document type declaration |
doctypePublic | public identifier to be used in the document type declaration |
xmlDecl | true if the XSLT processor should output an XML declaration |
standalone | The string the XSLT processor should output for the standalone document declaration |
|
Member Function Documentation
virtual void FormatterToXMLBase::cdata |
( |
const XMLCh *const |
ch, |
|
|
const unsigned int |
length |
|
) |
[virtual] |
|
virtual void FormatterToXMLBase::characters |
( |
const XMLCh *const |
chars, |
|
|
const unsigned int |
length |
|
) |
[virtual] |
|
virtual void FormatterToXMLBase::charactersRaw |
( |
const XMLCh *const |
chars, |
|
|
const unsigned int |
length |
|
) |
[pure virtual] |
|
bool FormatterToXMLBase::childNodesWereAdded |
( |
|
) |
[protected] |
|
|
Determine if an element ever had any children added.
- Returns:
- true if the children were added, false if not.
|
virtual void FormatterToXMLBase::comment |
( |
const XMLCh *const |
data |
) |
[pure virtual] |
|
unsigned int FormatterToXMLBase::decodeUTF16SurrogatePair |
( |
XalanDOMChar |
theHighSurrogate, |
|
|
XalanDOMChar |
theLowSurrogate, |
|
|
MemoryManagerType & |
theManager |
|
) |
[static, protected] |
|
virtual void FormatterToXMLBase::endDocument |
( |
|
) |
[virtual] |
|
virtual void FormatterToXMLBase::endElement |
( |
const XMLCh *const |
name |
) |
[pure virtual] |
|
virtual void FormatterToXMLBase::entityReference |
( |
const XMLCh *const |
name |
) |
[pure virtual] |
|
virtual void FormatterToXMLBase::flushBuffer |
( |
|
) |
[protected, pure virtual] |
|
void FormatterToXMLBase::flushWriter |
( |
|
) |
[protected] |
|
void FormatterToXMLBase::generateDoctypeDecl |
( |
const XalanDOMChar * |
name |
) |
[protected] |
|
virtual const XalanDOMString& FormatterToXMLBase::getDoctypePublic |
( |
|
) |
const [virtual] |
|
virtual const XalanDOMString& FormatterToXMLBase::getDoctypeSystem |
( |
|
) |
const [virtual] |
|
virtual const XalanDOMString& FormatterToXMLBase::getEncoding |
( |
|
) |
const [pure virtual] |
|
virtual const XalanDOMString& FormatterToXMLBase::getMediaType |
( |
|
) |
const [virtual] |
|
bool FormatterToXMLBase::getShouldWriteXMLHeader |
( |
|
) |
const |
|
virtual Writer* FormatterToXMLBase::getWriter |
( |
|
) |
const [virtual] |
|
virtual void FormatterToXMLBase::ignorableWhitespace |
( |
const XMLCh *const |
chars, |
|
|
const unsigned int |
length |
|
) |
[virtual] |
|
bool FormatterToXMLBase::isUTF16HighSurrogate |
( |
XalanDOMChar |
theChar |
) |
[static, protected] |
|
bool FormatterToXMLBase::isUTF16LowSurrogate |
( |
XalanDOMChar |
theChar |
) |
[static, protected] |
|
bool FormatterToXMLBase::markParentForChildren |
( |
|
) |
[protected] |
|
|
Mark the parent element as having a child.
If this is the first child, return true, otherwise, return false. This allows the child element to determine if the parent tag has already been closed.
- Returns:
- true if the parent element has not been previously marked for children.
|
void FormatterToXMLBase::openElementForChildren |
( |
|
) |
[protected] |
|
|
Open an element for possibile children.
|
virtual void FormatterToXMLBase::outputNewline |
( |
|
) |
[protected, pure virtual] |
|
bool FormatterToXMLBase::outsideDocumentElement |
( |
|
) |
const [protected] |
|
virtual void FormatterToXMLBase::processingInstruction |
( |
const XMLCh *const |
target, |
|
|
const XMLCh *const |
data |
|
) |
[virtual] |
|
virtual void FormatterToXMLBase::resetDocument |
( |
|
) |
[virtual] |
|
virtual void FormatterToXMLBase::setDocumentLocator |
( |
const LocatorType *const |
locator |
) |
[virtual] |
|
void FormatterToXMLBase::setShouldWriteXMLHeader |
( |
bool |
b |
) |
|
|
virtual void FormatterToXMLBase::startDocument |
( |
|
) |
[virtual] |
|
virtual void FormatterToXMLBase::startElement |
( |
const XMLCh *const |
name, |
|
|
AttributeListType & |
attrs |
|
) |
[pure virtual] |
|
void FormatterToXMLBase::throwInvalidCharacterException |
( |
unsigned int |
ch, |
|
|
MemoryManagerType & |
theManager |
|
) |
[static, protected] |
|
|
Throw an exception when an invalid character is encountered.
- Parameters:
-
ch | The first character in the surrogate |
next | The next character in the surrogate |
|
void FormatterToXMLBase::throwInvalidUTF16SurrogateException |
( |
XalanDOMChar |
ch, |
|
|
XalanDOMChar |
next, |
|
|
MemoryManagerType & |
theManager |
|
) |
[static, protected] |
|
|
Throw an exception when an invalid surrogate is encountered.
- Parameters:
-
ch | The first character in the surrogate |
next | The next character in the surrogate |
|
void FormatterToXMLBase::throwInvalidUTF16SurrogateException |
( |
XalanDOMChar |
ch, |
|
|
MemoryManagerType & |
theManager |
|
) |
[static, protected] |
|
|
Throw an exception when an invalid surrogate is encountered.
- Parameters:
-
ch | The first character in the surrogate |
|
virtual void FormatterToXMLBase::writeCDATA |
( |
const XMLCh * |
chars, |
|
|
unsigned int |
length |
|
) |
[protected, pure virtual] |
|
virtual void FormatterToXMLBase::writeCharacters |
( |
const XMLCh * |
chars, |
|
|
unsigned int |
length |
|
) |
[protected, pure virtual] |
|
virtual void FormatterToXMLBase::writeDoctypeDecl |
( |
const XalanDOMChar * |
name |
) |
[protected, pure virtual] |
|
virtual void FormatterToXMLBase::writeProcessingInstruction |
( |
const XMLCh * |
target, |
|
|
const XMLCh * |
data |
|
) |
[protected, pure virtual] |
|
virtual void FormatterToXMLBase::writeXMLHeader |
( |
|
) |
[protected, pure virtual] |
|
Member Data Documentation
|
The public ID for the doc type.
|
|
The System ID for the doc type.
|
|
The media type.
Not used right now. |
|
The string of characters that represents the newline.
|
|
The length of the the string of characters that represents the newline.
|
|
Tell if the next text should be raw.
|
|
Add space before '/>' for XHTML.
|
|
Text for standalone part of header.
|
|
Tells the XML version, for writing out to the XML decl.
|
The documentation for this class was generated from the following file:
Interpreting class diagrams
Doxygen and
GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.9
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.
|
|