2 * Copyright 2001-2006 Internet2
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @file xmltooling/ElementProxy.h
20 * An XMLObject with an open content model
23 #ifndef __xmltooling_eleproxy_h__
24 #define __xmltooling_eleproxy_h__
26 #include <xmltooling/XMLObject.h>
27 #include <xmltooling/util/XMLObjectChildrenList.h>
29 using namespace xercesc;
31 namespace xmltooling {
34 * An XMLObject that exposes its children via mutable list.
36 class XMLTOOL_API ElementProxy : public virtual XMLObject
40 virtual ~ElementProxy() {}
43 * Gets a mutable list of child objects
45 * @return mutable list of child objects
47 virtual ListOf(XMLObject) getXMLObjects()=0;
50 * Gets an immutable list of child objects
52 * @return immutable list of child objects
54 virtual const std::list<XMLObject*>& getXMLObjects() const=0;
59 #endif /* __xmltooling_eleproxy_h__ */