Package org.apache.poi.openxml4j.opc
Class PackageRelationship
java.lang.Object
org.apache.poi.openxml4j.opc.PackageRelationship
A part relationship.
- Version:
- 1.0
- Author:
- Julien Chable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPackageRelationship
(OPCPackage pkg, PackagePart sourcePart, URI targetUri, TargetMode targetMode, String relationshipType, String id) Constructor. -
Method Summary
-
Field Details
-
ID_ATTRIBUTE_NAME
- See Also:
-
RELATIONSHIPS_TAG_NAME
- See Also:
-
RELATIONSHIP_TAG_NAME
- See Also:
-
TARGET_ATTRIBUTE_NAME
- See Also:
-
TARGET_MODE_ATTRIBUTE_NAME
- See Also:
-
TYPE_ATTRIBUTE_NAME
- See Also:
-
-
Constructor Details
-
PackageRelationship
public PackageRelationship(OPCPackage pkg, PackagePart sourcePart, URI targetUri, TargetMode targetMode, String relationshipType, String id) Constructor.- Parameters:
pkg
-sourcePart
-targetUri
-targetMode
-relationshipType
-id
-
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getContainerPartRelationship
-
getPackage
- Returns:
- the container
-
getId
- Returns:
- the id
-
getRelationshipType
- Returns:
- the relationshipType
-
getSource
- Returns:
- the source
-
getSourceURI
- Returns:
- URL of the source part of this relationship
-
getTargetMode
- Returns:
- the targetMode
-
getTargetURI
- Returns:
- the targetUri
-
toString
-