public class H2Document extends Object implements IVDocument
IVItem.ItemType| Modifier and Type | Field and Description |
|---|---|
protected long |
docKey |
protected long |
firstChild |
protected IVItem.ItemType |
itemType |
protected long |
key |
protected int |
level |
protected long |
next |
protected long |
parent |
protected long |
previous |
| Constructor and Description |
|---|
H2Document(H2Access access,
long key,
String id,
String name,
String type) |
| Modifier and Type | Method and Description |
|---|---|
void |
fillPointers(long parent,
long firstChild,
long previous,
long next) |
IVDocument |
getDocument()
Gets the document containing this item.
|
Ending |
getEndDocument()
Gets the Ending resource associated with this document.
|
IVItem |
getFirstChild()
Gets the first child item of this set.
|
String |
getId()
Gets the extraction id for this item.
|
IVItem |
getItem(long key)
Gets the item for a given key.
|
IVItem |
getItem(String extractionId)
Gets the item for a given extraction id.
|
IVItem.ItemType |
getItemType()
Gets the type of item this item is (document, group, text unit, etc.)
|
long |
getKey() |
String |
getName()
Gets the resource name of this item.
|
IVItem |
getNextSibling()
Gets the next item (on the same level) of this item.
|
IVItem |
getParent()
Gets the parent item of this item.
|
IVItem |
getPreviousSibling()
Gets the previous item (on the same level) of this item.
|
StartDocument |
getStartDocument()
Gets the StartDocument resource associated with this document.
|
IVTextUnit |
getTextUnit(String extractionId)
Gets the virtual text unit for a given extraction id.
|
String |
getType()
Gets the resource type of this item.
|
Iterable<IVItem> |
items()
Creates an iterable object for all the items in this set.
|
void |
save()
Saves into the repository the modifiable data associated with this virtual item.
|
Iterable<IVTextUnit> |
textUnits()
Creates an iterable object for all the virtual text units in this set.
|
protected long key
protected long docKey
protected IVItem.ItemType itemType
protected int level
protected long parent
protected long firstChild
protected long next
protected long previous
public void fillPointers(long parent,
long firstChild,
long previous,
long next)
public String getId()
IVItempublic Ending getEndDocument()
IVDocumentgetEndDocument in interface IVDocumentpublic IVItem getItem(String extractionId)
IVDocumentgetItem in interface IVDocumentextractionId - the extraction id for the item to retrieve.public IVItem getItem(long key)
IVDocumentgetItem in interface IVDocumentkey - the key for the item to retrieve.public StartDocument getStartDocument()
IVDocumentgetStartDocument in interface IVDocumentpublic IVTextUnit getTextUnit(String extractionId)
IVDocumentgetTextUnit in interface IVDocumentextractionId - the extraction id of the text unit to retrieve.public IVItem getFirstChild()
IVSetgetFirstChild in interface IVItemgetFirstChild in interface IVSetpublic IVItem.ItemType getItemType()
IVItemgetItemType in interface IVItempublic Iterable<IVItem> items()
IVSetpublic Iterable<IVTextUnit> textUnits()
IVSetpublic IVDocument getDocument()
IVItemgetDocument in interface IVItempublic String getName()
IVItempublic IVItem getNextSibling()
IVItemgetNextSibling in interface IVItempublic IVItem getParent()
IVItempublic IVItem getPreviousSibling()
IVItemgetPreviousSibling in interface IVItempublic String getType()
IVItempublic void save()
IVItempublic long getKey()
Copyright © 2019. All rights reserved.