public class CAP4AudibleIndicator extends AbstractFieldsObject
AudibleIndicator ::=
CHOICE {
tone BOOLEAN,
burstList BurstList
}
Used as field type by CAP4CAMEL_AChBillingChargingCharacteristics.TimeDurationCharging.
| Modifier and Type | Class and Description |
|---|---|
static class |
CAP4AudibleIndicator.Choice
API for CAP-datatypes.AudibleIndicator.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED| Constructor and Description |
|---|
CAP4AudibleIndicator() |
| Modifier and Type | Method and Description |
|---|---|
CAP4AudibleIndicator |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CAP4AudibleIndicator |
copyOf(CAP4AudibleIndicator from)
Creates a new object of this type, cloning the values of common fields from the given object of any subclass of the same base type.
|
CAP4BurstList |
getBurstList()
Gets the value of the burstList choice.
|
CAP4AudibleIndicator.Choice |
getChoice()
Gets the discriminant of the current choice.
|
static FieldAccessor[] |
getFieldAccessors()
Gets a new array of the accessors for fields of this type.
|
Map<String,Object> |
getFieldsMap(boolean withAbsents)
Gets a Map from :discriminant-name to associated-value.
|
boolean |
getTone()
Gets the value of the tone choice.
|
boolean |
isBurstListChosen()
Tests whether the choice is burstList.
|
boolean |
isToneChosen()
Tests whether the choice is tone.
|
CAP4AudibleIndicator |
setBurstList(CAP4BurstList value)
Sets the value of the burstList choice.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
CAP4AudibleIndicator |
setTone(boolean value)
Sets the value of the tone choice.
|
equals, hashCode, toStringcheckModify, isReadOnlypublic CAP4AudibleIndicator clone()
clone in interface DataObjectclone in class AbstractDataObjectpublic static CAP4AudibleIndicator copyOf(CAP4AudibleIndicator from)
from - the object from which to copypublic CAP4BurstList getBurstList()
public CAP4AudibleIndicator.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap in class AbstractFieldsObjectwithAbsents - ignored, as value cannot be optionalpublic boolean getTone()
throws IllegalStateException
IllegalStateException - if choice is not tonepublic boolean isBurstListChosen()
public boolean isToneChosen()
public CAP4AudibleIndicator setBurstList(CAP4BurstList value) throws IllegalStateException, NullPointerException
value - the new value for the choiceIllegalStateException - if this instance has been marked as read-onlyNullPointerException - if the given value is nullpublic void setReadOnly()
setReadOnly in interface DataObjectsetReadOnly in class AbstractDataObjectpublic CAP4AudibleIndicator setTone(boolean value) throws IllegalStateException
value - the new value for the choiceIllegalStateException - if this instance has been marked as read-only