com.threerings.antidote.property
Class NonEmptyListProperty

java.lang.Object
  extended by com.threerings.antidote.property.BaseProperty<List<String>>
      extended by com.threerings.antidote.property.ListProperty
          extended by com.threerings.antidote.property.NonEmptyListProperty
All Implemented Interfaces:
Mutable, Property<List<String>>, RequiresValidation

public class NonEmptyListProperty
extends ListProperty


Constructor Summary
NonEmptyListProperty(String name, Field field)
           
NonEmptyListProperty(String name, Field field, List<String> defaultValue)
           
 
Method Summary
protected  List<String> validateProperty()
          Give each Property a chance to do property specific validation and return the validated value.
 
Methods inherited from class com.threerings.antidote.property.BaseProperty
appendViolation, getField, getPropertyName, getRawValue, getValue, isNotSet, isSet, setValue, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonEmptyListProperty

public NonEmptyListProperty(String name,
                            Field field)

NonEmptyListProperty

public NonEmptyListProperty(String name,
                            Field field,
                            List<String> defaultValue)
Method Detail

validateProperty

protected List<String> validateProperty()
Description copied from class: BaseProperty
Give each Property a chance to do property specific validation and return the validated value. If the raw value could not turned into a valid value, this will return null.

Overrides:
validateProperty in class ListProperty


Copyright © 2007-2008 Three Rings Design, Inc. All Rights Reserved. Released under a BSD license.