| Constructor and Description |
|---|
GenericDocument()
Constructs a document with no properties.
|
| Modifier and Type | Method and Description |
|---|---|
Property |
findProperty(java.lang.String name)
Finds a
Property by name. |
java.util.Set<java.lang.String> |
getPropertyNames()
Gets the set of names of all
Properties in this
Document. |
void |
release()
Release any resources this document is holding.
|
void |
setProperty(java.lang.String propertyName,
java.util.Calendar calendar)
Sets a date/time property for this document.
|
void |
setProperty(java.lang.String propertyName,
java.io.InputStream propertyValue)
Sets a property of type
InputStream for this Document. |
void |
setProperty(java.lang.String propertyName,
java.util.List<java.lang.String> propertyValues)
Sets a multi-valued
String property for this Document. |
void |
setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Sets a property for this Document.
|
public GenericDocument()
public void setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
propertyValue is
null, this does nothing.propertyName - the property namepropertyValue - the property value, as a Stringpublic void setProperty(java.lang.String propertyName,
java.util.Calendar calendar)
calendar is
null, this does nothing.propertyName - the property namecalendar - the property value, as a Calendarpublic void setProperty(java.lang.String propertyName,
java.io.InputStream propertyValue)
InputStream for this Document.
However, if propertyValue is null, do nothing.propertyName - the property namepropertyValue - the property value, as an InputStreampublic void setProperty(java.lang.String propertyName,
java.util.List<java.lang.String> propertyValues)
String property for this Document. If the
the property value List is null or empty, this does nothing.propertyName - the property namepropertyValues - a List of property valuespublic Property findProperty(java.lang.String name)
DocumentProperty by name. If the current document has a property
then that property is returned.findProperty in interface Documentname - the name of the Property to findProperty, if found; null otherwisepublic java.util.Set<java.lang.String> getPropertyNames()
DocumentProperties in this
Document.getPropertyNames in interface DocumentSet of Stringspublic void release()