net.dpml.tools.tasks
Class FeatureTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by net.dpml.tools.tasks.GenericTask
              extended by net.dpml.tools.tasks.ResourceTask
                  extended by net.dpml.tools.tasks.FeatureTask
Direct Known Subclasses:
FilterTask, PropertyTask

public abstract class FeatureTask
extends ResourceTask

Locate a named feature of the a project or resource.

Version:
1.2.0
Author:
Digital Product Meta Library

Field Summary
 
Fields inherited from class net.dpml.tools.tasks.GenericTask
ASC_EXT, GPG_EXE_KEY, MD5_EXT
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
FeatureTask()
           
 
Method Summary
protected  String getFeature()
          Return the assigned feature name.
protected  String resolve()
          Resolve the feature value.
 void setAlias(boolean flag)
          Set filename resolution switch.
 void setFeature(String feature)
          Set the name of the feature.
 void setType(String type)
          Optionaly set the resource type that the feature is related to.
 
Methods inherited from class net.dpml.tools.tasks.ResourceTask
getResource, setKey, setRef
 
Methods inherited from class net.dpml.tools.tasks.GenericTask
asc, checksum, copy, deleteDir, getContext, getLibrary, init, isInitialized, mkDir
 
Methods inherited from class org.apache.tools.ant.Task
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureTask

public FeatureTask()
Method Detail

setAlias

public void setAlias(boolean flag)
Set filename resolution switch. If true the filename feature will return an alias path.

Parameters:
flag - the alias switch

setFeature

public void setFeature(String feature)
Set the name of the feature.

Parameters:
feature - the feature name

setType

public void setType(String type)
Optionaly set the resource type that the feature is related to.

Parameters:
type - the resource type

getFeature

protected String getFeature()
Return the assigned feature name.

Returns:
the feature name

resolve

protected String resolve()
Resolve the feature value.

Returns:
the feature value