atg.service.datacollection
Class FormatFieldEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by atg.service.datacollection.FormatFieldEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class FormatFieldEditor
extends java.beans.PropertyEditorSupport

Turns a FormatField into a String and vice versa.

See Also:
Formatter

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
static char FORMAT_STRING_INTRODUCER
          character that introduces format strings
static char FORMAT_VARIABLE_INTRODUCER
          character that indicates the field is a "special" field
static char QUOTE_CHAR
          character that begins and ends Strings
 
Constructor Summary
FormatFieldEditor()
           
 
Method Summary
 java.lang.String getAsText()
           
 void setAsText(java.lang.String pString)
          Parse the supplied string into a FormatField
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


FORMAT_VARIABLE_INTRODUCER

public static final char FORMAT_VARIABLE_INTRODUCER
character that indicates the field is a "special" field

See Also:
Constant Field Values

QUOTE_CHAR

public static final char QUOTE_CHAR
character that begins and ends Strings

See Also:
Constant Field Values

FORMAT_STRING_INTRODUCER

public static final char FORMAT_STRING_INTRODUCER
character that introduces format strings

See Also:
Constant Field Values
Constructor Detail

FormatFieldEditor

public FormatFieldEditor()
Method Detail

setAsText

public void setAsText(java.lang.String pString)
               throws java.lang.IllegalArgumentException
Parse the supplied string into a FormatField

Specified by:
setAsText in interface java.beans.PropertyEditor
Overrides:
setAsText in class java.beans.PropertyEditorSupport
Parameters:
pString - the string to parse
Throws:
java.lang.IllegalArgumentException

getAsText

public java.lang.String getAsText()
Specified by:
getAsText in interface java.beans.PropertyEditor
Overrides:
getAsText in class java.beans.PropertyEditorSupport