/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
using namespace xercesc;
using namespace std;
+AnyElementImpl::AnyElementImpl()
+{
+}
+
+AnyElementImpl::AnyElementImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const xmltooling::QName* schemaType)
+ : AbstractXMLObject(nsURI, localName, prefix, schemaType)
+{
+}
+
+AnyElementImpl::~AnyElementImpl()
+{
+}
+
XMLObject* AnyElementImpl::clone() const {
auto_ptr<XMLObject> domClone(AbstractDOMCachingXMLObject::clone());
AnyElementImpl* ret=dynamic_cast<AnyElementImpl*>(domClone.get());
return new AnyElementImpl(*this);
}
-AnyElementImpl::AnyElementImpl(const AnyElementImpl& src) : AbstractXMLObject(src), AbstractDOMCachingXMLObject(src),
- AbstractComplexElement(src), AbstractAttributeExtensibleXMLObject(src) {
+AnyElementImpl::AnyElementImpl(const AnyElementImpl& src)
+ : AbstractXMLObject(src),
+ AbstractDOMCachingXMLObject(src),
+ AbstractComplexElement(src),
+ AbstractAttributeExtensibleXMLObject(src) {
const vector<XMLObject*>& children = src.getUnknownXMLObjects();
for (vector<XMLObject*>::const_iterator i=children.begin(); i!=children.end(); ++i)
getUnknownXMLObjects().push_back((*i)->clone());
}
-void AnyElementImpl::marshallAttributes(DOMElement* domElement) const {
+void AnyElementImpl::marshallAttributes(DOMElement* domElement) const
+{
marshallExtensionAttributes(domElement);
}
-void AnyElementImpl::processChildElement(XMLObject* childXMLObject, const DOMElement* root) {
+void AnyElementImpl::processChildElement(XMLObject* childXMLObject, const DOMElement* root)
+{
getUnknownXMLObjects().push_back(childXMLObject);
}
-void AnyElementImpl::processAttribute(const DOMAttr* attribute) {
+void AnyElementImpl::processAttribute(const DOMAttr* attribute)
+{
unmarshallExtensionAttribute(attribute);
}
XMLObject* AnyElementBuilder::buildObject(
const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const xmltooling::QName* schemaType
- ) const {
+ ) const
+{
return new AnyElementImpl(nsURI, localName, prefix, schemaType);
}