org.gcube.contentmanagement.gcubedocumentlibrary.projections
Class AlternativeProjection

java.lang.Object
  extended by org.gcube.contentmanagement.gcubedocumentlibrary.projections.BaseProjection<GCubeAlternative,PropertyTypes.AlternativeProperty,AlternativeProjection>
      extended by org.gcube.contentmanagement.gcubedocumentlibrary.projections.AlternativeProjection
All Implemented Interfaces:
Projection<GCubeAlternative,PropertyTypes.AlternativeProperty>

public final class AlternativeProjection
extends BaseProjection<GCubeAlternative,PropertyTypes.AlternativeProperty,AlternativeProjection>

A Projection over GCubeAlternative elements.

Author:
Fabio Simeoni (University of Strathclyde)

Constructor Summary
AlternativeProjection(TreePredicate p)
          Creates an instance from a tree predicate, extracting only relevant constraints.
 
Method Summary
 TreePredicate documentPredicate()
          Returns a TreePredicate that characterises documents which match the projection.
 
Methods inherited from class org.gcube.contentmanagement.gcubedocumentlibrary.projections.BaseProjection
allexcept, constraints, equals, etc, hashCode, isConstrained, isExcluded, isFiltered, isIncluded, isOptional, predicate, toString, where, where, where, whereValue, with, with, with, withValue
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlternativeProjection

public AlternativeProjection(TreePredicate p)
Creates an instance from a tree predicate, extracting only relevant constraints.

Parameters:
p - the predicate.
Method Detail

documentPredicate

public TreePredicate documentPredicate()
Returns a TreePredicate that characterises documents which match the projection.

Returns:
the predicate.