|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dbxml.db.core.indexer.IndexPattern
IndexPattern is the internal representation of a pattern for index matching purposes.
Field Summary | |
static int |
PATTERN_NONE
|
static int |
PATTERN_WILDCARD
|
static int |
SCORE_NATURAL
|
static int |
SCORE_NONE
|
static int |
SCORE_WILDCARD
|
Constructor Summary | |
IndexPattern(SymbolTable symbols,
int elemID)
|
|
IndexPattern(SymbolTable symbols,
int elemID,
int attrID)
|
|
IndexPattern(SymbolTable symbols,
java.lang.String pattern,
NamespaceMap nsMap)
|
|
IndexPattern(SymbolTable symbols,
java.lang.String pattern,
NamespaceMap nsMap,
boolean create)
|
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
int |
getAttributeID()
getAttributeID returns the Attribute Symbol ID for this pattern if there is one, otherwise it returns a negative value. |
java.lang.String |
getAttributeName()
getAttributeName returns the Attribute Name for this pattern if there is one, otherwise it returns null. |
int |
getElementID()
getElementID returns the Element Symbol ID for this pattern if there is one, otherwise it returns a negative value. |
java.lang.String |
getElementName()
getElementName returns the Element Name for this pattern if there is one, otherwise it returns null. |
int |
getMatchLevel(IndexPattern p)
getMatchLevel compares this IndexPattern to p. |
int |
hashCode()
|
boolean |
isInvalid()
isInvalid returns whether or not the IndexPattern is valid. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PATTERN_NONE
public static final int PATTERN_WILDCARD
public static final int SCORE_NONE
public static final int SCORE_WILDCARD
public static final int SCORE_NATURAL
Constructor Detail |
public IndexPattern(SymbolTable symbols, java.lang.String pattern, NamespaceMap nsMap, boolean create)
public IndexPattern(SymbolTable symbols, java.lang.String pattern, NamespaceMap nsMap)
public IndexPattern(SymbolTable symbols, int elemID)
public IndexPattern(SymbolTable symbols, int elemID, int attrID)
Method Detail |
public int getMatchLevel(IndexPattern p)
p
- The pattern to compare
public boolean isInvalid()
public int getElementID()
public int getAttributeID()
public java.lang.String getElementName()
public java.lang.String getAttributeName()
public int hashCode()
public boolean equals(java.lang.Object obj)
|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |