net.sourceforge.pmd.lang.rule.properties
Class AbstractMultiPackagedProperty<T>

java.lang.Object
  extended by net.sourceforge.pmd.lang.rule.properties.AbstractProperty<T>
      extended by net.sourceforge.pmd.lang.rule.properties.AbstractPackagedProperty<T>
          extended by net.sourceforge.pmd.lang.rule.properties.AbstractMultiPackagedProperty<T>
Type Parameters:
T -
All Implemented Interfaces:
Comparable<PropertyDescriptor<?>>, PropertyDescriptor<T>
Direct Known Subclasses:
MethodMultiProperty, TypeMultiProperty

public abstract class AbstractMultiPackagedProperty<T>
extends AbstractPackagedProperty<T>

Author:
Brian Remedios

Field Summary
protected static char DELIMITER
           
 
Fields inherited from class net.sourceforge.pmd.lang.rule.properties.AbstractPackagedProperty
PACKAGED_FIELD_TYPES_BY_KEY
 
Fields inherited from class net.sourceforge.pmd.lang.rule.properties.AbstractProperty
DEFAULT_DELIMITER, DEFAULT_NUMERIC_DELIMITER
 
Constructor Summary
protected AbstractMultiPackagedProperty(String theName, String theDescription, T theDefault, String[] theLegalPackageNames, float theUIOrder)
          Constructor for AbstractMultiPackagedProperty.
 
Method Summary
protected  String defaultAsString()
           
 boolean isMultiValue()
          Returns whether the property is multi-valued, i.e.
 
Methods inherited from class net.sourceforge.pmd.lang.rule.properties.AbstractPackagedProperty
addAttributesTo, itemTypeName, legalPackageNames, packageNameOf, packageNamesIn, valueErrorFor
 
Methods inherited from class net.sourceforge.pmd.lang.rule.properties.AbstractProperty
areEqual, asDelimitedString, asDelimitedString, asString, attributeValuesById, choices, compareTo, defaultHasNullValue, defaultValue, description, equals, errorFor, hashCode, isArray, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, toString, typeErrorFor, uiOrder, valuesErrorFor
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sourceforge.pmd.PropertyDescriptor
type, valueFrom
 

Field Detail

DELIMITER

protected static final char DELIMITER
See Also:
Constant Field Values
Constructor Detail

AbstractMultiPackagedProperty

protected AbstractMultiPackagedProperty(String theName,
                                        String theDescription,
                                        T theDefault,
                                        String[] theLegalPackageNames,
                                        float theUIOrder)
Constructor for AbstractMultiPackagedProperty.

Parameters:
theName - String
theDescription - String
theDefault - T
theLegalPackageNames - String[]
theUIOrder - float
Method Detail

isMultiValue

public boolean isMultiValue()
Description copied from class: AbstractProperty
Returns whether the property is multi-valued, i.e. an array of strings, As unary property rule properties will return a value of one, you must use the get/setProperty accessors when working with the actual values. When working with multi-value properties then the get/setProperties accessors must be used.

Specified by:
isMultiValue in interface PropertyDescriptor<T>
Overrides:
isMultiValue in class AbstractProperty<T>
Returns:
boolean
See Also:
PropertyDescriptor.isMultiValue()

defaultAsString

protected String defaultAsString()
Overrides:
defaultAsString in class AbstractProperty<T>
Returns:
String


Copyright © 2002-2015 InfoEther. All Rights Reserved.