|
Drools :: Eclipse :: Webdav for Guvnor tools 6.0.0.Alpha7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.webdav.internal.kernel.ConditionTerm
public class ConditionTerm
A ConditionTerm represents some state configuration of a resource that must be satisfied in order for the associated request to be valid. The ConditionFactors in a ConditionTerm must all match with states of the resource, i.e., they are AND'ed together. ConditionTerms are contained in a Condition which is used in the Precondition of a WebDAV If header.
| Constructor Summary | |
|---|---|
ConditionTerm()
Construct a Condition with no associated Resource URI. |
|
| Method Summary | |
|---|---|
void |
addConditionFactor(ConditionFactor factor)
Add a ConditionFactor to a ConditionTerm. |
boolean |
contains(ConditionFactor factor)
Does this ConditionTerm contain the given ConditionFactor? |
static ConditionTerm |
create(StreamTokenizer tokenizer)
Create a ConditionTerm by parsing the given If header as defined by section 9.4 in the WebDAV spec. |
Enumeration |
getConditionFactors()
Get all the ConditionFactors in this Condition. |
boolean |
matches(ConditionTerm conditionTerm)
See if this ConditionTerm matches the given ConditionTerm. |
int |
numberOfFactors()
Get the number of ConditionFactors in this ConditionTerm. |
String |
toString()
Return a String representation of this ConditionTerm as defined by section 9.4 of the WebDAV Spec. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConditionTerm()
| Method Detail |
|---|
public void addConditionFactor(ConditionFactor factor)
throws WebDAVException
factor - the factor to add
WebDAVException - thrown if the term already contains the factorpublic boolean contains(ConditionFactor factor)
factor - the factor to check for
public static ConditionTerm create(StreamTokenizer tokenizer)
throws WebDAVException
tokenizer - a StreamTokenizer on the contents of a WebDAV If header
WebDAVException - thrown if there is a syntax error in the If headerpublic Enumeration getConditionFactors()
public boolean matches(ConditionTerm conditionTerm)
conditionTerm - the term to match
public int numberOfFactors()
public String toString()
toString in class Object
|
Drools :: Eclipse :: Webdav for Guvnor tools 6.0.0.Alpha7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||