org.apache.poi.openxml4j.opc
Class PackageRelationship
java.lang.Object
org.apache.poi.openxml4j.opc.PackageRelationship
public final class PackageRelationship
- extends java.lang.Object
A part relationship.
- Version:
- 1.0
- Author:
- Julien Chable
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
PackageRelationship
public PackageRelationship(OPCPackage pkg,
PackagePart sourcePart,
java.net.URI targetUri,
TargetMode targetMode,
java.lang.String relationshipType,
java.lang.String id)
- Constructor.
- Parameters:
pkg
- sourcePart
- targetUri
- targetMode
- relationshipType
- id
-
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
Copyright 2015 The Apache Software Foundation or
its licensors, as applicable.