public final class CfgCaseData
extends java.lang.Object
Constructor and Description |
---|
CfgCaseData(boolean valueFree)
Constructs data descriptor with the specified "free-of-values" value.
|
CfgCaseData(CfgCaseData data)
Copy constructor.
|
CfgCaseData(EventList events,
java.util.Collection<ru.ispras.fortress.expression.NodeValue> values)
Constructs data descriptor with the specified parameters.
|
CfgCaseData(EventList events,
java.util.Collection<ru.ispras.fortress.expression.NodeValue> values,
boolean valueFree)
Constructs data descriptor with the specified parameters.
|
CfgCaseData(EventList events,
ru.ispras.fortress.expression.NodeValue value)
Constructs data descriptor with the specified parameters.
|
CfgCaseData(ru.ispras.fortress.expression.NodeValue value)
Constructs data descriptor with the specified value.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ru.ispras.fortress.expression.NodeValue value)
Adds the specified values to this descriptor.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription(ru.ispras.fortress.expression.printer.ExprTreePrinter printer)
Returns the string description for this object in the format of the specified printer.
|
EventList |
getEventList()
Returns the list of events that is related to this descriptor.
|
java.util.Set<ru.ispras.fortress.expression.NodeValue> |
getValues()
Returns the collection of descriptor-related values.
|
boolean |
hasEvents()
Checks whether this descriptor contains events.
|
int |
hashCode() |
boolean |
isValueFree()
Checks whether this descriptor does not contain any values.
|
void |
remove(ru.ispras.fortress.expression.NodeValue value)
Removes the specified value from the descriptor.
|
void |
removeValues()
Removes all the related values for this descriptor.
|
boolean |
setValueFree(boolean isDefault)
Sets the specified value to "free of values" flag.
|
public CfgCaseData(EventList events, java.util.Collection<ru.ispras.fortress.expression.NodeValue> values, boolean valueFree)
events
- The list of events.values
- The collection of same-type values.valueFree
- The "free of values" indicator.public CfgCaseData(EventList events, ru.ispras.fortress.expression.NodeValue value)
events
- The list of events.value
- The value.public CfgCaseData(EventList events, java.util.Collection<ru.ispras.fortress.expression.NodeValue> values)
events
- The list of events.values
- The collection of same-type values.public CfgCaseData(boolean valueFree)
valueFree
- The "free-of-values" flag.public CfgCaseData(ru.ispras.fortress.expression.NodeValue value)
value
- The value.public CfgCaseData(CfgCaseData data)
data
- The data object which fields are to be copied.public java.util.Set<ru.ispras.fortress.expression.NodeValue> getValues()
public boolean isValueFree()
true
when this object does not contain values, false
otherwise.public boolean setValueFree(boolean isDefault)
isDefault
- The value to be set to "free of values" flag.true
when this value has been successfully set, false
otherwise.public void add(ru.ispras.fortress.expression.NodeValue value)
value
- The value to be added to this descriptor.public void remove(ru.ispras.fortress.expression.NodeValue value)
value
- The value to be removed from the descriptor.public void removeValues()
public EventList getEventList()
public boolean hasEvents()
true
when the descriptor contains at least one event, false
otherwise.public java.lang.String getDescription(ru.ispras.fortress.expression.printer.ExprTreePrinter printer)
printer
- The printer that formats the description.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object