XalanXMLSerializerBase serves as a base class for XML serializers based on FormatterListener events.
More...
#include <xalanc/XMLSupport/XalanXMLSerializerBase.hpp>
|
| enum | { eBufferSize = 512
} |
| |
| enum | {
eNone = 0u
, eAttr = 1u
, eBoth = 2u
, eForb = 4u
,
eCRFb = 5u
} |
| |
| typedef XalanVector< bool > | BoolStackType |
| |
| enum | eFormat {
OUTPUT_METHOD_NONE = 0
, OUTPUT_METHOD_XML = 1
, OUTPUT_METHOD_HTML = 2
, OUTPUT_METHOD_TEXT = 3
,
OUTPUT_METHOD_DOM = 4
, OUTPUT_METHOD_OTHER = 5
} |
| |
| enum | eXMLVersion { XML_VERSION_1_0 = 0
, XML_VERSION_1_1 = 1
} |
| |
| typedef xercesc::DocumentHandler | ParentType |
| |
| typedef XalanSize_t | size_type |
| |
|
| | XalanXMLSerializerBase (MemoryManager &theManager, eXMLVersion theXMLVersion, const XalanDOMString &theEncoding, const XalanDOMString &theDoctypeSystem, const XalanDOMString &theDoctypePublic, bool xmlDecl, const XalanDOMString &theStandalone) |
| | Constructor.
|
| |
| virtual | ~XalanXMLSerializerBase () |
| |
| MemoryManager & | getMemoryManager () |
| |
| virtual void | setDocumentLocator (const Locator *const locator) |
| |
| virtual void | startDocument () |
| |
| virtual void | startElement (const XMLCh *const name, AttributeList &attrs)=0 |
| |
| virtual void | endElement (const XMLCh *const name)=0 |
| |
| virtual void | characters (const XMLCh *const chars, const size_type length) |
| |
| virtual void | charactersRaw (const XMLCh *const chars, const size_type length)=0 |
| |
| virtual void | entityReference (const XMLCh *const name)=0 |
| | Receive notification of a entityReference.
|
| |
| virtual void | ignorableWhitespace (const XMLCh *const chars, const size_type 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 size_type length) |
| |
| virtual const XalanDOMString & | getDoctypeSystem () const |
| |
| virtual const XalanDOMString & | getDoctypePublic () const |
| |
| virtual const XalanDOMString & | getEncoding () const |
| |
| const XalanDOMString & | getVersion () const |
| |
| const XalanDOMString & | getStandalone () const |
| |
| bool | getShouldWriteXMLHeader () const |
| |
| void | setShouldWriteXMLHeader (bool b) |
| |
| | FormatterListener (eFormat theFormat) |
| |
| virtual | ~FormatterListener () |
| |
| eFormat | getOutputFormat () const |
| | Get the output format for the instance.
|
| |
| eXMLVersion | getXMLVersion () const |
| | Get the version of XML the FormatterListener is generating.
|
| |
| bool | isXML1_1Version () const |
| | Determine if the version of XML output is 1.1.
|
| |
| const PrefixResolver * | getPrefixResolver () const |
| | Get the PrefixResolver for the FormatterListener.
|
| |
| void | setPrefixResolver (const PrefixResolver *thePrefixResolver) |
| | Set the PrefixResolver for the FormatterListener.
|
| |
| virtual void | charactersRaw (const XMLCh *const chars, const size_type length)=0 |
| | Receive notification of character data.
|
| |
| virtual void | cdata (const XMLCh *const ch, const size_type length)=0 |
| | Receive notification of cdata.
|
| |
| virtual void | characters (const XMLCh *const chars, const size_type length)=0 |
| |
| virtual void | endDocument ()=0 |
| |
| virtual void | ignorableWhitespace (const XMLCh *const chars, const size_type length)=0 |
| |
| virtual Writer * | getWriter () const |
| |
| virtual const XalanDOMString & | getMediaType () const |
| |
| virtual int | getIndent () const |
| |
XalanXMLSerializerBase serves as a base class for XML serializers based on FormatterListener events.
Definition at line 58 of file XalanXMLSerializerBase.hpp.
◆ BoolStackType
◆ anonymous enum
◆ anonymous enum
◆ XalanXMLSerializerBase()
Constructor.
- Parameters
-
| theManager | The MemoryManager instance to use for any memory allocations |
| 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 |
| theStandalone | The string the XSLT processor should output for the standalone document declaration |
◆ ~XalanXMLSerializerBase()
| virtual xalanc::XalanXMLSerializerBase::~XalanXMLSerializerBase |
( |
| ) |
|
|
virtual |
◆ cdata()
◆ characters()
◆ charactersRaw()
◆ childNodesWereAdded()
| bool xalanc::XalanXMLSerializerBase::childNodesWereAdded |
( |
| ) |
|
|
inlineprotected |
Determine if an element ever had any children added.
- Returns
- true if the children were added, false if not.
Definition at line 640 of file XalanXMLSerializerBase.hpp.
◆ comment()
◆ decodeUTF16SurrogatePair()
◆ endElement()
◆ entityReference()
◆ flushBuffer()
| virtual void xalanc::XalanXMLSerializerBase::flushBuffer |
( |
| ) |
|
|
protectedpure virtual |
◆ generateDoctypeDecl()
◆ getDoctypePublic()
◆ getDoctypeSystem()
◆ getEncoding()
◆ getMemoryManager()
| MemoryManager & xalanc::XalanXMLSerializerBase::getMemoryManager |
( |
| ) |
|
|
inline |
◆ getNeedToOutputDoctypeDecl()
| bool xalanc::XalanXMLSerializerBase::getNeedToOutputDoctypeDecl |
( |
| ) |
const |
|
inlineprotected |
◆ getShouldWriteXMLHeader()
| bool xalanc::XalanXMLSerializerBase::getShouldWriteXMLHeader |
( |
| ) |
const |
|
inline |
◆ getStandalone()
◆ getVersion()
◆ ignorableWhitespace()
◆ initialize()
| static void xalanc::XalanXMLSerializerBase::initialize |
( |
MemoryManager & |
theManager | ) |
|
|
static |
◆ isUTF16HighSurrogate()
◆ isUTF16LowSurrogate()
◆ markParentForChildren()
| bool xalanc::XalanXMLSerializerBase::markParentForChildren |
( |
| ) |
|
|
inlineprotected |
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.
Definition at line 593 of file XalanXMLSerializerBase.hpp.
◆ openElementForChildren()
| void xalanc::XalanXMLSerializerBase::openElementForChildren |
( |
| ) |
|
|
inlineprotected |
◆ outputNewline()
| virtual void xalanc::XalanXMLSerializerBase::outputNewline |
( |
| ) |
|
|
protectedpure virtual |
◆ outsideDocumentElement()
| bool xalanc::XalanXMLSerializerBase::outsideDocumentElement |
( |
| ) |
const |
|
inlineprotected |
◆ processingInstruction()
◆ resetDocument()
| virtual void xalanc::XalanXMLSerializerBase::resetDocument |
( |
| ) |
|
|
virtual |
◆ setDocumentLocator()
◆ setShouldWriteXMLHeader()
| void xalanc::XalanXMLSerializerBase::setShouldWriteXMLHeader |
( |
bool |
b | ) |
|
|
inline |
◆ startDocument()
| virtual void xalanc::XalanXMLSerializerBase::startDocument |
( |
| ) |
|
|
virtual |
◆ startElement()
◆ terminate()
| static void xalanc::XalanXMLSerializerBase::terminate |
( |
| ) |
|
|
static |
◆ throwInvalidCharacterException()
Throw an exception when an invalid character is encountered.
- Parameters
-
| ch | The first character in the surrogate |
| next | The next character in the surrogate |
◆ throwInvalidUTF16SurrogateException() [1/2]
| static void xalanc::XalanXMLSerializerBase::throwInvalidUTF16SurrogateException |
( |
XalanDOMChar |
ch, |
|
|
MemoryManager & |
theManager |
|
) |
| |
|
staticprotected |
Throw an exception when an invalid surrogate is encountered.
- Parameters
-
| ch | The first character in the surrogate |
◆ throwInvalidUTF16SurrogateException() [2/2]
Throw an exception when an invalid surrogate is encountered.
- Parameters
-
| ch | The first character in the surrogate |
| next | The next character in the surrogate |
◆ throwInvalidXMLCharacterException()
Throw an exception when an invalid character for the specific XML version is encountered.
- Parameters
-
| ch | The first character in the surrogate |
| next | The next character in the surrogate |
References xalanc::operator==().
◆ writeCDATA()
◆ writeCharacters()
◆ writeDoctypeDecl()
◆ writeProcessingInstruction()
◆ writeXMLHeader()
| virtual void xalanc::XalanXMLSerializerBase::writeXMLHeader |
( |
| ) |
|
|
protectedpure virtual |
◆ m_doctypePublic
◆ m_doctypeSystem
◆ m_encoding
◆ m_nextIsRaw
| bool xalanc::XalanXMLSerializerBase::m_nextIsRaw |
|
protected |
◆ m_spaceBeforeClose
| bool xalanc::XalanXMLSerializerBase::m_spaceBeforeClose |
|
protected |
◆ m_standalone
◆ m_version
◆ s_1_0String
◆ s_1_1String
The documentation for this class was generated from the following file: