adapforms.runtime.adaptations
Class RepeatEntryAdaptation

java.lang.Object
  extended by adapforms.runtime.adaptations.ElementAdaptation
      extended by adapforms.runtime.adaptations.RepeatEntryAdaptation
All Implemented Interfaces:
Adaptation

public class RepeatEntryAdaptation
extends ElementAdaptation

Create new or delete existing repeat entry from the RepeatElement denoted by the path given.

Author:
Henrik Gammelmark, geemark@cs.au.dk

Constructor Summary
RepeatEntryAdaptation(FormPath path, FormPath entryPath, boolean newEntry, int entryID)
           
 
Method Summary
 int getEntryID()
          The ID of the entry to create or remove.
 FormPath getEntryPath()
          The full path to the entry in question.
 boolean isNewEntry()
          True if a new entry should be created, false if an existing entry should be removed.
 java.lang.String toString()
           
 
Methods inherited from class adapforms.runtime.adaptations.ElementAdaptation
getElementPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepeatEntryAdaptation

public RepeatEntryAdaptation(FormPath path,
                             FormPath entryPath,
                             boolean newEntry,
                             int entryID)
Method Detail

getEntryID

public int getEntryID()
The ID of the entry to create or remove.


isNewEntry

public boolean isNewEntry()
True if a new entry should be created, false if an existing entry should be removed.


getEntryPath

public FormPath getEntryPath()
The full path to the entry in question.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object