public class SloSelection
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SloSelection.Beneficiary
Beneficiary of a service.
|
Modifier | Constructor and Description |
---|---|
protected |
SloSelection(com.uc4.util.XMLDocument doc) |
Modifier and Type | Method and Description |
---|---|
boolean |
addBeneficiary(SloSelection.Beneficiary beneficiary)
Adds a
Beneficiary to the object. |
java.util.Iterator<SloSelection.Beneficiary> |
beneficiariesIterator()
Returns an
java.util.Iterator of beneficiaries. |
java.lang.String |
getQuery()
Returns the query definition as XML.
|
boolean |
isQueryDefined()
Returns
true if the there is a query |
void |
removeAllBeneficiaries()
Removes all beneficiaries.
|
boolean |
removeBeneficiary(SloSelection.Beneficiary beneficiary)
Removes a specific
Beneficiary . |
void |
setQuery(java.lang.String query)
Sets the query definition.
|
protected void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request) |
public java.lang.String getQuery()
public boolean isQueryDefined()
true
if the there is a querypublic void setQuery(java.lang.String query)
query
- String containing a valid XMLpublic java.util.Iterator<SloSelection.Beneficiary> beneficiariesIterator()
java.util.Iterator
of beneficiaries.public void removeAllBeneficiaries()
public boolean removeBeneficiary(SloSelection.Beneficiary beneficiary)
Beneficiary
.beneficiary
- Beneficiarytrue
if the Beneficiary
was removed, false if not foundpublic boolean addBeneficiary(SloSelection.Beneficiary beneficiary)
Beneficiary
to the object.beneficiary
- Beneficiaryprotected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)