public class OccurrenceRelationImpl extends Object implements OccurrenceRelation
Constructor and Description |
---|
OccurrenceRelationImpl(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
void |
addOccurrences(List<OccurrenceInfo> occurrences)
Merge the list of occurrences with the existing occurrence info held by
the underlying document model using.
|
DocumentModel |
getOccurrenceDocument() |
List<OccurrenceInfo> |
getOccurrences() |
List<OccurrenceInfo> |
getOccurrences(int maxOccurrences) |
DocumentModel |
getSourceDocument()
Lazy fetch the DocumentModel of the document carrying the entity mentions.
|
DocumentRef |
getSourceDocumentRef() |
DocumentModel |
getTargetEntity()
Lazy fetch the DocumentModel of the entity being mentioned.
|
DocumentRef |
getTargetEntityRef() |
void |
setOccurrences(List<OccurrenceInfo> occurrences)
Replace existing occurrences with the a new list of occurrence info.
|
public OccurrenceRelationImpl(DocumentModel doc)
public List<OccurrenceInfo> getOccurrences() throws ClientException
getOccurrences
in interface OccurrenceRelation
ClientException
public List<OccurrenceInfo> getOccurrences(int maxOccurrences) throws ClientException
getOccurrences
in interface OccurrenceRelation
ClientException
public void addOccurrences(List<OccurrenceInfo> occurrences) throws ClientException
OccurrenceRelation
addOccurrences
in interface OccurrenceRelation
ClientException
public void setOccurrences(List<OccurrenceInfo> occurrences) throws ClientException
OccurrenceRelation
setOccurrences
in interface OccurrenceRelation
ClientException
public DocumentRef getSourceDocumentRef() throws ClientException
getSourceDocumentRef
in interface OccurrenceRelation
ClientException
public DocumentRef getTargetEntityRef() throws ClientException
getTargetEntityRef
in interface OccurrenceRelation
ClientException
public DocumentModel getOccurrenceDocument()
getOccurrenceDocument
in interface OccurrenceRelation
public DocumentModel getTargetEntity() throws ClientException
OccurrenceRelation
getTargetEntity
in interface OccurrenceRelation
ClientException
public DocumentModel getSourceDocument() throws ClientException
OccurrenceRelation
getSourceDocument
in interface OccurrenceRelation
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.