org.gcube.data.trees.patterns
Class BoolPattern

java.lang.Object
  extended by org.gcube.data.trees.patterns.AbstractPattern
      extended by org.gcube.data.trees.patterns.LeafPattern<Boolean,Constraint<? super Boolean>>
          extended by org.gcube.data.trees.patterns.BoolPattern
All Implemented Interfaces:
Serializable, Pattern

public class BoolPattern
extends LeafPattern<Boolean,Constraint<? super Boolean>>

A Pattern that matches the value of a Leaf against a given Boolean Constraint.

Author:
Fabio Simeoni
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.gcube.data.trees.patterns.LeafPattern
constraint
 
Constructor Summary
BoolPattern(Constraint<? super Boolean> constraint)
          Creates an instance with a given constraint.
 
Method Summary
 String name()
          Returns the name of the pattern.
protected  Boolean valueOf(String s)
          Returns the typed equivalent of a leaf's value.
 
Methods inherited from class org.gcube.data.trees.patterns.LeafPattern
constraint, equals, hashCode, matches, prune, toString
 
Methods inherited from class org.gcube.data.trees.patterns.AbstractPattern
idPattern, setIdPattern
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BoolPattern

public BoolPattern(Constraint<? super Boolean> constraint)
Creates an instance with a given constraint.

Parameters:
constraint - the constraint
Method Detail

valueOf

protected Boolean valueOf(String s)
Returns the typed equivalent of a leaf's value.

Specified by:
valueOf in class LeafPattern<Boolean,Constraint<? super Boolean>>
Parameters:
s - the value
Returns:
the typed value

name

public String name()
Description copied from class: LeafPattern
Returns the name of the pattern.

Specified by:
name in class LeafPattern<Boolean,Constraint<? super Boolean>>
Returns:
the name


Copyright © 2013. All Rights Reserved.