net.dpml.library.info
Class DependencyDirective

java.lang.Object
  extended by net.dpml.library.info.AbstractDirective
      extended by net.dpml.library.info.DependencyDirective
All Implemented Interfaces:
Serializable

public final class DependencyDirective
extends AbstractDirective

The ModuleDirective class describes a module data-structure.

Version:
1.2.0
Author:
Digital Product Meta Library
See Also:
Serialized Form

Field Summary
static Scope BUILD
          BUILD scope.
static Scope RUNTIME
          RUNTIME scope.
static Scope TEST
          TEST scope.
 
Constructor Summary
DependencyDirective(Scope scope, IncludeDirective[] includes)
          Creation of a new dependency directive.
DependencyDirective(Scope scope, IncludeDirective[] includes, Properties properties)
          Creation of a new dependency directive.
 
Method Summary
 boolean equals(Object other)
          Compare this object with another for equality.
 IncludeDirective[] getIncludeDirectives()
          Return the array of resource includes associated with the dependency group.
 IncludeDirective[] getIncludeDirectives(Category category)
          Return the array of resource includes associated with the dependency group filtered relative to a supplied category.
 Scope getScope()
          Return the dependency scope.
 int hashCode()
          Compute the hash value.
 
Methods inherited from class net.dpml.library.info.AbstractDirective
equals, getProperties, getProperty, hashArray, hashValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILD

public static final Scope BUILD
BUILD scope.


RUNTIME

public static final Scope RUNTIME
RUNTIME scope.


TEST

public static final Scope TEST
TEST scope.

Constructor Detail

DependencyDirective

public DependencyDirective(Scope scope,
                           IncludeDirective[] includes)
Creation of a new dependency directive.

Parameters:
scope - the scope
includes - an array of resource includes

DependencyDirective

public DependencyDirective(Scope scope,
                           IncludeDirective[] includes,
                           Properties properties)
Creation of a new dependency directive.

Parameters:
scope - the scope
includes - an array of resource includes
properties - supplimentary properties
Method Detail

getScope

public Scope getScope()
Return the dependency scope.

Returns:
the scope

getIncludeDirectives

public IncludeDirective[] getIncludeDirectives()
Return the array of resource includes associated with the dependency group.

Returns:
the includes array

getIncludeDirectives

public IncludeDirective[] getIncludeDirectives(Category category)
Return the array of resource includes associated with the dependency group filtered relative to a supplied category.

Parameters:
category - a runtime category argument (SYSTEM, PUBLIC, PROTECTED or PRIVATE)
Returns:
the filtered includes array

equals

public boolean equals(Object other)
Compare this object with another for equality.

Overrides:
equals in class AbstractDirective
Parameters:
other - the other object
Returns:
true if equal

hashCode

public int hashCode()
Compute the hash value.

Overrides:
hashCode in class AbstractDirective
Returns:
the hascode value