public interface ChannelAccessAlarmOnlyString extends ChannelAccessAlarmString, ChannelAccessAlarmOnlyValue<String>, ChannelAccessGraphicsOnlyValue<String>, ChannelAccessControlsValue<String>
Channel Access value that represents the
DBR_STS_STRING
,
DBR_GR_STRING
, and
DBR_CTRL_STRING
types. In
contrast to other types, string values do not provide additional information
for the graphics and controls types so that the same data structure is used
for them.
This interface should not be implemented by user-defined classes. Code that
wants to create an instance implementing this interface should use the
methods provided by ChannelAccessValueFactory
instead.
Modifier and Type | Method and Description |
---|---|
ChannelAccessAlarmOnlyString |
asReadOnlyValue()
Returns a read-only version of this value.
|
ChannelAccessAlarmOnlyString |
clone()
Creates and returns a copy of this object.
|
getCharset, getRawValue, getValue, setRawValue, setValue
getCharset
getAlarmSeverity, getAlarmStatus, setAlarmSeverity, setAlarmStatus
equals, getGenericValueElement, getType, getValueSize, hashCode, isReadOnly, iterator, toString
forEach, spliterator
ChannelAccessAlarmOnlyString asReadOnlyValue()
Returns a read-only version of this value. If the value is read-only, this value is returned. Otherwise, a wrapped version of this value, that does not allow modifications is returned.
Please note that the read-only value is not a copy of this value, but just a wrapper around it. This means, that modifications of the wrapped value will result in modifications of the read-only value. Therefore it is bad practice to modify a value that has been used as the base for a read-only value, because code that still has a reference to the read-only value might not expect this change and thus fail unexpectedly.
asReadOnlyValue
in interface ChannelAccessAlarmOnlyValue<String>
asReadOnlyValue
in interface ChannelAccessAlarmString
asReadOnlyValue
in interface ChannelAccessAlarmValue<String>
asReadOnlyValue
in interface ChannelAccessControlsValue<String>
asReadOnlyValue
in interface ChannelAccessGettableValue<String>
asReadOnlyValue
in interface ChannelAccessGraphicsOnlyValue<String>
asReadOnlyValue
in interface ChannelAccessGraphicsValue<String>
asReadOnlyValue
in interface ChannelAccessString
asReadOnlyValue
in interface ChannelAccessValue<String>
null
).ChannelAccessAlarmOnlyString clone()
Creates and returns a copy of this object. The object returned is completely independent from this object. This means that modifications to this object will not affect the returned object and vice-versa.
The object returned is guaranteed to be completely identical to this
object, including its type. This means that
x.clone().equals(x)
and
x.clone().getClass() == x.getClass()
are always
true
.
The returned value is guaranteed to allow write access, even if this value is read-only. This means that cloning a read-only value is a good way to get a writable copy.
clone
in interface ChannelAccessAlarmOnlyValue<String>
clone
in interface ChannelAccessAlarmString
clone
in interface ChannelAccessAlarmValue<String>
clone
in interface ChannelAccessControlsValue<String>
clone
in interface ChannelAccessGettableValue<String>
clone
in interface ChannelAccessGraphicsOnlyValue<String>
clone
in interface ChannelAccessGraphicsValue<String>
clone
in interface ChannelAccessString
clone
in interface ChannelAccessValue<String>
Copyright © 2014–2016 aquenos GmbH. All rights reserved.