34 #ifndef RELATIONSHIP_H 35 #define RELATIONSHIP_H 54 Relationship(
const std::string & rsTarget,
const std::string & rsType,
const std::string & rsId,
const bool & internalTarget =
true);
62 bool isInternalTarget()
const;
63 const std::string& getTarget()
const;
64 const std::string& getType()
const;
65 const std::string& getId()
const;
67 void setIsExternalTarget();
68 void setIsInternalTarget();
69 void setTarget(
const std::string & rsTarget);
74 void setType(
const std::string & rsType);
77 void setDestinationObjectType() {type =
"http://schemas.energistics.org/package/2012/relationships/destinationObject";}
78 void setSourceObjectType() {type =
"http://schemas.energistics.org/package/2012/relationships/sourceObject";}
79 void setDestinationMediaType() {type =
"http://schemas.energistics.org/package/2012/relationships/destinationMedia";}
80 void setSourceMediaType() {type =
"http://schemas.energistics.org/package/2012/relationships/sourceMedia";}
81 void setChunkedPartType() {type =
"http://schemas.energistics.org/package/2012/relationships/chunkedPart";}
82 void setExternalPartProxyToMlType() {type =
"http://schemas.energistics.org/package/2012/relationships/externalPartProxyToMl";}
83 void setMlToExternalPartProxyType() {type =
"http://schemas.energistics.org/package/2012/relationships/mlToExternalPartProxy";}
84 void setExternalResourceType() {type =
"http://schemas.energistics.org/package/2012/relationships/externalResource";}
89 void setId(
const std::string & rsId);
void setId(const std::string &rsId)
Definition: Relationship.cpp:106
std::string toString() const
Definition: Relationship.cpp:53
Definition: ContentType.h:39
void setType(const std::string &rsType)
Definition: Relationship.cpp:101
Definition: Relationship.h:44
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:41