public interface DocumentReader
Document
instances and expose the underlying information.Modifier and Type | Method and Description |
---|---|
Document |
document()
Returns the underlying document instance.
|
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.
|
boolean |
isCacheable()
Returns whether the document should be cached by the repository or not.
|
boolean |
isQueryable()
Determine whether the document is considered queryable.
|
String getDocumentId()
non-null
String
List<String> getParentIds()
non-null
List
List<? extends Document> getChildren()
non-null
List
LinkedHashMap<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
LinkedHashMap
Document document()
non-null
Document
instance.boolean isCacheable()
Name getPrimaryType()
non-null
Name
String getPrimaryTypeName()
non-null
String
Set<Name> getMixinTypes()
non-null
Set
Set<String> getMixinTypeNames()
non-null
Set
Property getProperty(Name name)
Property getProperty(String name)
Map<Name,Property> getProperties()
non-null
Map
of (property name, property value) pairs.boolean isQueryable()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.