NodeValueImpl class
This abstract class defines the common attributes for all NodeValueObjects.
- Implemented types
Constructors
Properties
-
allDescriptionTranslations
→ Map<
Locale, String> -
Gets all translations of the description of the value.
no setteroverride
-
allValueTranslations
→ Map<
Locale, String> -
Gets all translations of the value.
no setteroverride
- extendedLastModified → String
-
Gets a unique, sortable string which is guaranteed to be unique across a huge set of devices.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setteroverride
- key ↔ String
-
Gets the key of the K/V tuple.
getter/setter pairoverride-getter
- lastModified ↔ int
-
Gets the epoch of the last modification of the value.
getter/setter pairoverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ String?
-
Gets the type of value.
getter/setter pairoverride
- value → String
-
Gets the default language value of the K/V tuple.
no setteroverride
Methods
-
deepClone(
) → NodeValue -
Creates a deep clone of the K/V tuple.
override
-
equals(
Object? object) → bool -
Checks if two NodeValue are equivalent in values.
override
-
getDescription(
[String? languageRange]) → String? -
Gets the description of the value.
override
-
getValue(
String languageRange) → String? -
Gets the string representation of the value in the default locale (Locale.ENGLISH).
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setDescription(
String description, [Locale? locale]) → String? -
Sets the description of the value.
override
-
setValue(
String value, [Locale? locale]) → void -
Sets the string representation of the value.
override
-
toByteArrayStream(
ByteSink out) → void -
Writes the current object to the output stream.
override
-
toSimpleString(
[String? languageRange]) → String? -
Returns a value in the specified language range or the default language if none specified.
override
-
toString(
[String prefix = '']) → String -
prints a space prefixed representation of the NodeValue.
override
-
touch(
) → void -
updates the timestamp to reflect that this node value has been touched.
override
-
update(
NodeValue nodeValue) → void -
Copies the all values of the given node to the current node value.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Properties
- defaultLocale → Locale
-
final
Static Methods
-
fromByteArrayStream(
ByteStream in_) → Future< NodeValueImpl> -
Deserializes a NodeValue from a byteStream.
override
-
getLocalizedString(
Map< String, String> map, String languageRange) → String? -
lookupLocale(
Map< String, String> map, String languageRange) → Locale -
setLocalizedString(
Map< String, String> map, String value, Locale locale) → void
Constants
- serialversionUID → const int