public class DocumentRelationship
extends java.lang.Object
Constructor and Description |
---|
DocumentRelationship()
Constructor
|
DocumentRelationship(java.lang.String id,
java.lang.String type,
java.lang.String target)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getNewTarget()
Get new target of relationship file.
|
java.util.Map<java.lang.String,java.lang.String> |
getOtherAttributeMap()
Get map of other attribute in Relationship tag of document.xml.rels.
|
java.lang.String |
getrId()
Get relation id of attribute Id.
|
java.lang.String |
getTarget()
Get target of relationship file.
|
java.lang.String |
getType()
Get type of relationship file.
|
int |
hashCode() |
void |
setNewTarget(java.lang.String newTarget)
Set new target of relationship file.
If the relationship file come from child template. The target path will be changed. For example: Old path = "media/image1.jpg" New path = "sectionchild0/image1.jpg" |
void |
setOtherAttributeMap(java.util.Map<java.lang.String,java.lang.String> otherAttributeMap)
Set map of other attribute in Relationship tag of document.xml.rels.
|
void |
setrId(java.lang.String rId)
Set relation id.
Ex. |
void |
setTarget(java.lang.String target)
Set target of relationship file.
Ex. |
void |
setType(java.lang.String type)
Set type of relationship file.
Ex. |
void |
updateOtherAttributeMap(java.lang.String key,
java.lang.String value)
Update key/valu of other attribute in Relationship tag of document.xml.rels.
|
public DocumentRelationship()
public DocumentRelationship(java.lang.String id, java.lang.String type, java.lang.String target)
id
- relation idtype
- type of relationtarget
- target filepublic java.lang.String getrId()
public void setrId(java.lang.String rId)
rId
- relation idpublic java.lang.String getType()
public void setType(java.lang.String type)
type
- type of relationship filepublic java.lang.String getTarget()
public void setTarget(java.lang.String target)
target
- target of relationship filepublic java.lang.String getNewTarget()
public void setNewTarget(java.lang.String newTarget)
newTarget
- new target of relationship filepublic java.util.Map<java.lang.String,java.lang.String> getOtherAttributeMap()
public void setOtherAttributeMap(java.util.Map<java.lang.String,java.lang.String> otherAttributeMap)
otherAttributeMap
- map of other attribute in Relationship tag.public void updateOtherAttributeMap(java.lang.String key, java.lang.String value)
key
- attribute namevalue
- attribute valuepublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2010 - No Magic Asia