Class PackageRelationship


  • public final class PackageRelationship
    extends java.lang.Object
    A part relationship.
    • Field Detail

      • ID_ATTRIBUTE_NAME

        public static final java.lang.String ID_ATTRIBUTE_NAME
        See Also:
        Constant Field Values
      • RELATIONSHIPS_TAG_NAME

        public static final java.lang.String RELATIONSHIPS_TAG_NAME
        See Also:
        Constant Field Values
      • RELATIONSHIP_TAG_NAME

        public static final java.lang.String RELATIONSHIP_TAG_NAME
        See Also:
        Constant Field Values
      • TARGET_ATTRIBUTE_NAME

        public static final java.lang.String TARGET_ATTRIBUTE_NAME
        See Also:
        Constant Field Values
      • TARGET_MODE_ATTRIBUTE_NAME

        public static final java.lang.String TARGET_MODE_ATTRIBUTE_NAME
        See Also:
        Constant Field Values
      • TYPE_ATTRIBUTE_NAME

        public static final java.lang.String TYPE_ATTRIBUTE_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • PackageRelationship

        public PackageRelationship​(OPCPackage pkg,
                                   PackagePart sourcePart,
                                   java.net.URI targetUri,
                                   TargetMode targetMode,
                                   java.lang.String relationshipType,
                                   java.lang.String id)
        Constructor.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public static java.net.URI getContainerPartRelationship()
      • getPackage

        public OPCPackage getPackage()
        Returns:
        the container
      • getId

        public java.lang.String getId()
        Returns:
        the id
      • getRelationshipType

        public java.lang.String getRelationshipType()
        Returns:
        the relationshipType
      • getSource

        public PackagePart getSource()
        Returns:
        the source
      • getSourceURI

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

        public TargetMode getTargetMode()
        Returns:
        the targetMode
      • getTargetURI

        public java.net.URI getTargetURI()
        Returns:
        the targetUri
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object