public static class ServiceQuery.Multiplicity
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ServiceQuery.Multiplicity |
ONE
'1' multiplicity for required service (default for searchService methods).
|
static ServiceQuery.Multiplicity |
ONE_MANY
'1..*' multiplicity for required service (default for searchService methods).
|
static ServiceQuery.Multiplicity |
ZERO_MANY
'0..*' multiplicity for optional multi service (default for searchServices methods).
|
static ServiceQuery.Multiplicity |
ZERO_ONE
'0..1' multiplicity for single optional service.
|
Constructor and Description |
---|
Multiplicity()
Bean constructor.
|
Multiplicity(int from,
int to)
Create a multiplicity.
|
Modifier and Type | Method and Description |
---|---|
int |
getFrom()
Get the 'from' value, i.e.
|
int |
getTo()
Get the 'to' value, i.e.
|
void |
setFrom(int from)
Set the 'from' value, i.e.
|
void |
setTo(int to)
Get the 'to' value, i.e.
|
java.lang.String |
toString()
Get a string representation of the multiplicity.
|
public static ServiceQuery.Multiplicity ZERO_ONE
public static ServiceQuery.Multiplicity ONE
public static ServiceQuery.Multiplicity ZERO_MANY
public static ServiceQuery.Multiplicity ONE_MANY
public Multiplicity()
public Multiplicity(int from, int to)
from
- The minimal number of services for the search/query being considered successful (positive integer or 0).to
- The maximal number of services returned by the search/query (positive integer or -1 for unlimited).public int getFrom()
public void setFrom(int from)
from
- Positive integer or 0public int getTo()
public void setTo(int to)
to
- Positive integer or -1 for unlimited.public java.lang.String toString()
toString
in class java.lang.Object