public interface YConditionInterface
Modifier and Type | Method and Description |
---|---|
void |
add(YPersistenceManager pmgr,
YIdentifier id)
Add an identifier to the condition.
|
boolean |
contains(YIdentifier identifier)
Check whether a condition contains the specified identifier.
|
boolean |
containsIdentifier()
Check whether a condition has at least one identifier.
|
int |
getAmount(YIdentifier identifier)
Get the number of identifiers in a condition that match the specified identifier.
|
java.util.List<YIdentifier> |
getIdentifiers()
Get all the identifiers in a condition.
|
void |
remove(YPersistenceManager pmgr,
YIdentifier identifier,
int amount)
Remove a specified number of identifiers equal to the specified identifier
from the condition.
|
void |
removeAll(YPersistenceManager pmgr)
Remove all the identifiers in the condition.
|
void |
removeAll(YPersistenceManager pmgr,
YIdentifier identifier)
Remove all the identifiers that match the specified identifier.
|
YIdentifier |
removeOne(YPersistenceManager pmgr)
Remove one identifier from the condition.
|
void |
removeOne(YPersistenceManager pmgr,
YIdentifier identifier)
Remove one identifier equal to the specified identifier from the condition.
|
boolean contains(YIdentifier identifier)
identifier
- the identifier in question.boolean containsIdentifier()
int getAmount(YIdentifier identifier)
identifier
- the identifier in question.java.util.List<YIdentifier> getIdentifiers()
YIdentifier removeOne(YPersistenceManager pmgr) throws java.lang.RuntimeException, YPersistenceException
pmgr
- an instantiated persistence manager object.java.lang.RuntimeException
- if there's a problem removing the identifier.YPersistenceException
- if there's a problem persisting the change.void removeOne(YPersistenceManager pmgr, YIdentifier identifier) throws YPersistenceException
pmgr
- an instantiated persistence manager object.identifier
- an identifier matching the one to be removed.YPersistenceException
- if there's a problem persisting the change.void remove(YPersistenceManager pmgr, YIdentifier identifier, int amount) throws YStateException, YPersistenceException
pmgr
- an instantiated persistence manager object.identifier
- an identifier matching the ones to be removed.amount
- the number of matching identifiers to remove.YStateException
- if the amount specified is greater than the number of identifiers
held inside the condition, and furthermore no change will be made to the state of this.YPersistenceException
- if there's a problem persisting the change.void removeAll(YPersistenceManager pmgr, YIdentifier identifier) throws YPersistenceException
pmgr
- an instantiated persistence manager object.identifier
- an identifier matching the ones to be removed.YPersistenceException
- if there's a problem persisting the change.void removeAll(YPersistenceManager pmgr) throws YPersistenceException
pmgr
- an instantiated persistence manager object.YPersistenceException
- if there's a problem persisting the change.void add(YPersistenceManager pmgr, YIdentifier id) throws YPersistenceException
pmgr
- an instantiated persistence manager object.id
- the identifier to add.YPersistenceException
- if there's a problem persisting the change.Copyright © 2004-2014 The YAWL Foundation.