|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wles.util.RuleParser.QualifiedElement com.wles.util.RuleParser.Resource
Class for representing a resource.
Field Summary | |
static java.lang.String |
DELIM
Resource delimiter. |
static java.lang.String |
MAPI_QUALIFIER
|
static java.lang.String |
MAPI_ROOT
|
static java.lang.String |
QUALIFIER
Resource qualifier. |
static java.lang.String |
ROOT
Root resource. |
Constructor Summary | |
RuleParser.Resource(java.lang.String value)
Constructs a resource form a named value. |
Method Summary | |
java.lang.String[] |
getElements()
Gets the elements contained in the Resource i.e. breaks it up by the slashes |
RuleParser.Resource[] |
getLineage()
Gets an array of all resources from this one to the root order starts with this one and works up to root |
RuleParser.Resource |
getParent()
Gets the parent resource, or null if this is the root. |
boolean |
isDecendant(RuleParser.Resource ancestor)
Tests if supplied node is an ancestor of this resource i.e. this node is a child/decentant of supplied node. |
boolean |
isRoot()
Tests if this is the root resource. |
java.lang.String |
toString()
Returns a report of information on the resource structure. |
void |
validate()
Validate that the internal string is a syntatically correct resource name. |
Methods inherited from class com.wles.util.RuleParser.QualifiedElement |
equals, getName, getQualifiedName, hashCode |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String DELIM
public static final java.lang.String MAPI_QUALIFIER
public static final java.lang.String MAPI_ROOT
public static final java.lang.String QUALIFIER
public static final java.lang.String ROOT
Constructor Detail |
public RuleParser.Resource(java.lang.String value) throws RuleParser.ParsingException
Method Detail |
public java.lang.String[] getElements() throws RuleParser.ParsingException
RuleParser.ParsingException
public RuleParser.Resource[] getLineage() throws RuleParser.ParsingException
RuleParser.ParsingException
public RuleParser.Resource getParent() throws RuleParser.ParsingException
RuleParser.ParsingException
public boolean isDecendant(RuleParser.Resource ancestor) throws RuleParser.ParsingException
RuleParser.ParsingException
public boolean isRoot()
public java.lang.String toString()
toString
in class RuleParser.QualifiedElement
public void validate() throws RuleParser.ParsingException
validate
in class RuleParser.QualifiedElement
RuleParser.ParsingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |