customxmlpart-ag凯发旗舰厅
com.spire.doc.documents.markup
class customxmlpart
java.lang.object
com.spire.doc.documents.markup.customxmlpart
public class customxmlpart
- extends java.lang.object
represents a custom xml data storage part (custom xml data within a openpackage).
a ooml or doc document can contain one or more custom xml data storage parts. spire.words preserves and
allows to create and extract custom xml data via the document.getcustomxmlparts()
collection.
document.getcustomxmlparts()
constructor summary |
customxmlpart()
initializes an instance of this class. |
method summary |
customxmlpart |
deepclone()
makes a "deep enough" copy of the object. |
byte[] |
getdata()
gets the xml content of this custom xml data storage part. |
java.lang.string |
getid()
gets the string that identifies this custom xml part within an ooxml document. |
void |
setdata(byte[] value)
sets the xml content of this custom xml data storage part. |
void |
setid(java.lang.string value)
sets the string that identifies this custom xml part within an ooxml document. |
customxmlpart
public customxmlpart()
- initializes an instance of this class.
getid
public java.lang.string getid()
- gets the string that identifies this custom xml part within an ooxml document.
the default value is an empty string.
iso/iec 29500 specifies that this value is a guid, but microsoft word seems to allow any string
value for this property and spire.words does the same. a valid value must be an identifier that is
unique among all custom xml data parts in this document.
- returns:
- string
setid
public void setid(java.lang.string value)
- sets the string that identifies this custom xml part within an ooxml document.
iso/iec 29500 specifies that this value is a guid, but microsoft word seems to allow any string
value for this property and spire.words does the same. a valid value must be an identifier that is
unique among all custom xml data parts in this document.
- parameters:
value
- the value cannot be null.
getdata
public byte[] getdata()
- gets the xml content of this custom xml data storage part.
- returns:
- the default value is an empty byte array.
setdata
public void setdata(byte[] value)
- sets the xml content of this custom xml data storage part.
- parameters:
value
- the value cannot be null
deepclone
public customxmlpart deepclone()
- makes a "deep enough" copy of the object.
does not duplicate the bytes of the
customxmlpart.getdata()
value.
- returns:
- customxmlpart