org.apache.avalon.composition.data
Class Targets

java.lang.Object
  extended byorg.apache.avalon.composition.data.Targets

public class Targets
extends Object

A target is a tagged configuration fragment. The tag is a path seperated by "/" charaters qualifying the component that the target configuration is to be applied to.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/09/24 09:31:13 $
Author:
Stephen McConnell

Constructor Summary
Targets()
          Create an empty Targets instance.
Targets(TargetDirective[] targets)
          Create a new Targets instance.
 
Method Summary
 TargetDirective getTarget(String path)
          Return a matching target.
 TargetDirective[] getTargets()
          Return all targets.
 Targets getTargets(String path)
          Return a set of targets relative to the supplied path.
 String toString()
          Return a string representation of the target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Targets

public Targets()
Create an empty Targets instance.


Targets

public Targets(TargetDirective[] targets)
Create a new Targets instance.

Parameters:
targets - the set of targets
Method Detail

getTargets

public TargetDirective[] getTargets()
Return all targets.

Returns:
all the targets in this targets instance.

getTarget

public TargetDirective getTarget(String path)
Return a matching target.

Parameters:
path - the target path to lookup
Returns:
the target or null if no matching target

getTargets

public Targets getTargets(String path)
Return a set of targets relative to the supplied path.

Parameters:
path - the base path to match against
Returns:
the set of relative targets

toString

public String toString()
Return a string representation of the target.

Returns:
a string representing the target instance


Copyright © Apache Software Foundation. All Rights Reserved.