46 #ifndef OME_XML_MODEL_REFERENCE_H
47 #define OME_XML_MODEL_REFERENCE_H
57 #include <ome/common/xml/dom/Document.h>
58 #include <ome/common/xml/dom/Element.h>
59 #include <ome/common/xml/dom/Node.h>
60 #include <ome/common/xml/dom/NodeList.h>
62 #include <ome/xml/model/detail/OMEModelObject.h>
82 ome::compat::shared_ptr<Impl>
impl;
126 setID (
const std::string&
id) = 0;
140 link (ome::compat::shared_ptr<Reference>& reference,
141 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
165 #endif // OME_XML_MODEL_REFERENCE_H
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
virtual ~Reference()
Destructor.
Definition: Reference.cpp:122
ome::compat::shared_ptr< Impl > impl
Private implementation details.
Definition: Reference.h:80
DOM Document wrapper.
Definition: Document.h:83
DOM Element wrapper.
Definition: Element.h:66
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
bool link(ome::compat::shared_ptr< Reference > &reference, ome::compat::shared_ptr< ome::xml::model::OMEModelObject > &object)
Link a given OME model object to this model object.
Definition: Reference.cpp:150
virtual common::xml::dom::Element asXMLElementInternal(common::xml::dom::Document &document, common::xml::dom::Element &element) const
Transform the object hierarchy rooted at this element to XML.
Definition: Reference.cpp:172
virtual void update(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Update the object hierarchy recursively from an XML DOM tree.
Definition: Reference.cpp:137
virtual void setID(const std::string &id)=0
Sets the reference's target object ID.
Reference & operator=(const Reference &)
Assignment operator (deleted).
Private implementation details of Reference model object.
Definition: Reference.cpp:70
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
virtual const std::string & getID() const =0
Retrieves the reference's target object ID.
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Reference.cpp:187
Reference()
Default constructor.
Definition: Reference.cpp:103
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: Reference.cpp:165
Reference model object.
Definition: Reference.h:77
Xerces-C modern C++ wrapper.
Definition: Base.h:53
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Reference.cpp:128