|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hivemind.definition.Occurances
public abstract class Occurances
Identifies the number of contributions allowed to a configuration extension point.
| Field Summary | |
|---|---|
static Occurances |
NONE
|
static Occurances |
ONE_PLUS
At least one is required. |
static Occurances |
OPTIONAL
Optional, may be zero or one, but not more. |
static Occurances |
REQUIRED
Exactly one is required. |
static Occurances |
UNBOUNDED
An unbounded number, zero or more. |
| Method Summary | |
|---|---|
java.lang.String |
getName()
|
abstract boolean |
inRange(int count)
Validates that an actual count is in range for the particular Occurances count. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Occurances UNBOUNDED
public static final Occurances OPTIONAL
public static final Occurances REQUIRED
public static final Occurances ONE_PLUS
public static final Occurances NONE
| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic abstract boolean inRange(int count)
count - the number of items to check. Should be zero or greater.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||