public void Store(Group group, QName applicationType, QName key, ScalarValue value_Renamed) { if (!dictionary.ContainsKey(group.TypeReference)) { dictionary[group.TypeReference] = new System.Collections.Generic.Dictionary<QName, ScalarValue>(); } dictionary[group.TypeReference][key]=value_Renamed; }
public void Store(Group group, QName applicationType, QName key, ScalarValue valueToEncode) { if (!table.ContainsKey(group)) { table[group] = new System.Collections.Generic.Dictionary<QName,ScalarValue>(); } table[group][key] = valueToEncode; }
protected static void AssertComposedScalarField(ComposedScalar field, Type type, String name, Operator exponentOp, ScalarValue exponentValue, Operator mantissaOp, ScalarValue mantissaValue) { Assert.AreEqual(type, field.Type); Assert.AreEqual(name, field.Name); Scalar[] fields = field.Fields; Assert.AreEqual(exponentOp, fields[0].Operator); Assert.AreEqual(exponentValue, fields[0].DefaultValue); Assert.AreEqual(mantissaOp, fields[1].Operator); Assert.AreEqual(mantissaValue, fields[1].DefaultValue); }
public void Store(Group template, QName key, QName applicationType, ScalarValue value) { _dictionary[Tuple.Create(template.TypeReference, key)] = value; }
static ScalarValue() { UNDEFINED = new UndefinedScalarValue(); NULL = new NullScalarValue(); }
public void Store(Group template, QName key, QName applicationType, ScalarValue value) { _dictionary[key] = value; }
public void Store(Group group, QName applicationType, QName key, ScalarValue value_Renamed) { table[key] = value_Renamed; }
public void Store(string dictionary, Group group, QName key, ScalarValue valueToEncode) { if (group.HasTypeReference()) currentApplicationType = group.TypeReference; GetDictionary(dictionary).Store(group, currentApplicationType, key, valueToEncode); }
protected static void AssertEncodeDecode(ScalarValue value, String bitString, TypeCodec type) { Assert.AreEqual(bitString, type.Encode(value ?? ScalarValue.NULL)); Assert.AreEqual(value, type.Decode(ByteUtil.CreateByteStream(bitString))); }
protected static TwinValue twin(ScalarValue first, ScalarValue second) { return new TwinValue(first, second); }
protected static void AssertScalarField(Scalar scalar, Type type, String name, String id, String namespace_ren, String dictionary, String key, String keyNamespace, Operator op, ScalarValue defaultVal, bool optional) { var qname = new QName(name, namespace_ren); Assert.AreEqual(type, scalar.Type); Assert.AreEqual(op, scalar.Operator); Assert.AreEqual(qname, scalar.QName); var keyName = new QName(key, keyNamespace); Assert.AreEqual(keyName, scalar.Key); Assert.AreEqual(id, scalar.Id); Assert.AreEqual(dictionary, scalar.Dictionary); Assert.AreEqual(defaultVal, scalar.DefaultValue); Assert.AreEqual(optional, scalar.Optional); }
protected static void AssertScalarField(Scalar scalar, Type type, String name, String id, String namespace_ren, String dictionary, String key, Operator op, ScalarValue defaultVal, bool optional) { AssertScalarField(scalar, type, name, id, namespace_ren, dictionary, key, namespace_ren, op, defaultVal, optional); }
protected static void AssertScalarField(FieldSet fieldSet, int fieldIndex, Type type, String name, OperatorCodec operator_ren, ScalarValue defaultValue) { var field = (Scalar)fieldSet.GetField(fieldIndex); AssertScalarField(field, type, name); Assert.AreEqual(operator_ren, field.OperatorCodec); Assert.AreEqual(defaultValue, field.DefaultValue); }
public void Store(IDictionary dictionary, Group group, QName key, ScalarValue valueToEncode) { if (group.HasTypeReference) _currentApplicationType = group.TypeReference; dictionary.Store(group, key, _currentApplicationType, valueToEncode); }
public void Store(string dictionary, Group group, QName key, ScalarValue valueToEncode) { Store(GetDictionary(dictionary), group, key, valueToEncode); }
private bool Equals(ScalarValue otherValue) { return value_Renamed == otherValue.ToLong(); }