public interface Document extends Named
Modifier and Type | Method and Description |
---|---|
Field |
getAccessedDateField()
Gets the commonly-used accessed date field.
|
Field |
getAuthorField()
Gets the commonly-used author field.
|
Field |
getBodyField()
Gets the commonly-used body field.
|
Field |
getField(java.lang.String fieldName)
Gets the field from the document with the given field name, if it exists.
|
java.util.Collection<Field> |
getFields()
Gets the collection of the fields that make up the document.
|
Field |
getLastModifiedDateField()
Gets the commonly-used last modified date field.
|
DocumentReference |
getReference()
Gets a reference to the location of the document so that it can be
retrieved again later.
|
java.net.URI |
getReferenceURI()
Gets the reference to the location of the document as a
URI . |
Field |
getTitleField()
Gets the commonly-used title field.
|
boolean |
hasField(java.lang.String fieldName)
Determines if this document has a field of the given name.
|
DocumentReference getReference()
java.net.URI getReferenceURI()
URI
.java.util.Collection<Field> getFields()
boolean hasField(java.lang.String fieldName)
fieldName
- The name of the field.Field getField(java.lang.String fieldName)
fieldName
- The name of the field.Field getTitleField()
Field getLastModifiedDateField()
Field getAccessedDateField()
Field getAuthorField()
Field getBodyField()
Document
interface are highly encouraged to use this field to
represent the primary content of the document.