public class Document extends Object implements Entity
| Modifier and Type | Class and Description |
|---|---|
static class |
Document.Status |
| Constructor and Description |
|---|
Document(Project project,
Path filePath,
String content,
Language language,
Charset charset,
String mimetype,
Map<String,Object> metadata,
Document.Status status,
HashSet<Pipeline.Type> nerTags,
Document parentDocument,
Long contentLength) |
Document(Project project,
Path filePath,
String content,
Language language,
Charset charset,
String mimetype,
Map<String,Object> metadata,
Document.Status status,
Long contentLength) |
Document(Project project,
Path filePath,
String content,
Language language,
Charset charset,
String mimetype,
Map<String,Object> metadata,
Document.Status status,
Set<Pipeline.Type> nerTags,
Long contentLength) |
Document(Project project,
String id,
Path filePath,
String content,
Language language,
Charset charset,
String mimetype,
Map<String,Object> metadata,
Document.Status status,
Set<Pipeline.Type> nerTags,
Date extractionDate,
String parentDocument,
String rootDocument,
Short extractionLevel,
Long contentLength) |
Document(String id,
Project project,
Path filePath,
String content,
Language language,
Charset charset,
String mimetype,
Map<String,Object> metadata,
Document.Status status,
Set<Pipeline.Type> nerTags,
Long contentLength) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static Set<Pipeline.Type> |
fromNerMask(int mask) |
String |
getContent() |
Charset |
getContentEncoding() |
Long |
getContentLength() |
String |
getContentType() |
Date |
getCreationDate() |
Path |
getDirname() |
Date |
getExtractionDate() |
short |
getExtractionLevel() |
String |
getId() |
Language |
getLanguage() |
Map<String,Object> |
getMetadata() |
String |
getName() |
short |
getNerMask() |
Set<Pipeline.Type> |
getNerTags() |
String |
getParentDocument() |
Path |
getPath() |
Project |
getProject() |
String |
getProjectId() |
String |
getRootDocument() |
Document.Status |
getStatus() |
Set<Tag> |
getTags() |
int |
hashCode() |
boolean |
isRootDocument() |
String |
toString() |
public Document(Project project, Path filePath, String content, Language language, Charset charset, String mimetype, Map<String,Object> metadata, Document.Status status, Long contentLength)
public Document(Project project, String id, Path filePath, String content, Language language, Charset charset, String mimetype, Map<String,Object> metadata, Document.Status status, Set<Pipeline.Type> nerTags, Date extractionDate, String parentDocument, String rootDocument, Short extractionLevel, Long contentLength)
public Document(Project project, Path filePath, String content, Language language, Charset charset, String mimetype, Map<String,Object> metadata, Document.Status status, Set<Pipeline.Type> nerTags, Long contentLength)
public Document(String id, Project project, Path filePath, String content, Language language, Charset charset, String mimetype, Map<String,Object> metadata, Document.Status status, Set<Pipeline.Type> nerTags, Long contentLength)
public Project getProject()
public String getProjectId()
public String getContent()
public Path getPath()
public Path getDirname()
public Date getExtractionDate()
public Charset getContentEncoding()
public Long getContentLength()
public String getContentType()
public Language getLanguage()
public short getExtractionLevel()
public String getRootDocument()
public boolean isRootDocument()
public String getParentDocument()
public Document.Status getStatus()
public Set<Pipeline.Type> getNerTags()
public Date getCreationDate()
public short getNerMask()
public String getName()
public static Set<Pipeline.Type> fromNerMask(int mask)
Copyright © 2020 ICIJ. All rights reserved.