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 ScalarValue Lookup(Group template, QName key, QName applicationType)
 {
     if (table.ContainsKey(template))
     {
         return (table[template]).ContainsKey(key) ? table[template][key] : ScalarValue.UNDEFINED;
     }
     return ScalarValue.UNDEFINED;
 }
        public ScalarValue Lookup(Group template, QName key, QName applicationType)
        {
            ScalarValue value;
            if (_dictionary.TryGetValue(Tuple.Create(template.TypeReference, key), out value))
                return value;

            return ScalarValue.Undefined;
        }
        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;
        }
        public ScalarValue Lookup(Group template, QName key, QName applicationType)
        {
            if (!table.ContainsKey(key))
            {
                return ScalarValue.UNDEFINED;
            }

            return  table[key];
        }
 public ScalarValue Lookup(Group template, QName key, QName applicationType)
 {
     if (dictionary.ContainsKey(template.TypeReference))
     {
         var applicationTypeMap = (System.Collections.IDictionary) dictionary[template.TypeReference];
         if (applicationTypeMap.Contains(key))
             return (ScalarValue) applicationTypeMap[key];
     }
     return ScalarValue.UNDEFINED;
 }
 public void Store(Group template, QName key, QName applicationType, ScalarValue value)
 {
     _dictionary[Tuple.Create(template.TypeReference, key)] = value;
 }
 public void Store(Group template, QName key, QName applicationType, ScalarValue value)
 {
     _dictionary[key] = value;
 }
 public ScalarValue Lookup(Group template, QName key, QName applicationType)
 {
     ScalarValue value;
     return _dictionary.TryGetValue(key, out value) ? value : ScalarValue.Undefined;
 }
 public void Store(Group group, QName applicationType, QName key, ScalarValue value_Renamed)
 {
     table[key] = value_Renamed;
 }
Пример #11
0
 public ScalarValue Lookup(IDictionary dictionary, Group group, QName key)
 {
     if (group.HasTypeReference)
         _currentApplicationType = group.TypeReference;
     return dictionary.Lookup(group, key, _currentApplicationType);
 }
Пример #12
0
 public ScalarValue Lookup(string dictionary, Group group, QName key)
 {
     if (group.HasTypeReference())
         currentApplicationType = group.TypeReference;
     return GetDictionary(dictionary).Lookup(group, key, currentApplicationType);
 }
Пример #13
0
 public static QName CreateImplicitName(QName name)
 {
     return new QName(name + "@" + _currentImplicitId++, name.Namespace);
 }
 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);
 }
Пример #15
0
 public void Store(IDictionary dictionary, Group group, QName key, ScalarValue valueToEncode)
 {
     if (group.HasTypeReference)
         _currentApplicationType = group.TypeReference;
     dictionary.Store(group, key, _currentApplicationType, valueToEncode);
 }
Пример #16
0
 public void Store(string dictionary, Group group, QName key, ScalarValue valueToEncode)
 {
     Store(GetDictionary(dictionary), group, key, valueToEncode);
 }
Пример #17
0
 public void NewMessage(MessageTemplate template)
 {
     _currentApplicationType = (template.HasTypeReference)
                                   ? template.TypeReference
                                   : FastConstants.AnyType;
 }
Пример #18
0
 public void Store(string dictionary, Group group, QName key, ScalarValue valueToEncode)
 {
     if (group.HasTypeReference())
         currentApplicationType = group.TypeReference;
     GetDictionary(dictionary).Store(group, currentApplicationType, key, valueToEncode);
 }
Пример #19
0
 public void NewMessage(MessageTemplate template)
 {
     currentApplicationType = (template.HasTypeReference())?template.TypeReference:Error.FastConstants.ANY_TYPE;
 }
Пример #20
0
 public ScalarValue Lookup(string dictionary, Group group, QName key)
 {
     return Lookup(GetDictionary(dictionary), group, key);
 }