Class PackageRelationship


  • public final class PackageRelationship
    extends Object
    A part relationship.
    • Constructor Detail

      • PackageRelationship

        public PackageRelationship​(OPCPackage pkg,
                                   PackagePart sourcePart,
                                   URI targetUri,
                                   TargetMode targetMode,
                                   String relationshipType,
                                   String id)
        Constructor.
        Parameters:
        pkg -
        sourcePart -
        targetUri -
        targetMode -
        relationshipType -
        id -
    • Method Detail

      • 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