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 StringID_ATTRIBUTE_NAMEstatic StringRELATIONSHIP_TAG_NAMEstatic StringRELATIONSHIPS_TAG_NAMEstatic StringTARGET_ATTRIBUTE_NAMEstatic StringTARGET_MODE_ATTRIBUTE_NAMEstatic StringTYPE_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 booleanequals(Object obj)static URIgetContainerPartRelationship()StringgetId()OPCPackagegetPackage()StringgetRelationshipType()PackagePartgetSource()URIgetSourceURI()TargetModegetTargetMode()URIgetTargetURI()inthashCode()StringtoString()
-
-
-
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.
-
-
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
-
-