|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.ethz.mxquery.datamodel.DoubleIdentifier
public class DoubleIdentifier
Method Summary | |
---|---|
int |
compare(Identifier toCompare)
Compares this token identifier with an other one. |
static Identifier |
createIdentifier(int newId,
Source store)
Creates an Identifier with the passed id and data soource |
static Identifier[] |
createInsertIdentifiers(Identifier leftBoundId,
Identifier rightBoundId,
int number,
Source source)
Creates Identifiers for Tokens that are between the ids leftBoundId and rightBoundId . |
boolean |
equals(java.lang.Object obj)
|
Source |
getStore()
Returns the DataSource to which the Identifier belongs to. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int compare(Identifier toCompare)
Identifier
compare
in interface Identifier
identifier
is smaller, 1 if
identifier
is bigger, and -2 if the two Identifier
do not belong to the same data source.public java.lang.String toString()
toString
in class java.lang.Object
public Source getStore()
Identifier
getStore
in interface Identifier
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static Identifier createIdentifier(int newId, Source store)
newId
- Every newly appended node gets an integer values as new id
(which must be bigger then the last given id). This cannot be
handled by the Identifier because it is source dependent =>
every source creates when appending its id's itself.store
-
public static Identifier[] createInsertIdentifiers(Identifier leftBoundId, Identifier rightBoundId, int number, Source source) throws MXQueryException
leftBoundId
and rightBoundId
.
leftBoundId
- left boundrightBoundId
- right boundnumber
- number of ids that the method must producesource
- data source of the newly created ids
MXQueryException
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |