Version: ${maven.project.version}

org.soaplab.services.metadata
Class RepeatableDef

java.lang.Object
  extended by org.soaplab.services.metadata.RepeatableDef

public class RepeatableDef
extends java.lang.Object

Structure defining how a parameter can be repeated. Some useful combinations are:

 minRep  maxRep
 0       0      item is not repeatable (default)
 0      -1      repeatable infinitely
 m      -1      repeat min m-times
 0       n      repeat max n-times
 1       n      repeat max n-times
 m       n      repeat min m-times and max n-times
 
Additional options (in 'options'), some of them are:
 KEY           TYPE    CONTENTS
 repeatprompt  string  prompt describing what to be repeated (default: More...)
 

Version:
$Id: RepeatableDef.java,v 1.2 2007/04/19 22:17:06 marsenger Exp $
Author:
Martin Senger

Field Summary
 int maxRep
          Maximum number of repetitions.
 int minRep
          Minimum number of repetitions.
 PropertiesBag options
           
static java.lang.String REPEAT_ERROR
           
 
Constructor Summary
RepeatableDef()
           
 
Method Summary
 java.lang.String format(int indent)
          As toString() but with indentations.
 java.lang.String get(java.lang.String key)
          Convenient methods for accessing 'options'
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REPEAT_ERROR

public static final java.lang.String REPEAT_ERROR
See Also:
Constant Field Values

minRep

public int minRep
Minimum number of repetitions.


maxRep

public int maxRep
Maximum number of repetitions.


options

public PropertiesBag options
Constructor Detail

RepeatableDef

public RepeatableDef()
Method Detail

get

public java.lang.String get(java.lang.String key)
Convenient methods for accessing 'options'


toString

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

format

public java.lang.String format(int indent)
As toString() but with indentations.


Version: ${maven.project.version}

Submit a bug or feature
Generated: Tue Jun 14 15:18:14 AST 2011