Class PackageRelationship

java.lang.Object
org.apache.poi.openxml4j.opc.PackageRelationship

public final class PackageRelationship extends Object
A part relationship.
Version:
1.0
Author:
Julien Chable
  • Field Details

  • 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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getContainerPartRelationship

      public static URI getContainerPartRelationship()
    • getPackage

      public OPCPackage getPackage()
      Returns:
      the container
    • getId

      public String getId()
      Returns:
      the id
    • getRelationshipType

      public String getRelationshipType()
      Returns:
      the relationshipType
    • getSource

      public PackagePart getSource()
      Returns:
      the source
    • getSourceURI

      public URI getSourceURI()
      Returns:
      URL of the source part of this relationship
    • getTargetMode

      public TargetMode getTargetMode()
      Returns:
      the targetMode
    • getTargetURI

      public URI getTargetURI()
      Returns:
      the targetUri
    • toString

      public String toString()
      Overrides:
      toString in class Object