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, verifyPresetFlows
compareTo, getID, toString
protected 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)
YVerifiable
verify
in interface YVerifiable
verify
in class YExternalNetElement
YVerificationMessage
public boolean isAnonymous()
public void add(YPersistenceManager pmgr, YIdentifier identifier) throws YPersistenceException
YConditionInterface
add
in interface YConditionInterface
pmgr
- an instantiated persistence manager object.identifier
- the identifier to add.YPersistenceException
- if there's a problem persisting the change.public boolean contains(YIdentifier identifier)
YConditionInterface
contains
in interface YConditionInterface
identifier
- the identifier in question.public boolean containsIdentifier()
YConditionInterface
containsIdentifier
in interface YConditionInterface
public int getAmount(YIdentifier identifier)
YConditionInterface
getAmount
in interface YConditionInterface
identifier
- the identifier in question.public java.util.List<YIdentifier> getIdentifiers()
YConditionInterface
getIdentifiers
in interface YConditionInterface
public YIdentifier removeOne(YPersistenceManager pmgr) throws YPersistenceException
YConditionInterface
removeOne
in interface YConditionInterface
pmgr
- an instantiated persistence manager object.YPersistenceException
- if there's a problem persisting the change.public void removeOne(YPersistenceManager pmgr, YIdentifier identifier) throws YPersistenceException
YConditionInterface
removeOne
in interface YConditionInterface
pmgr
- 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
YConditionInterface
remove
in interface YConditionInterface
pmgr
- 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
YConditionInterface
removeAll
in interface YConditionInterface
pmgr
- 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
YConditionInterface
removeAll
in interface YConditionInterface
pmgr
- 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 YExternalNetElement
java.lang.CloneNotSupportedException
public java.lang.String toXML()
toXML
in class YExternalNetElement
Copyright © 2004-2014 The YAWL Foundation.