org.apache.tools.ant.util.facade

Class ImplementationSpecificArgument

Known Direct Subclasses:
Javac.ImplementationSpecificArgument, Rmic.ImplementationSpecificArgument

public class ImplementationSpecificArgument
extends Commandline.Argument

Extension of Commandline.Argument with a new attribute that choses a specific implementation of the facade.

Since:
Ant 1.5

Field Summary

Fields inherited from class org.apache.tools.ant.ProjectComponent

project

Constructor Summary

ImplementationSpecificArgument()
Constructor for ImplementationSpecificArgument.

Method Summary

String[]
getParts(String chosenImpl)
Return the parts this Argument consists of, if the implementation matches the chosen implementation.
void
setImplementation(String impl)
Set the implementation this argument is for.

Methods inherited from class org.apache.tools.ant.types.Commandline.Argument

getParts, setFile, setLine, setPath, setPathref, setValue

Methods inherited from class org.apache.tools.ant.ProjectComponent

getProject, log, log, setProject

Constructor Details

ImplementationSpecificArgument

public ImplementationSpecificArgument()
Constructor for ImplementationSpecificArgument.

Method Details

getParts

public final String[] getParts(String chosenImpl)
Return the parts this Argument consists of, if the implementation matches the chosen implementation.

Parameters:
chosenImpl - the implementation to check against.

Returns:
the parts if the implemention matches or an zero length array if not.

See Also:
Commandline.Argument.getParts()


setImplementation

public void setImplementation(String impl)
Set the implementation this argument is for.

Parameters:
impl - the implementation this command line argument is for.


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.