public class POIXMLProperties.CustomProperties extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FORMAT_ID
Each custom property element contains an fmtid attribute
with the same GUID value ({D5CDD505-2E9C-101B-9397-08002B2CF9AE}).
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String name,
boolean value)
Add a new boolean property
|
void |
addProperty(String name,
double value)
Add a new double property
|
void |
addProperty(String name,
int value)
Add a new integer property
|
void |
addProperty(String name,
String value)
Add a new string property
|
boolean |
contains(String name)
Check if a property with this name already exists in the collection of custom properties
|
org.openxmlformats.schemas.officeDocument.x2006.customProperties.CTProperties |
getUnderlyingProperties() |
protected int |
nextPid()
Generate next id that uniquely relates a custom property
|
public static final String FORMAT_ID
public org.openxmlformats.schemas.officeDocument.x2006.customProperties.CTProperties getUnderlyingProperties()
public void addProperty(String name, String value)
IllegalArgumentException
- if a property with this name already existspublic void addProperty(String name, double value)
IllegalArgumentException
- if a property with this name already existspublic void addProperty(String name, int value)
IllegalArgumentException
- if a property with this name already existspublic void addProperty(String name, boolean value)
IllegalArgumentException
- if a property with this name already existsprotected int nextPid()
public boolean contains(String name)
name
- the name to checkCopyright © 2020. All rights reserved.