adapforms.form
Class FormPath.Part

java.lang.Object
  extended by adapforms.form.FormPath.Part
Enclosing class:
FormPath

public class FormPath.Part
extends java.lang.Object

Single part of a form path. Contains of a mandatory path element (ID), and optionally a repeat entry ID.

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

Constructor Summary
FormPath.Part(java.lang.String id)
           
FormPath.Part(java.lang.String id, int entryID)
           
 
Method Summary
 java.lang.String getID()
          Get the base path element / ID.
 int getRepeatEntryID()
          Get the repeat entry ID.
 boolean isRepeatEntry()
          Determine if the part has a repeat entry ID.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormPath.Part

FormPath.Part(java.lang.String id)

FormPath.Part

FormPath.Part(java.lang.String id,
              int entryID)
Method Detail

getID

public java.lang.String getID()
Get the base path element / ID.


getRepeatEntryID

public int getRepeatEntryID()
                     throws java.lang.IllegalStateException
Get the repeat entry ID.

Throws:
java.lang.IllegalStateException - If no repeat entry ID is present.
See Also:
isRepeatEntry()

isRepeatEntry

public boolean isRepeatEntry()
Determine if the part has a repeat entry ID.


toString

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