46 #ifndef OME_XML_MODEL_EXTERNAL_H
47 #define OME_XML_MODEL_EXTERNAL_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>
63 #include <ome/xml/model/enums/Compression.h>
84 ome::compat::shared_ptr<ome::xml::model::enums::Compression>
compression;
119 static ome::compat::shared_ptr< External>
144 link (ome::compat::shared_ptr<Reference>& reference,
145 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
161 sethref (
const std::string& href);
168 ome::compat::shared_ptr<ome::xml::model::enums::Compression>
176 const ome::compat::shared_ptr<ome::xml::model::enums::Compression>
185 setCompression (ome::compat::shared_ptr<ome::xml::model::enums::Compression>& compression);
201 setSHA1 (
const std::string& sha1);
225 #endif // OME_XML_MODEL_EXTERNAL_H
External model object.
Definition: External.h:78
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
ome::compat::shared_ptr< ome::xml::model::enums::Compression > compression
Compression property.
Definition: External.h:84
static ome::compat::shared_ptr< External > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a External model object from DOM element.
Definition: External.cpp:130
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: External.cpp:305
const std::string & elementName() const
Get the element name of this model object.
Definition: External.cpp:139
ome::compat::shared_ptr< ome::xml::model::enums::Compression > getCompression()
Get the Compression property.
Definition: External.cpp:218
DOM Document wrapper.
Definition: Document.h:82
DOM Element wrapper.
Definition: Element.h:66
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
const std::string & gethref() const
Get the href property.
Definition: External.cpp:204
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: External.cpp:189
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: External.cpp:146
std::string href
href property
Definition: External.h:82
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
External()
Default constructor.
Definition: External.cpp:102
std::string sha1
SHA1 property.
Definition: External.h:86
void setCompression(ome::compat::shared_ptr< ome::xml::model::enums::Compression > &compression)
Set the Compression property.
Definition: External.cpp:232
void sethref(const std::string &href)
Set the href property.
Definition: External.cpp:211
void setSHA1(const std::string &sha1)
Set the SHA1 property.
Definition: External.cpp:246
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: External.cpp:253
virtual ~External()
Destructor.
Definition: External.cpp:125
const std::string & getSHA1() const
Get the SHA1 property.
Definition: External.cpp:239
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: External.cpp:260
Xerces-C modern C++ wrapper.
Definition: Base.h:53
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: External.cpp:155