void XalanSourceTreeHelper::appendSibling( XalanSourceTreeDocument* theDocument, XalanNode*& theNextSiblingSlot, XalanNode* theNewSibling) { if (theNewSibling->getOwnerDocument() != theDocument) { throw XalanDOMException(XalanDOMException::WRONG_DOCUMENT_ERR); } else { switch(theNewSibling->getNodeType()) { case XalanNode::COMMENT_NODE: append(theNextSiblingSlot, castToComment(theNewSibling)); break; case XalanNode::ELEMENT_NODE: append(theNextSiblingSlot, castToElement(theNewSibling)); break; case XalanNode::PROCESSING_INSTRUCTION_NODE: append(theNextSiblingSlot, castToProcessingInstruction(theNewSibling)); break; default: throw XalanDOMException(XalanDOMException::HIERARCHY_REQUEST_ERR); break; } } }
void XObjectResultTreeFragProxyText::deleteData( unsigned int /* offset */, unsigned int /* count */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); }
void XObjectResultTreeFragProxyText::insertData( unsigned int /* offset */, const XalanDOMString& /* arg */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); }
XalanAttr* XercesElementWrapper::setAttributeNodeNS(XalanAttr* /* newAttr */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); return 0; }
XalanText* XObjectResultTreeFragProxyText::splitText(unsigned int /* offset */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); return 0; }
inline void doAppendSibling( NodeType* thePreviousSibling, XalanNode*& theNextSiblingSlot, XalanNode* theNewSibling) { assert(theNewSibling != 0); assert(theNextSiblingSlot == 0 || theNextSiblingSlot->getParentNode() == theNewSibling->getParentNode()); switch(theNewSibling->getNodeType()) { case XalanNode::COMMENT_NODE: append(thePreviousSibling, theNextSiblingSlot, castToComment(theNewSibling)); break; case XalanNode::ELEMENT_NODE: append(thePreviousSibling, theNextSiblingSlot, castToElement(theNewSibling)); break; case XalanNode::PROCESSING_INSTRUCTION_NODE: append(thePreviousSibling, theNextSiblingSlot, castToProcessingInstruction(theNewSibling)); break; case XalanNode::TEXT_NODE: append(thePreviousSibling, theNextSiblingSlot, castToText(theNewSibling)); break; default: throw XalanDOMException(XalanDOMException::HIERARCHY_REQUEST_ERR); break; } }
void XalanSourceTreeText::deleteData( unsigned int /* offset */, unsigned int /* count */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); }
void XalanSourceTreeElement::removeAttributeNS( const XalanDOMString& /* namespaceURI */, const XalanDOMString& /* localName */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); }
inline void doAppendSibling( XalanNode* theSibling, NodeType* theNewSibling) { assert(theSibling != 0); assert(theNewSibling != 0); XalanNode* const theLastSibling = XalanSourceTreeHelper::getLastSibling(theSibling); switch(theLastSibling->getNodeType()) { case XalanNode::COMMENT_NODE: castToComment(theLastSibling)->appendSiblingNode(theNewSibling); break; case XalanNode::ELEMENT_NODE: castToElement(theLastSibling)->appendSiblingNode(theNewSibling); break; case XalanNode::PROCESSING_INSTRUCTION_NODE: castToProcessingInstruction(theLastSibling)->appendSiblingNode(theNewSibling); break; case XalanNode::TEXT_NODE: castToText(theLastSibling)->appendSiblingNode(theNewSibling); break; default: throw XalanDOMException(XalanDOMException::HIERARCHY_REQUEST_ERR); break; } }
XalanAttr* XercesElementWrapper::removeAttributeNode(XalanAttr* /* oldAttr */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); return 0; }
void XalanSourceTreeElement::setAttribute( const XalanDOMString& /* name */, const XalanDOMString& /* value */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); }
void XalanSourceTreeText::insertData( unsigned int /* offset */, const XalanDOMString& /* arg */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); }
const XalanNodeList* XObjectResultTreeFragProxyBase::getChildNodes() const { throw XalanDOMException(XalanDOMException::NOT_SUPPORTED_ERR); return 0; }
void XercesElementWrapper::setAttribute( const XalanDOMString& /* name */, const XalanDOMString& /* value */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); }
XalanNode* XObjectResultTreeFragProxyText::appendChild(XalanNode* /* newChild */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); // Dummy return value... return 0; }
XalanNode* XalanSourceTreeProcessingInstruction::removeChild(XalanNode* /* oldChild */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); // Dummy return value... return 0; }
XalanAttr* XalanSourceTreeElement::setAttributeNodeNS(XalanAttr* /* newAttr */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); // Dummy return value... return 0; }
XalanNodeList* XalanSourceTreeElement::getElementsByTagName(const XalanDOMString& /* name */) const { throw XalanDOMException(XalanDOMException::NOT_SUPPORTED_ERR); // Dummy return value... return 0; }
const XalanNodeList* XObjectResultTreeFragProxyText::getChildNodes() const { throw XalanDOMException(XalanDOMException::NOT_SUPPORTED_ERR); // Dummy return value... return 0; }
const XalanNodeList* XalanSourceTreeText::getChildNodes() const { throw XalanDOMException(XalanDOMException::NOT_SUPPORTED_ERR); // Dummy return value... return 0; }
XalanNode* XalanSourceTreeText::appendChild(XalanNode* /* newChild */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); // Dummy return value... return 0; }
XalanNode* XObjectResultTreeFragProxyBase::removeChild(XalanNode* /* oldChild */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); // Dummy return value... return 0; }
XObjectResultTreeFragProxyBase* #endif XObjectResultTreeFragProxyBase::cloneNode(bool /* deep */) const { throw XalanDOMException(XalanDOMException::NOT_SUPPORTED_ERR); return 0; }
XalanSourceTreeText* #endif XalanSourceTreeText::cloneNode(bool /* deep */) const { throw XalanDOMException(XalanDOMException::NOT_SUPPORTED_ERR); // Dummy return value... return 0; }
XalanNode* XalanSourceTreeElement::replaceChild( XalanNode* /* newChild */, XalanNode* /* oldChild */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); // Dummy return value... return 0; }
XalanNode* XalanSourceTreeText::insertBefore( XalanNode* /* newChild */, XalanNode* /* refChild */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); // Dummy return value... return 0; }
XalanNode* XObjectResultTreeFragProxyBase::insertBefore( XalanNode* /* newChild */, XalanNode* /* refChild */) { throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR); // Dummy return value... return 0; }
void ElemVariable::setParentNodeElem(ElemTemplateElement* theParent) { if (m_isTopLevel == true) { throw XalanDOMException(XalanDOMException::HIERARCHY_REQUEST_ERR); } else { ParentType::setParentNodeElem(theParent); } }
void FormatterToSourceTree::characters( const XMLCh* const chars, const unsigned int length) { if (m_documentFragment != 0) { append(m_textBuffer, chars, length); } else if (m_currentElement == 0) { if (isXMLWhitespace(chars) == false) { throw XalanDOMException(XalanDOMException::HIERARCHY_REQUEST_ERR); } } else { append(m_textBuffer, chars, length); } }
void FormatterToSourceTree::doCharacters( const XMLCh* chars, XalanDOMString::size_type length) { if (m_currentElement != 0) { doAppendChildNode( m_currentElement, m_lastChild, m_document->createTextNode(chars, length, m_currentElement)); } else if (m_documentFragment != 0) { doAppendChildNode( m_documentFragment, m_lastChild, m_document->createTextNode(chars, length, m_currentElement)); } else { throw XalanDOMException(XalanDOMException::HIERARCHY_REQUEST_ERR); } }