|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.POIXMLProperties.CustomProperties
public static class POIXMLProperties.CustomProperties
Custom document properties
| Field Summary | |
|---|---|
static java.lang.String |
FORMAT_ID
Each custom property element contains an fmtid attribute with the same GUID value ({D5CDD505-2E9C-101B-9397-08002B2CF9AE}). |
| Method Summary | |
|---|---|
void |
addProperty(java.lang.String name,
boolean value)
Add a new boolean property |
void |
addProperty(java.lang.String name,
double value)
Add a new double property |
void |
addProperty(java.lang.String name,
int value)
Add a new integer property |
void |
addProperty(java.lang.String name,
java.lang.String value)
Add a new string property |
boolean |
contains(java.lang.String name)
Check if a property with this name already exists in the collection of custom properties |
org.openxmlformats.schemas.officeDocument.x2006.customProperties.CTProperty |
getProperty(java.lang.String name)
Retrieve the custom property with this name, or null if none exists. |
org.openxmlformats.schemas.officeDocument.x2006.customProperties.CTProperties |
getUnderlyingProperties()
|
protected int |
nextPid()
Generate next id that uniquely relates a custom property |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FORMAT_ID
| Method Detail |
|---|
public org.openxmlformats.schemas.officeDocument.x2006.customProperties.CTProperties getUnderlyingProperties()
public void addProperty(java.lang.String name,
java.lang.String value)
name - the property namevalue - the property value
java.lang.IllegalArgumentException - if a property with this name already exists
public void addProperty(java.lang.String name,
double value)
name - the property namevalue - the property value
java.lang.IllegalArgumentException - if a property with this name already exists
public void addProperty(java.lang.String name,
int value)
name - the property namevalue - the property value
java.lang.IllegalArgumentException - if a property with this name already exists
public void addProperty(java.lang.String name,
boolean value)
name - the property namevalue - the property value
java.lang.IllegalArgumentException - if a property with this name already existsprotected int nextPid()
public boolean contains(java.lang.String name)
name - the name to check
public org.openxmlformats.schemas.officeDocument.x2006.customProperties.CTProperty getProperty(java.lang.String name)
name - the name of the property to fetch
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||