org.gcube.contentmanagement.contentmanager.stubs.model.constraints
Class Match

java.lang.Object
  extended by org.gcube.contentmanagement.contentmanager.stubs.model.constraints.BaseConstraint<java.lang.Object>
      extended by org.gcube.contentmanagement.contentmanager.stubs.model.constraints.Match
All Implemented Interfaces:
java.io.Serializable, Constraint<java.lang.Object>

public class Match
extends BaseConstraint<java.lang.Object>

Constrains values to match a regular expression.

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

Method Summary
 boolean accepts(java.lang.Object o)
          Indicates whether a value satisfies the constraint.
 boolean equals(java.lang.Object obj)
          
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

accepts

public boolean accepts(java.lang.Object o)
Indicates whether a value satisfies the constraint.

Parameters:
o - the value.
Returns:
true if it does, false otherwise.

toString

public java.lang.String toString()

Overrides:
toString in class BaseConstraint<java.lang.Object>

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object