22 #ifndef RELATIONSHIP_H 23 #define RELATIONSHIP_H 42 Relationship(
const std::string & rsTarget,
const std::string & rsType,
const std::string & rsId,
const bool & internalTarget =
true);
50 bool isInternalTarget()
const;
51 const std::string& getTarget()
const;
52 const std::string& getType()
const;
53 const std::string& getId()
const;
55 void setIsExternalTarget();
56 void setIsInternalTarget();
57 void setTarget(
const std::string & rsTarget);
62 void setType(
const std::string & rsType);
65 void setDestinationObjectType() {type =
"http://schemas.energistics.org/package/2012/relationships/destinationObject";}
66 void setSourceObjectType() {type =
"http://schemas.energistics.org/package/2012/relationships/sourceObject";}
67 void setDestinationMediaType() {type =
"http://schemas.energistics.org/package/2012/relationships/destinationMedia";}
68 void setSourceMediaType() {type =
"http://schemas.energistics.org/package/2012/relationships/sourceMedia";}
69 void setChunkedPartType() {type =
"http://schemas.energistics.org/package/2012/relationships/chunkedPart";}
70 void setExternalPartProxyToMlType() {type =
"http://schemas.energistics.org/package/2012/relationships/externalPartProxyToMl";}
71 void setMlToExternalPartProxyType() {type =
"http://schemas.energistics.org/package/2012/relationships/mlToExternalPartProxy";}
72 void setExternalResourceType() {type =
"http://schemas.energistics.org/package/2012/relationships/externalResource";}
77 void setId(
const std::string & rsId);
void setId(const std::string &rsId)
Definition: Relationship.cpp:94
std::string toString() const
Definition: Relationship.cpp:41
Definition: ContentType.h:26
void setType(const std::string &rsType)
Definition: Relationship.cpp:89
Definition: Relationship.h:32
Relationship(const bool &internalTarget=true)
The id uniquely identify the relationship in the context of the rel file. For epc, it also indicates the uuid of the destiantion object.
Definition: Relationship.cpp:29