ch.ethz.mxquery.datamodel
Class IdentifierFactory
java.lang.Object
ch.ethz.mxquery.datamodel.IdentifierFactory
public class IdentifierFactory
- extends java.lang.Object
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 |
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
IdentifierFactory
public IdentifierFactory()
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 appendstore
- 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 boundrightBoundId
- right boundnumber
- number of ids that the method must producesource
- 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 boundrightBoundId
- right boundnumber
- number of ids that the method must producesource
- data source of the newly created idstype
- Explicit specification of the type of identifier
- Throws:
MXQueryException
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich