public class YCondition extends YExternalNetElement implements YConditionInterface
| Modifier and Type | Field and Description |
|---|---|
protected YIdentifierBag |
_bag |
_documentation, _name, _net| Constructor and Description |
|---|
YCondition(java.lang.String id,
java.lang.String label,
YNet container) |
YCondition(java.lang.String id,
YNet container) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(YPersistenceManager pmgr,
YIdentifier identifier)
Add an identifier to the condition.
|
java.lang.Object |
clone() |
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.
|
boolean |
isAnonymous() |
boolean |
isImplicit() |
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.
|
void |
setImplicit(boolean isImplicit) |
java.lang.String |
toXML() |
void |
verify(YVerificationHandler handler)
Internally verify the object against YAWL language semantics and
report any errors and/or warnings.
|
addPostset, addPreset, addToCancelledBySet, addToYawlMappings, addToYawlMappings, getCancelledBySet, getDocumentation, getDocumentationPreParsed, getName, getNet, getPostsetElement, getPostsetElements, getPostsetFlow, getPostsetFlows, getPresetElement, getPresetElements, getPresetFlow, getPresetFlows, getProperID, getYawlMappings, removeFromCancelledBySet, removePostsetFlow, removePresetFlow, setDocumentation, setID, setName, verifyPostsetFlows, verifyPresetFlowscompareTo, getID, toStringprotected YIdentifierBag _bag
public YCondition(java.lang.String id,
java.lang.String label,
YNet container)
public YCondition(java.lang.String id,
YNet container)
public void setImplicit(boolean isImplicit)
public boolean isImplicit()
public void verify(YVerificationHandler handler)
YVerifiableverify in interface YVerifiableverify in class YExternalNetElementYVerificationMessagepublic boolean isAnonymous()
public void add(YPersistenceManager pmgr, YIdentifier identifier) throws YPersistenceException
YConditionInterfaceadd in interface YConditionInterfacepmgr - an instantiated persistence manager object.identifier - the identifier to add.YPersistenceException - if there's a problem persisting the change.public boolean contains(YIdentifier identifier)
YConditionInterfacecontains in interface YConditionInterfaceidentifier - the identifier in question.public boolean containsIdentifier()
YConditionInterfacecontainsIdentifier in interface YConditionInterfacepublic int getAmount(YIdentifier identifier)
YConditionInterfacegetAmount in interface YConditionInterfaceidentifier - the identifier in question.public java.util.List<YIdentifier> getIdentifiers()
YConditionInterfacegetIdentifiers in interface YConditionInterfacepublic YIdentifier removeOne(YPersistenceManager pmgr) throws YPersistenceException
YConditionInterfaceremoveOne in interface YConditionInterfacepmgr - an instantiated persistence manager object.YPersistenceException - if there's a problem persisting the change.public void removeOne(YPersistenceManager pmgr, YIdentifier identifier) throws YPersistenceException
YConditionInterfaceremoveOne in interface YConditionInterfacepmgr - an instantiated persistence manager object.identifier - an identifier matching the one to be removed.YPersistenceException - if there's a problem persisting the change.public void remove(YPersistenceManager pmgr, YIdentifier identifier, int amount) throws YPersistenceException
YConditionInterfaceremove in interface YConditionInterfacepmgr - an instantiated persistence manager object.identifier - an identifier matching the ones to be removed.amount - the number of matching identifiers to remove.YPersistenceException - if there's a problem persisting the change.public void removeAll(YPersistenceManager pmgr, YIdentifier identifier) throws YPersistenceException
YConditionInterfaceremoveAll in interface YConditionInterfacepmgr - an instantiated persistence manager object.identifier - an identifier matching the ones to be removed.YPersistenceException - if there's a problem persisting the change.public void removeAll(YPersistenceManager pmgr) throws YPersistenceException
YConditionInterfaceremoveAll in interface YConditionInterfacepmgr - an instantiated persistence manager object.YPersistenceException - if there's a problem persisting the change.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class YExternalNetElementjava.lang.CloneNotSupportedExceptionpublic java.lang.String toXML()
toXML in class YExternalNetElementCopyright © 2004-2014 The YAWL Foundation.