|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchableCorpus
Every corpus which implement the interface SearchableCorpus could be read
by NXT Search.
For more information and web demo of NXT Search visit
Method Summary | |
---|---|
java.lang.Comparable |
getAttributeComparableValue(java.lang.Object element,
java.lang.String name)
Returns the value of an attribute of an element as Comparable. |
java.lang.Comparable |
getCenterComparableValue(java.lang.Object element)
Returns the center of start and end time as a Comparable value. |
java.lang.Comparable |
getDurationComparableValue(java.lang.Object element)
Returns the temporal duration as a Comparable value. |
java.util.Iterator |
getElements()
Returns an Iterator which visits each element in the corpora exactly once. |
java.util.Iterator |
getElements(java.util.List types)
Returns an Iterator which visits each element with the specified type (= name of element) in the corpora exactly once. |
java.util.Iterator |
getElementsDominatedBy(java.lang.Object rootElement)
Returns an Iterator which visits each element dominated by the specified element in the corpora exactly once. |
java.util.Iterator |
getElementsDominating(java.lang.Object childElement)
Returns an Iterator which visits each element dominating the specified element in the corpora exactly once. |
java.util.Iterator |
getElementsOfSubgraph(java.lang.Object pointingElement)
Returns an Iterator which visits each element of the specified subgraphs in the corpora exactly once. |
java.util.Iterator |
getElementsPointedBy(java.lang.Object startElement)
Returns an Iterator which visits each element which has a pointer from the specified element in the corpora exactly once. |
java.lang.Comparable |
getEndComparableValue(java.lang.Object element)
Returns the end time as a Comparable value. |
java.lang.Comparable |
getIdComparableValue(java.lang.Object element)
Returns the ID of an element as a Comparable value. |
java.lang.String |
getNameOfElement(java.lang.Object element)
Returns the name resp. |
QueryRewriter |
getQueryRewriter()
Return the query rewriter that should be used (or null if it is not set) |
java.lang.Comparable |
getStartComparableValue(java.lang.Object element)
Returns the start time as a Comparable value. |
java.lang.Comparable |
getText(java.lang.Object element)
Returns the value of the text content as Comparable. |
boolean |
isQueryRewriting()
true means we have enabled the new query rewrite functionality that can increase the speed of your queries. |
void |
setQueryRewriter(QueryRewriter writer)
Enable the query rewrite functionality and select a rewriter to use (if the argument is null, query rewriting will not be enabled). |
void |
setQueryRewriting(boolean val)
set to true to enable the new query rewrite functionality that can increase the speed of your queries |
boolean |
testContactWith(java.lang.Object a,
java.lang.Object b)
Returns true if element A ends at the time element B starts. |
boolean |
testDominates(java.lang.Object a,
java.lang.Object b)
Returns true if element A dominates element B. |
boolean |
testDominates(java.lang.Object a,
java.lang.Object b,
int distance)
Returns true if element A dominates element B with the specified distance. |
boolean |
testDominatesSubgraph(java.lang.Object from,
java.lang.Object to)
Returns true if there is a pointer from the first element to another element which is dominated by the second element. |
boolean |
testDominatesSubgraph(java.lang.Object from,
java.lang.Object to,
java.lang.String role)
Returns true if there is a pointer with a specified role from the first element to another element which is dominated by the second element. |
boolean |
testHasPointer(java.lang.Object from,
java.lang.Object to)
Returns true if there is a pointer from the first to the second element. |
boolean |
testHasPointer(java.lang.Object from,
java.lang.Object to,
java.lang.String role)
Returns true if there is a pointer from the first to the second element with the specified role. |
boolean |
testIncludes(java.lang.Object a,
java.lang.Object b)
Returns true if element A temporally includes element B. |
boolean |
testIsEqual(java.lang.Object a,
java.lang.Object b)
Returns true if element A is the same element as element B. |
boolean |
testIsInequal(java.lang.Object a,
java.lang.Object b)
Returns true if element A is not the same element as element B. |
boolean |
testLeftAlignedWith(java.lang.Object a,
java.lang.Object b)
Returns true if element A is left aligned with element B. |
boolean |
testOverlapsLeft(java.lang.Object a,
java.lang.Object b)
Returns true if element A overlaps left element B. |
boolean |
testOverlapsWith(java.lang.Object a,
java.lang.Object b)
Returns true if element A overlaps element B. |
boolean |
testPrecedes(java.lang.Object a,
java.lang.Object b)
Returns true if element A precedes element B. |
boolean |
testPrecedesTemporal(java.lang.Object a,
java.lang.Object b)
Returns true if element A temporally precedes element B. |
boolean |
testRightAlignedWith(java.lang.Object a,
java.lang.Object b)
Returns true if element A is right aligned with element B. |
boolean |
testSameExtend(java.lang.Object a,
java.lang.Object b)
Returns true if element A and element B have the same duration. |
boolean |
testTimed(java.lang.Object a)
Returns true if the element A is timed. |
Method Detail |
---|
java.util.Iterator getElements()
java.util.Iterator getElements(java.util.List types)
types
- list of types
java.util.Iterator getElementsDominatedBy(java.lang.Object rootElement)
rootElement
- the element which should dominate the requested
elements
java.util.Iterator getElementsDominating(java.lang.Object childElement)
childElement
- the element whisch should be dominated by the requested
elements
java.util.Iterator getElementsPointedBy(java.lang.Object startElement)
startElement
- the element where a pointer pointing to the requested
elements starts
java.util.Iterator getElementsOfSubgraph(java.lang.Object pointingElement)
pointingElement
- the element pointing to the subgraphs
java.lang.Comparable getAttributeComparableValue(java.lang.Object element, java.lang.String name)
element
- the element with the attribute, that will be returnedname
- the name of the attribute
java.lang.Comparable getText(java.lang.Object element)
element
- the element containing the text, that will be returned
java.lang.String getNameOfElement(java.lang.Object element)
element
- the element with the name, that will be returned
java.lang.Comparable getStartComparableValue(java.lang.Object element)
elemen
- the element with the start time, that will be returned
java.lang.Comparable getEndComparableValue(java.lang.Object element)
elemen
- the element with the end time, that will be returned
java.lang.Comparable getDurationComparableValue(java.lang.Object element)
elemen
- the element with the temporal duration, that will be returned
java.lang.Comparable getCenterComparableValue(java.lang.Object element)
elemen
- the element with the center of start and end time, that will
be returned
java.lang.Comparable getIdComparableValue(java.lang.Object element)
element
- the element with the ID, that will be returned
boolean testIsEqual(java.lang.Object a, java.lang.Object b)
a
- element Ab
- element B
boolean testIsInequal(java.lang.Object a, java.lang.Object b)
a
- element Ab
- element B
boolean testDominates(java.lang.Object a, java.lang.Object b)
a
- element Ab
- element B
boolean testDominates(java.lang.Object a, java.lang.Object b, int distance)
a
- element Ab
- element Bdistance
- distance between element A and element B
boolean testPrecedes(java.lang.Object a, java.lang.Object b)
a
- element Ab
- element B
boolean testHasPointer(java.lang.Object from, java.lang.Object to)
from
- start element of the pointerto
- target element of the pointer
boolean testHasPointer(java.lang.Object from, java.lang.Object to, java.lang.String role)
from
- start element of the pointerto
- target element of the pointerrole
- the role of the pointer
boolean testDominatesSubgraph(java.lang.Object from, java.lang.Object to)
from
- start element of the pointerto
- element which dominates target element of the pointer
boolean testDominatesSubgraph(java.lang.Object from, java.lang.Object to, java.lang.String role)
from
- start element of the pointerto
- element which dominates target element of the pointerrole
- the role of the pointer
boolean testTimed(java.lang.Object a)
a
- element A
boolean testOverlapsLeft(java.lang.Object a, java.lang.Object b)
a
- element Ab
- element B
boolean testLeftAlignedWith(java.lang.Object a, java.lang.Object b)
a
- element Ab
- element B
boolean testRightAlignedWith(java.lang.Object a, java.lang.Object b)
a
- element Ab
- element B
boolean testIncludes(java.lang.Object a, java.lang.Object b)
a
- element Ab
- element B
boolean testSameExtend(java.lang.Object a, java.lang.Object b)
a
- element Ab
- element B
boolean testOverlapsWith(java.lang.Object a, java.lang.Object b)
a
- element Ab
- element B
boolean testContactWith(java.lang.Object a, java.lang.Object b)
a
- element Ab
- element B
boolean testPrecedesTemporal(java.lang.Object a, java.lang.Object b)
a
- element Ab
- element B
void setQueryRewriting(boolean val)
boolean isQueryRewriting()
void setQueryRewriter(QueryRewriter writer)
QueryRewriter getQueryRewriter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |