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

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