19 #ifndef RELATIONSHIP_H
20 #define RELATIONSHIP_H
39 Relationship(
const std::string & rsTarget,
const std::string & rsType,
const std::string & rsId,
const bool & internalTarget =
true);
47 bool isInternalTarget()
const;
48 const std::string& getTarget()
const;
49 const std::string& getType()
const;
50 const std::string& getId()
const;
52 void setIsExternalTarget();
53 void setIsInternalTarget();
54 void setTarget(
const std::string & rsTarget);
59 void setType(
const std::string & rsType);
62 void setDestinationObjectType() {type =
"http://schemas.energistics.org/package/2012/relationships/destinationObject";}
63 void setSourceObjectType() {type =
"http://schemas.energistics.org/package/2012/relationships/sourceObject";}
64 void setDestinationMediaType() {type =
"http://schemas.energistics.org/package/2012/relationships/destinationMedia";}
65 void setSourceMediaType() {type =
"http://schemas.energistics.org/package/2012/relationships/sourceMedia";}
66 void setChunkedPartType() {type =
"http://schemas.energistics.org/package/2012/relationships/chunkedPart";}
67 void setExternalPartProxyToMlType() {type =
"http://schemas.energistics.org/package/2012/relationships/externalPartProxyToMl";}
68 void setMlToExternalPartProxyType() {type =
"http://schemas.energistics.org/package/2012/relationships/mlToExternalPartProxy";}
69 void setExternalResourceType() {type =
"http://schemas.energistics.org/package/2012/relationships/externalResource";}
74 void setId(
const std::string & rsId);