Constructor and Description |
---|
SimpleDocument(java.util.Map<java.lang.String,java.util.List<Value>> properties)
Constructs a
SimpleDocument whose metadata consists
of the supplied Map of properties, associating
property names with their Values . |
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 . |
public Property findProperty(java.lang.String name)
Document
Property
by name. If the current document has a property
then that property is returned.findProperty
in interface Document
name
- the name of the Property
to findProperty
, if found; null
otherwisepublic java.util.Set<java.lang.String> getPropertyNames()
Document
Properties
in this
Document
.getPropertyNames
in interface Document
Set
of Strings