Package org.apache.poi.openxml4j.opc
Class PackageRelationship
- java.lang.Object
-
- org.apache.poi.openxml4j.opc.PackageRelationship
-
public final class PackageRelationship extends Object
A part relationship.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID_ATTRIBUTE_NAME
static String
RELATIONSHIP_TAG_NAME
static String
RELATIONSHIPS_TAG_NAME
static String
TARGET_ATTRIBUTE_NAME
static String
TARGET_MODE_ATTRIBUTE_NAME
static String
TYPE_ATTRIBUTE_NAME
-
Constructor Summary
Constructors Constructor Description PackageRelationship(OPCPackage pkg, PackagePart sourcePart, URI targetUri, TargetMode targetMode, String relationshipType, String id)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static URI
getContainerPartRelationship()
String
getId()
OPCPackage
getPackage()
String
getRelationshipType()
PackagePart
getSource()
URI
getSourceURI()
TargetMode
getTargetMode()
URI
getTargetURI()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
ID_ATTRIBUTE_NAME
public static final String ID_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
RELATIONSHIPS_TAG_NAME
public static final String RELATIONSHIPS_TAG_NAME
- See Also:
- Constant Field Values
-
RELATIONSHIP_TAG_NAME
public static final String RELATIONSHIP_TAG_NAME
- See Also:
- Constant Field Values
-
TARGET_ATTRIBUTE_NAME
public static final String TARGET_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
TARGET_MODE_ATTRIBUTE_NAME
public static final String TARGET_MODE_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
TYPE_ATTRIBUTE_NAME
public static final String TYPE_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
-
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
-
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
-
-