|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.objects.epath.EPath
Represents a parsed EPath string and encapsulates the operations needed to access the object represented by the EPath string. Primary.Field Primary.Secondary[@someKey=somevalue,@somemorekey=somemorevalue].* returns the secondary object named Secondary and has key "someKey" of somevalue. Primary.Secondary[1].* access the secondary object by index AObject.BObject[2].CObject[3].* supports multiple levels of access for now, this method does not support Primary.Secondary[*].Field For now, EPath does not support Primary.Secondary[*].Field
Field Summary | |
(package private) Filter[][] |
filters
filters |
(package private) int[] |
indices
indices |
(package private) java.lang.String[] |
keys
keys |
static int |
OP_ALL_FIELD
op code - all fields return as object |
static int |
OP_ALL_SECONDARY
op code - all secondary object as list |
static int |
OP_FIELD
op code - field accessor |
static int |
OP_NOOP
op code |
static int |
OP_SECONDARY_BY_FILTER
op code - secondary by filter |
static int |
OP_SECONDARY_BY_INDEX
op code - secondary by index |
static int |
OP_SECONDARY_BY_KEY
op code - secondary by key |
(package private) int[] |
ops
operations |
(package private) java.lang.String[] |
tokenQueue
tokens. |
(package private) boolean |
wildCard
|
Constructor Summary | |
protected |
EPath()
disable default constructor |
(package private) |
EPath(java.lang.String name,
int len)
Creates new EPath Object. |
Method Summary | |
java.lang.Object |
clone()
clones the epath |
(package private) boolean |
containsFilters()
Does this Epath contain any filter |
boolean |
equals(EPath e)
if two EPath objects has the same path, then they are considered equal |
java.lang.String |
getFieldTag()
getter for the field tag |
(package private) Filter[][] |
getFilterPaths()
gets list of non-null filters Each token in a Epath can be associated with list of filters. |
Filter[][] |
getFilters()
|
int[] |
getIndices()
|
java.lang.String[] |
getKeys()
|
java.lang.String |
getLastChildName()
|
java.lang.String |
getLastChildPath()
|
java.lang.String |
getName()
getter for name |
(package private) java.lang.String[] |
getObjectPaths()
Return Fully qualified path names for each Object in this EPath. |
int[] |
getOps()
|
(package private) java.lang.String |
getPath(int pathLen)
|
java.lang.String |
getTag(int tokenPos)
get the token tag given the position |
java.lang.String[] |
getTokenQueue()
|
(package private) java.lang.String[] |
getTokenStrings()
get all token strings |
boolean |
getWildCard()
getter for the field wildCard |
int |
hashCode()
hash code |
boolean |
isFieldToken(int tokenPos)
is the token a field |
boolean |
isTokenExists(int tokenPos)
is there a token at the position |
void |
setFilters(Filter[][] filters)
|
void |
setIndices(int[] indices)
|
void |
setKeys(java.lang.String[] keys)
|
void |
setOps(int[] ops)
|
void |
setTokenQueue(java.lang.String[] tokenQueue)
|
java.lang.String |
toFieldName()
returns the field name represented by this EPath object |
java.lang.String |
toString()
return a string |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
Filter[][] filters
int[] indices
java.lang.String[] keys
public static final int OP_ALL_FIELD
public static final int OP_ALL_SECONDARY
public static final int OP_FIELD
public static final int OP_NOOP
public static final int OP_SECONDARY_BY_FILTER
public static final int OP_SECONDARY_BY_INDEX
public static final int OP_SECONDARY_BY_KEY
int[] ops
java.lang.String[] tokenQueue
boolean wildCard
Constructor Detail |
protected EPath()
EPath(java.lang.String name, int len)
name
- qualified field namelen
- lengthMethod Detail |
public java.lang.Object clone()
boolean containsFilters()
public boolean equals(EPath e)
e
- another EPath object
public java.lang.String getFieldTag()
Filter[][] getFilterPaths()
public Filter[][] getFilters()
public int[] getIndices()
public java.lang.String[] getKeys()
public java.lang.String getLastChildName()
public java.lang.String getLastChildPath()
public java.lang.String getName()
java.lang.String[] getObjectPaths()
public int[] getOps()
java.lang.String getPath(int pathLen)
public java.lang.String getTag(int tokenPos)
tokenPos
- position
public java.lang.String[] getTokenQueue()
java.lang.String[] getTokenStrings()
public boolean getWildCard()
public int hashCode()
public boolean isFieldToken(int tokenPos)
tokenPos
- token position
public boolean isTokenExists(int tokenPos)
tokenPos
- position
public void setFilters(Filter[][] filters)
filters
- the filters to setpublic void setIndices(int[] indices)
indices
- the indices to setpublic void setKeys(java.lang.String[] keys)
keys
- the keys to setpublic void setOps(int[] ops)
ops
- the ops to setpublic void setTokenQueue(java.lang.String[] tokenQueue)
tokenQueue
- the tokenQueue to setpublic java.lang.String toFieldName()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.