net.sourceforge.jpalm.mobiledb.field.definition
Class TextDefinition

java.lang.Object
  extended by net.sourceforge.jpalm.mobiledb.field.definition.TextDefinition
All Implemented Interfaces:
Definition

public class TextDefinition
extends java.lang.Object
implements Definition

A text field in a MobileDB record.

Use Text with this field.


Constructor Summary
TextDefinition()
          Creates a new text field that does not auto capitalize.
TextDefinition(boolean autoCapitalize)
          Creates a new text field.
TextDefinition(java.lang.String indicator)
          Creates a new text field from the string representation for this type.
 
Method Summary
 java.lang.String getIndicator()
          Gets the string representation for this definition.
 java.lang.String getRegex()
          Gets the regular expression for this definition.
 boolean isAutoCapitalize()
          Gets the autoCapitalize property.
 void setAutoCapitalize(boolean autoCapitalize)
          Sets the autoCapitalize property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextDefinition

public TextDefinition()
Creates a new text field that does not auto capitalize.


TextDefinition

public TextDefinition(boolean autoCapitalize)
Creates a new text field.

Parameters:
autoCapitalize - true if the field should auto capitalize; false otherwise

TextDefinition

public TextDefinition(java.lang.String indicator)
Creates a new text field from the string representation for this type.

Parameters:
indicator - the string representation
Method Detail

getIndicator

public java.lang.String getIndicator()
Description copied from interface: Definition
Gets the string representation for this definition.

Specified by:
getIndicator in interface Definition
Returns:
the string representation

getRegex

public java.lang.String getRegex()
Description copied from interface: Definition
Gets the regular expression for this definition. The regular expression is compared to a field and if the field matches the expression then that field is of this definition.

Specified by:
getRegex in interface Definition
Returns:
the regular expression for this definition

isAutoCapitalize

public boolean isAutoCapitalize()
Gets the autoCapitalize property.

Returns:
true if the text should auto capitalize; false otherwise

setAutoCapitalize

public void setAutoCapitalize(boolean autoCapitalize)
Sets the autoCapitalize property.

Parameters:
autoCapitalize - true if the text should auto capitalize; false otherwise