org.apache.avalon.composition.data
Class SelectionDirective

java.lang.Object
  extended byorg.apache.avalon.composition.data.SelectionDirective
All Implemented Interfaces:
Serializable

public final class SelectionDirective
extends Object
implements Serializable

A DependencyDirective contains information describing how a depedency should be resolved.

Version:
CVS $Revision: 1.1.1.1 $ $Date: 2003/08/31 14:27:04 $
Author:
Stephen McConnell
See Also:
Serialized Form

Field Summary
static String EQUALS
           
static String EXISTS
           
static String INCLUDES
           
 
Constructor Summary
SelectionDirective(String feature, String value, String criteria, boolean optional)
          Creation of a new dependency directive.
 
Method Summary
 String getCriteria()
          Return the feature selection criteria.
 String getFeature()
          Return the feature name.
 String getValue()
          Return the feature value.
 boolean isOptional()
          Return the optional status of this directive.
 boolean isRequired()
          Return the required status of this directive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXISTS

public static final String EXISTS
See Also:
Constant Field Values

EQUALS

public static final String EQUALS
See Also:
Constant Field Values

INCLUDES

public static final String INCLUDES
See Also:
Constant Field Values
Constructor Detail

SelectionDirective

public SelectionDirective(String feature,
                          String value,
                          String criteria,
                          boolean optional)
Creation of a new dependency directive.

Parameters:
feature - the selection feature
value - the value to asses
criteria - the selection criteria
optional - the optional status
Method Detail

getFeature

public String getFeature()
Return the feature name.

Returns:
the name

getValue

public String getValue()
Return the feature value.

Returns:
the name

getCriteria

public String getCriteria()
Return the feature selection criteria.

Returns:
the criteria

isRequired

public boolean isRequired()
Return the required status of this directive.

Returns:
the required status

isOptional

public boolean isOptional()
Return the optional status of this directive. This is equivalent to !isRequired()

Returns:
the optional status


Copyright © Apache Software Foundation. All Rights Reserved.