public final class PackageRelationship
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID_ATTRIBUTE_NAME |
static java.lang.String |
RELATIONSHIP_TAG_NAME |
static java.lang.String |
RELATIONSHIPS_TAG_NAME |
static java.lang.String |
TARGET_ATTRIBUTE_NAME |
static java.lang.String |
TARGET_MODE_ATTRIBUTE_NAME |
static java.lang.String |
TYPE_ATTRIBUTE_NAME |
Constructor and Description |
---|
PackageRelationship(OPCPackage pkg,
PackagePart sourcePart,
java.net.URI targetUri,
TargetMode targetMode,
java.lang.String relationshipType,
java.lang.String id)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static java.net.URI |
getContainerPartRelationship() |
java.lang.String |
getId() |
OPCPackage |
getPackage() |
java.lang.String |
getRelationshipType() |
PackagePart |
getSource() |
java.net.URI |
getSourceURI() |
TargetMode |
getTargetMode() |
java.net.URI |
getTargetURI() |
int |
hashCode() |
java.lang.String |
toString() |
public static final java.lang.String ID_ATTRIBUTE_NAME
public static final java.lang.String RELATIONSHIPS_TAG_NAME
public static final java.lang.String RELATIONSHIP_TAG_NAME
public static final java.lang.String TARGET_ATTRIBUTE_NAME
public static final java.lang.String TARGET_MODE_ATTRIBUTE_NAME
public static final java.lang.String TYPE_ATTRIBUTE_NAME
public PackageRelationship(OPCPackage pkg, PackagePart sourcePart, java.net.URI targetUri, TargetMode targetMode, java.lang.String relationshipType, java.lang.String id)
pkg
- sourcePart
- targetUri
- targetMode
- relationshipType
- id
- public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static java.net.URI getContainerPartRelationship()
public OPCPackage getPackage()
public java.lang.String getId()
public java.lang.String getRelationshipType()
public PackagePart getSource()
public java.net.URI getSourceURI()
public TargetMode getTargetMode()
public java.net.URI getTargetURI()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.