Document
Inheritors
Readonly version of the Document.
Inheritors
Inheritors
Inheritors
Properties
The collection to which the document belongs.
A List containing all keys, or an empty List if the document has no properties.
A List containing all keys, or an empty List if the dictionary has no properties.
The document's revision id. The revision id in the Document class is a constant while the revision id in the MutableDocument class is not. A newly created Document will have a null revision id. The revision id in a MutableDocument will be updated on save. The revision id format is opaque, which means its format has no meaning and shouldn't be parsed to get information.
The sequence number of the document in the database. The sequence number indicates how recently the document has been changed. Every time a document is updated, the database assigns it the next sequential sequence number. Thus, when a document's sequence number changes it means that the document been updated (on-disk). If one document's sequence is different from another's, the document with the larger sequence number was changed more recently. Sequence numbers are not available for documents obtained from a replication filter. This method will always return 0 for such documents.
Functions
Tests whether a property exists or not. This can be less expensive than getValue(String), because it does not have to allocate an Object for the property value.
Tests whether a property exists or not. This can be less expensive than getValue(String), because it does not have to allocate an Object for the property value.
Subscript access to a Fragment object of the projecting result value for the given key.
Get a property's value as an Array. Returns null if the property doesn't exist, or its value is not an Array.
Get a property's value as an Array. Returns null if the property doesn't exist, or its value is not an array.
Gets a property's value as a Blob. Returns null if the value doesn't exist, or its value is not a Blob.
Gets a property's value as a Blob. Returns null if the value doesn't exist, or its value is not a Blob.
Gets a property's value as a boolean. Returns true if the value exists, and is either true or a nonzero number.
Gets a property's value as a boolean. Returns true if the value exists, and is either true or a nonzero number.
Gets a property's value as an Instant date. JSON does not directly support dates, so the actual property value must be a string, which is then parsed according to the ISO-8601 date format (the default used in JSON.) Returns null if the value doesn't exist, is not a string, or is not parsable as a date. NOTE: This is not a generic date parser! It only recognizes the ISO-8601 format, with or without milliseconds.
Gets a property's value as an Instant date. JSON does not directly support dates, so the actual property value must be a string, which is then parsed according to the ISO-8601 date format (the default used in JSON.) Returns null if the value doesn't exist, is not a string, or is not parsable as a date. NOTE: This is not a generic date parser! It only recognizes the ISO-8601 format, with or without milliseconds.
Get a property's value as a Dictionary. Returns null if the property doesn't exist, or its value is not a Dictionary.
Get a property's value as a Dictionary. Returns null if the property doesn't exist, or its value is not a dictionary.
Gets a property's value as a double. Integers will be converted to double. The value true is returned as 1.0, false as 0.0. Returns 0.0 if the property doesn't exist or does not have a numeric value.
Gets a property's value as a double. Integers will be converted to double. The value true is returned as 1.0, false as 0.0. Returns 0.0 if the property doesn't exist or does not have a numeric value.
Gets a property's value as a float. Integers will be converted to float. The value true is returned as 1.0, false as 0.0. Returns 0.0 if the value doesn't exist or does not have a numeric value.
Gets a property's value as a float. Integers will be converted to float. The value true is returned as 1.0, false as 0.0. Returns 0.0 if the value doesn't exist or does not have a numeric value.
Gets a property's value as an int. Floating point values will be rounded. The value true is returned as 1, false as 0. Returns 0 if the value doesn't exist or does not have a numeric value.
Gets a property's value as an int. Floating point values will be rounded. The value true is returned as 1, false as 0. Returns 0 if the value doesn't exist or does not have a numeric value.
Gets a property's value as a long. Floating point values will be rounded. The value true is returned as 1, false as 0. Returns 0 if the value doesn't exist or does not have a numeric value.
Gets a property's value as a long. Floating point values will be rounded. The value true is returned as 1, false as 0. Returns 0 if the value doesn't exist or does not have a numeric value.
Gets a property's value as a Number. Returns null if the value doesn't exist, or its value is not a Number.
Gets a property's value as a Number. Returns null if the value doesn't exist, or its value is not a Number.
Gets a property's value as a String. Returns null if the value doesn't exist, or its value is not a String.
Gets a property's value as a String. Returns null if the value doesn't exist, or its value is not a String.
Gets a property's value as an object. The object types are Blob, Array, Dictionary, Number, or String based on the underlying data type; or null if the property value is null or the property doesn't exist.
Gets a property's value as an object. The object types are Blob, Array, Dictionary, Number, or String based on the underlying data type; or null if the property value is null or the property doesn't exist.
Gets an iterator over the keys of the document's properties
Gets content of the current object as a Map. The values contained in the returned Map object are all JSON based values.
Gets content of the current object as a Map. The values contained in the returned Map object are all JSON based values.
Return a mutable copy of the document