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

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

public class ListDefinition
extends java.lang.Object
implements Definition

A list field in a MobileDB record.

Use ListOption with this field.


Constructor Summary
ListDefinition()
          Creates a new list without any options.
ListDefinition(java.util.List<ListOption> options)
          Creates a new list using the specified options.
ListDefinition(java.lang.String indicator)
          Creates a new list from the string representation for this type.
 
Method Summary
 java.lang.String getIndicator()
          Gets the string representation for this definition.
 java.util.List<ListOption> getOptions()
          Gets the options in this list.
 java.lang.String getRegex()
          Gets the regular expression for this definition.
 void setOptions(java.util.List<ListOption> options)
          Sets the options in this list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListDefinition

public ListDefinition()
Creates a new list without any options.


ListDefinition

public ListDefinition(java.util.List<ListOption> options)
Creates a new list using the specified options.

Parameters:
options - the options

ListDefinition

public ListDefinition(java.lang.String indicator)
Creates a new list 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

getOptions

public java.util.List<ListOption> getOptions()
Gets the options in this list.

Returns:
the options

setOptions

public void setOptions(java.util.List<ListOption> options)
Sets the options in this list.

Parameters:
options - the options