MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.datamodel
Class IdentifierFactory

java.lang.Object
  extended by ch.ethz.mxquery.datamodel.IdentifierFactory

public class IdentifierFactory
extends java.lang.Object


Field Summary
static int ID_DEWEY
           
static int ID_DOUBLE
           
static int ID_INT_DOUBLE
           
static int ID_LONG_DOUBLE
           
static int idType
           
 
Constructor Summary
IdentifierFactory()
           
 
Method Summary
static Identifier createIdentifier(int nrOfAppendedNode, Source store, Identifier last_identifier, short level)
          Creates an Identifier with the passed id and data source
static Identifier createIdentifier(int nrOfAppendedNode, Source store, Identifier last_identifier, short level, int type)
          Creates an Identifier with the passed id and data source
static Identifier[] createInsertIdentifiers(Identifier leftBoundId, Identifier rightBoundId, int number, Source source, int[] levels)
          Creates Identifiers for Tokens that are between the ids leftBoundId and rightBoundId.
static Identifier[] createInsertIdentifiers(Identifier leftBoundId, Identifier rightBoundId, int number, Source source, int[] levels, int type)
          Creates Identifiers for Tokens that are between the ids leftBoundId and rightBoundId.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID_DOUBLE

public static final int ID_DOUBLE
See Also:
Constant Field Values

ID_INT_DOUBLE

public static final int ID_INT_DOUBLE
See Also:
Constant Field Values

ID_LONG_DOUBLE

public static final int ID_LONG_DOUBLE
See Also:
Constant Field Values

ID_DEWEY

public static final int ID_DEWEY
See Also:
Constant Field Values

idType

public static final int idType
See Also:
Constant Field Values
Constructor Detail

IdentifierFactory

public IdentifierFactory()
Method Detail

createIdentifier

public static Identifier createIdentifier(int nrOfAppendedNode,
                                          Source store,
                                          Identifier last_identifier,
                                          short level)
Creates an Identifier with the passed id and data source

Parameters:
nrOfAppendedNode - the number of nodes to append
store -
last_identifier -
level -
Returns:
a new node identifier

createIdentifier

public static Identifier createIdentifier(int nrOfAppendedNode,
                                          Source store,
                                          Identifier last_identifier,
                                          short level,
                                          int type)
Creates an Identifier with the passed id and data source

Parameters:
nrOfAppendedNode -
store -
last_identifier -
level -
type -
Returns:
a new node identifier

createInsertIdentifiers

public static Identifier[] createInsertIdentifiers(Identifier leftBoundId,
                                                   Identifier rightBoundId,
                                                   int number,
                                                   Source source,
                                                   int[] levels)
                                            throws MXQueryException
Creates Identifiers for Tokens that are between the ids leftBoundId and rightBoundId.

Parameters:
leftBoundId - left bound
rightBoundId - right bound
number - number of ids that the method must produce
source - data source of the newly created ids
Throws:
MXQueryException

createInsertIdentifiers

public static Identifier[] createInsertIdentifiers(Identifier leftBoundId,
                                                   Identifier rightBoundId,
                                                   int number,
                                                   Source source,
                                                   int[] levels,
                                                   int type)
                                            throws MXQueryException
Creates Identifiers for Tokens that are between the ids leftBoundId and rightBoundId.

Parameters:
leftBoundId - left bound
rightBoundId - right bound
number - number of ids that the method must produce
source - data source of the newly created ids
type - Explicit specification of the type of identifier
Throws:
MXQueryException

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich