com.threerings.antidote.field.text
Class SingleLineTextField

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.threerings.antidote.field.BaseComponent
              extended by com.threerings.antidote.field.BaseField
                  extended by com.threerings.antidote.field.text.TextField
                      extended by com.threerings.antidote.field.text.SingleLineTextField
All Implemented Interfaces:
Field, ReferenceField, RequiresValidation, Cloneable
Direct Known Subclasses:
Arch, EnumTextField, Name, Section, SimpleTextField, Version

public abstract class SingleLineTextField
extends TextField

A TextField that enforces the text data is always set, not zero length, and has no newlines or tabs.


Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
SingleLineTextField()
           
 
Method Summary
protected  String getText()
          Override getText() so that the initial steps of validateField() must have happened before access.
protected  void validateField()
          Give each subclass a chance to do field specific validation.
protected abstract  void validateTextField()
          Provide concrete classes a method for additional validation.
 
Methods inherited from class com.threerings.antidote.field.text.TextField
addText, scrubTextWhitespace, validateTextNotEmpty, validateTextWasSet
 
Methods inherited from class com.threerings.antidote.field.BaseField
execute, init, reconfigure, setRefid
 
Methods inherited from class com.threerings.antidote.field.BaseComponent
appendViolation, appendViolationList, getReferencedField, isReference, registerField, reportConflictingProperties, reportUnsetDependentFields, reportUnsetDependentProperties, reportUnsetField, setReference, validate, validateChildFields, validateChildFields, validateOptionalProperties, validateProperties, validateProperties
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.threerings.antidote.field.Field
getFieldName, getLocation
 

Constructor Detail

SingleLineTextField

public SingleLineTextField()
Method Detail

validateField

protected final void validateField()
Description copied from class: BaseComponent
Give each subclass a chance to do field specific validation.

Specified by:
validateField in class BaseComponent

getText

protected String getText()
Override getText() so that the initial steps of validateField() must have happened before access.

Overrides:
getText in class TextField

validateTextField

protected abstract void validateTextField()
Provide concrete classes a method for additional validation.



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