CustomPart
Overview
CustomPart is a class in Aspose.Words FOSS for Java.
Inherits from: Cloneable.
Represents a custom (arbitrary content) part, that is not defined by the ISO/IEC 29500 standard.
Edition status of its 15 listed members (a property and its accessor methods are listed separately, overloads once): 15 not yet exercised by a verified example.
This class declares 11 methods for CustomPart objects in Java programs.
Available methods include: deepClone, getContentType, getData, getName, getRelationshipType, isExternal, setContentType, setData, setName, setRelationshipType.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: contentType, data, external, name, relationshipType.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read/Write | Gets or sets this part’s absolute name within the OOXML package or the target URL. |
relationshipType | String | Read/Write | Gets or sets the relationship type from the parent part to this custom part. |
external | boolean | Read/Write | False if this custom part is stored inside the OOXML package. |
contentType | String | Read/Write | Specifies the content type of this custom part. |
data | byte[] | Read/Write | Gets or sets the data. |
Methods
| Signature | Description |
|---|---|
getName() → String | Gets or sets this part’s absolute name within the OOXML package or the target URL. |
setName(value: String) | Sets the name value. |
getRelationshipType() → String | Gets or sets the relationship type from the parent part to this custom part. |
setRelationshipType(value: String) | Sets the relationship type value. |
isExternal() → boolean | False if this custom part is stored inside the OOXML package. |
isExternal(value: boolean) | Calls isExternal(value) on this CustomPart instance. |
getContentType() → String | Specifies the content type of this custom part. |
setContentType(value: String) | Sets the content type value. |
getData() → byte[] | Returns the data. |
setData(value: byte[]) | Sets the data value. |
deepClone() → CustomPart | Makes a “deep enough” copy of the object. |