MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.datamodel
Interface Identifier

All Known Implementing Classes:
DeweyIdentifier, DoubleIdentifier, IntDblIdentifier, LongDblIdentifier

public interface Identifier

Interface for the XDM node iden


Method Summary
 int compare(Identifier identifier)
          Compares this token identifier with an other one.
 Source getStore()
          Returns the DataSource to which the Identifier belongs to.
 

Method Detail

compare

int compare(Identifier identifier)
Compares this token identifier with an other one.

Parameters:
identifier -
Returns:
0 if equal, -1 if identifier is smaller, 1 if identifier is bigger, and -2 if the two Identifier do not belong to the same data source.

getStore

Source getStore()
Returns the DataSource to which the Identifier belongs to.

Returns:
the Source/Store for this identifier

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich