com.atlassian.bamboo.ant.task.property
Class AbstractPropertyManipulator

java.lang.Object
  extended by com.atlassian.bamboo.ant.task.property.AbstractPropertyManipulator
All Implemented Interfaces:
AntPropertyManipulator
Direct Known Subclasses:
AbstractSingleValueTaskPropertyConfigurator, SimpleFieldPropertyConfigurator

public abstract class AbstractPropertyManipulator
extends java.lang.Object
implements AntPropertyManipulator

Abstract manipulator that supports properties by type.

Contains hook supportsProperty(String) for subclasses to decide if given property name should be supported.

Since:
3.4

Field Summary
protected  java.util.List<java.lang.Class<?>> supportedTypes
           
 
Constructor Summary
protected AbstractPropertyManipulator(java.lang.Class<?> firstSupported, java.lang.Class<?>... restSupported)
           
 
Method Summary
 boolean supports(java.lang.Class<?> propertyType, java.lang.String propertyName)
           
protected  boolean supportsProperty(java.lang.String propName)
          Support for specific property name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

supportedTypes

protected final java.util.List<java.lang.Class<?>> supportedTypes
Constructor Detail

AbstractPropertyManipulator

protected AbstractPropertyManipulator(java.lang.Class<?> firstSupported,
                                      java.lang.Class<?>... restSupported)
Method Detail

supports

public boolean supports(java.lang.Class<?> propertyType,
                        java.lang.String propertyName)
Specified by:
supports in interface AntPropertyManipulator

supportsProperty

protected boolean supportsProperty(java.lang.String propName)
Support for specific property name. By default all property names are supported

Parameters:
propName - property name
Returns:
true, if property with given name is supported


Copyright © 2012 Atlassian. All Rights Reserved.