|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xindice.core.indexer.IndexPattern
IndexPattern is the internal representation of a pattern for index matching purposes.
Field Summary | |
static int |
PATTERN_NAME
|
static int |
PATTERN_NONE
|
static int |
PATTERN_WILDCARD
|
static int |
SCORE_NAME
|
static int |
SCORE_NATURAL
|
static int |
SCORE_NONE
|
static int |
SCORE_WILDCARD
|
Constructor Summary | |
IndexPattern(SymbolTable symbols,
short elemID)
|
|
IndexPattern(SymbolTable symbols,
short elemID,
short attrID)
|
|
IndexPattern(SymbolTable symbols,
short elemID,
String attrName)
|
|
IndexPattern(SymbolTable symbols,
String pattern,
NamespaceMap nsMap)
|
Method Summary | |
boolean |
equals(Object obj)
|
short |
getAttributeID()
getAttributeID returns the Attribute Symbol ID for this pattern if there is one, otherwise it returns a negative value. |
String |
getAttributeName()
getAttributeName returns the Attribute Name for this pattern if there is one, otherwise it returns null. |
short |
getElementID()
getElementID returns the Element Symbol ID for this pattern if there is one, otherwise it returns a negative value. |
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()
|
void |
read(DataInput dis)
read reads the object state from the stream. |
void |
write(DataOutput dos)
write writes the object state to the stream. |
Methods inherited from class java.lang.Object |
clone, finalize, 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 PATTERN_NAME
public static final int SCORE_NONE
public static final int SCORE_WILDCARD
public static final int SCORE_NAME
public static final int SCORE_NATURAL
Constructor Detail |
public IndexPattern(SymbolTable symbols, String pattern, NamespaceMap nsMap) throws IndexerException
public IndexPattern(SymbolTable symbols, short elemID)
public IndexPattern(SymbolTable symbols, short elemID, short attrID)
public IndexPattern(SymbolTable symbols, short elemID, String attrName)
Method Detail |
public int getMatchLevel(IndexPattern p)
p
- The pattern to compare
public short getElementID()
public short getAttributeID()
public String getElementName()
public String getAttributeName()
public void read(DataInput dis) throws IOException
Streamable
read
in interface Streamable
dis
- The DataInputStream
IOException
- if an IOException occurspublic void write(DataOutput dos) throws IOException
Streamable
write
in interface Streamable
dos
- The DataOutputStream
IOException
- if an IOException occurspublic int hashCode()
public boolean equals(Object obj)
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |