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