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

NameTypeAccessDescription
nameStringRead/WriteGets or sets this part’s absolute name within the OOXML package or the target URL.
relationshipTypeStringRead/WriteGets or sets the relationship type from the parent part to this custom part.
externalbooleanRead/WriteFalse if this custom part is stored inside the OOXML package.
contentTypeStringRead/WriteSpecifies the content type of this custom part.
databyte[]Read/WriteGets or sets the data.

Methods

SignatureDescription
getName() → StringGets or sets this part’s absolute name within the OOXML package or the target URL.
setName(value: String)Sets the name value.
getRelationshipType() → StringGets or sets the relationship type from the parent part to this custom part.
setRelationshipType(value: String)Sets the relationship type value.
isExternal() → booleanFalse if this custom part is stored inside the OOXML package.
isExternal(value: boolean)Calls isExternal(value) on this CustomPart instance.
getContentType() → StringSpecifies 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() → CustomPartMakes a “deep enough” copy of the object.

See Also