コード例 #1
0
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;
        }
    }
}
コード例 #2
0
void
XObjectResultTreeFragProxyText::deleteData(
			unsigned int	/* offset */,
			unsigned int	/* count */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);
}
コード例 #3
0
void
XObjectResultTreeFragProxyText::insertData(
			unsigned int			/* offset */,
			const  XalanDOMString& 	/* arg */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);
}
コード例 #4
0
XalanAttr*
XercesElementWrapper::setAttributeNodeNS(XalanAttr*		/* newAttr */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);

	return 0;
}
コード例 #5
0
XalanText*
XObjectResultTreeFragProxyText::splitText(unsigned int	/* offset */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);

	return 0;
}
コード例 #6
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;
    }
}
コード例 #7
0
void
XalanSourceTreeText::deleteData(
			unsigned int	/* offset */,
			unsigned int	/* count */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);
}
コード例 #8
0
void
XalanSourceTreeElement::removeAttributeNS(
			const XalanDOMString&	/* namespaceURI */,
			const XalanDOMString&	/* localName */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);
}
コード例 #9
0
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;
    }
}
コード例 #10
0
XalanAttr*
XercesElementWrapper::removeAttributeNode(XalanAttr*	/* oldAttr */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);

	return 0;
}
コード例 #11
0
void
XalanSourceTreeElement::setAttribute(
			const XalanDOMString&	/* name */,
			const XalanDOMString&	/* value */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);
}
コード例 #12
0
void
XalanSourceTreeText::insertData(
			unsigned int			/* offset */,
			const  XalanDOMString& 	/* arg */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);
}
コード例 #13
0
const XalanNodeList*
XObjectResultTreeFragProxyBase::getChildNodes() const
{
	throw XalanDOMException(XalanDOMException::NOT_SUPPORTED_ERR);

	return 0;
}
コード例 #14
0
void
XercesElementWrapper::setAttribute(
			const XalanDOMString&	/* name */,
			const XalanDOMString&	/* value */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);
}
コード例 #15
0
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;
}
コード例 #17
0
XalanAttr*
XalanSourceTreeElement::setAttributeNodeNS(XalanAttr*	/* newAttr */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);

	// Dummy return value...
	return 0;
}
コード例 #18
0
XalanNodeList*
XalanSourceTreeElement::getElementsByTagName(const XalanDOMString&	/* name */) const
{
	throw XalanDOMException(XalanDOMException::NOT_SUPPORTED_ERR);

	// Dummy return value...
	return 0;
}
コード例 #19
0
const XalanNodeList*
XObjectResultTreeFragProxyText::getChildNodes() const
{
	throw XalanDOMException(XalanDOMException::NOT_SUPPORTED_ERR);

	// Dummy return value...
	return 0;
}
コード例 #20
0
const XalanNodeList*
XalanSourceTreeText::getChildNodes() const
{
	throw XalanDOMException(XalanDOMException::NOT_SUPPORTED_ERR);

	// Dummy return value...
	return 0;
}
コード例 #21
0
XalanNode*
XalanSourceTreeText::appendChild(XalanNode*	/* newChild */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);

	// Dummy return value...
	return 0;
}
コード例 #22
0
XalanNode*
XObjectResultTreeFragProxyBase::removeChild(XalanNode*	/* oldChild */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);

	// Dummy return value...
	return 0;
}
コード例 #23
0
XObjectResultTreeFragProxyBase*
#endif
XObjectResultTreeFragProxyBase::cloneNode(bool	/* deep */) const
{
	throw XalanDOMException(XalanDOMException::NOT_SUPPORTED_ERR);

	return 0;
}
コード例 #24
0
XalanSourceTreeText*
#endif
XalanSourceTreeText::cloneNode(bool		/* deep */) const
{
	throw XalanDOMException(XalanDOMException::NOT_SUPPORTED_ERR);

	// Dummy return value...
	return 0;
}
コード例 #25
0
XalanNode*
XalanSourceTreeElement::replaceChild(
			XalanNode*	/* newChild */,
			XalanNode*	/* oldChild */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);

	// Dummy return value...
	return 0;
}
コード例 #26
0
XalanNode*
XalanSourceTreeText::insertBefore(
			XalanNode*	/* newChild */,
			XalanNode*	/* refChild */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);

	// Dummy return value...
	return 0;
}
コード例 #27
0
XalanNode*
XObjectResultTreeFragProxyBase::insertBefore(
			XalanNode*	/* newChild */,
			XalanNode*	/* refChild */)
{
	throw XalanDOMException(XalanDOMException::NO_MODIFICATION_ALLOWED_ERR);

	// Dummy return value...
	return 0;
}
コード例 #28
0
void
ElemVariable::setParentNodeElem(ElemTemplateElement*	theParent)
{
	if (m_isTopLevel == true)
	{
		throw XalanDOMException(XalanDOMException::HIERARCHY_REQUEST_ERR);
	}
	else
	{
		ParentType::setParentNodeElem(theParent);
	}
}
コード例 #29
0
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);
	}
}
コード例 #30
0
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);
	}
}