|
ModeShape Distribution 3.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DocumentReader
A reader which can be used read the structure of Document instances and expose the underlying information.
| Method Summary | |
|---|---|
Document |
document()
Returns the underlying document instance. |
Integer |
getCacheTtlSeconds()
Returns the number of seconds that the underlying document should be cached by the repository, if any. |
List<? extends Document> |
getChildren()
Returns the list of children the underlying document has. |
LinkedHashMap<String,Name> |
getChildrenMap()
Returns an ordered map of (childId, childName) the underlying document has. |
String |
getDocumentId()
Returns the id of the underlying document. |
Set<String> |
getMixinTypeNames()
Returns a set with the names of the primary types of the underlying document. |
Set<Name> |
getMixinTypes()
Returns a set with the names of the primary types of the underlying document. |
List<String> |
getParentIds()
Returns the list of identifiers of the parents of the underlying document. |
Name |
getPrimaryType()
Returns name of the primary type of the underlying document. |
String |
getPrimaryTypeName()
Returns the name of primary type of the underlying document. |
Map<Name,Property> |
getProperties()
Returns all the properties of the underlying document. |
Property |
getProperty(Name name)
Returns the property which has the given name, or null if there is no such property. |
Property |
getProperty(String name)
Returns the property which has the given name, or null if there is no such property. |
| Method Detail |
|---|
String getDocumentId()
non-null StringList<String> getParentIds()
non-null ListList<? extends Document> getChildren()
non-null ListLinkedHashMap<String,Name> getChildrenMap()
The returned map does not contain any explicit same name sibling information, so a connector interested in that would have to do its own, custom processing.
non-null LinkedHashMapDocument document()
non-null Document instance.Integer getCacheTtlSeconds()
Integer. If null, it means that there isn't a special requirement for the
underlying document.Name getPrimaryType()
non-null NameString getPrimaryTypeName()
non-null StringSet<Name> getMixinTypes()
non-null SetSet<String> getMixinTypeNames()
non-null SetProperty getProperty(Name name)
name - a non-null Name
Property instance or nullProperty getProperty(String name)
name - a non-null Name
Property instance or nullMap<Name,Property> getProperties()
non-null Map of (property name, property value) pairs.
|
ModeShape Distribution 3.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||