org.gcube.contentmanagement.contentmanager.stubs.model.predicates
Class EdgePredicate

java.lang.Object
  extended by org.gcube.contentmanagement.contentmanager.stubs.model.predicates.EdgePredicate
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AtLeast, Many, One, Only, Opt

public abstract class EdgePredicate
extends java.lang.Object
implements java.io.Serializable

An implementation of Predicate for Edges.

Author:
Fabio Simeoni (University of Strathclyde)
See Also:
Serialized Form

Nested Class Summary
static class EdgePredicate.Range
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 boolean isCondition()
          Indicates whether the predicate is to be processed as a condition.
 javax.xml.namespace.QName label()
          Returns the label.
 Predicate predicate()
          Returns the target predicate.
abstract  EdgePredicate.Range range()
           
 void setAsCondition()
          Marks the predicate as a condition.
 void setPredicate(Predicate p)
          Sets the target predicate.
 java.lang.String toString()
          
 void unsetAsCondition()
          Unmarks the predicate as a condition.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

setAsCondition

public void setAsCondition()
Marks the predicate as a condition.


unsetAsCondition

public void unsetAsCondition()
Unmarks the predicate as a condition.


isCondition

public boolean isCondition()
Indicates whether the predicate is to be processed as a condition.

Returns:
true if it is, false otherwise.

predicate

public Predicate predicate()
Returns the target predicate.

Returns:
the predicate.

setPredicate

public void setPredicate(Predicate p)
Sets the target predicate.

Parameters:
p - the predicate.

label

public javax.xml.namespace.QName label()
Returns the label.

Returns:
the label.

range

public abstract EdgePredicate.Range range()

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object