GenericValueContainer (object)

The GenericValueContainer is a special implementation of the GenericValue and GenericArrayValue. It’s element type is GenericValue, thus it can be used to nest one GenericValue in another.

GenericValueContainer GenericValueContainer GenericValueContainer GenericArrayValue GenericArrayValue GenericValueContainer->GenericArrayValue GenericValue GenericValue GenericValueContainer->GenericValue

Methods

  GenericValueContainer ( in GenericValueContainer other )
  GenericValueContainer ()
GenericValueContainer clone ? ()
Boolean equals ? ( in Ref<GenericValue> other )
Ref<GenericValue> get ? ( in Integer index )
Ref<GenericValue> get ? ( in String key )
Integer getLayoutVersion ? ()
Type getValueType ? ()
Boolean has ? ( in String key )
UInt32 hash_ ? ()
  incrementLayoutVersion ! ()
Boolean isArray ? ()
  push ! ( in GenericValue value )
Boolean remove ! ( in Index index )
Boolean remove ! ( in String key )
  resize ! ( in Size newSize )
  set ! ( in Integer index, in GenericValue value )
  set ! ( in String key, in GenericValue value )
Size size ? ()

Methods in detail

GenericValueContainer ( in GenericValueContainer other )

copy constructor


GenericValueContainer ()

default constructor


GenericValueContainer GenericValueContainer.clone? ()

clone method


Boolean GenericValueContainer.equals? ( in Ref<GenericValue> other )

return true if this value matches another one NOTE: this is not properly supported (should compare the values)


Ref<GenericValue> GenericValueContainer.get? ( in Integer index )

returns a value by index


Ref<GenericValue> GenericValueContainer.get? ( in String key )

returns a value by name


Integer GenericValueContainer.getLayoutVersion? ()

returns the version of this container


Type GenericValueContainer.getValueType? ()

returns type of the value


Boolean GenericValueContainer.has? ( in String key )

returns if the given key exists


UInt32 GenericValueContainer.hash_? ()

returns a hash value for this NOTE: this is not properly supported (should do the hash of values)


GenericValueContainer.incrementLayoutVersion! ()

increments the version of this container


Boolean GenericValueContainer.isArray? ()

returns true if this value contains an array


GenericValueContainer.push! ( in GenericValue value )

pushed a value to the contained array


Boolean GenericValueContainer.remove! ( in Index index )

remove a value by index


Boolean GenericValueContainer.remove! ( in String key )

remove a value by name


GenericValueContainer.resize! ( in Size newSize )

returns the size of the contained value array - disabled


GenericValueContainer.set! ( in Integer index, in GenericValue value )

sets a value by index


GenericValueContainer.set! ( in String key, in GenericValue value )

sets a value by name


Size GenericValueContainer.size? ()

returns the size of the contained value array