Exemplo n.º 1
0
        public object GetSequenceValue(NumberSequence sequence)
        {
            if (this._sequenceMap == null)
            {
                this._sequenceMap      = new HashMap <QNameManager.QName, object>();
                this.SequenceUpdateSet = new OrderedHashSet <NumberSequence>();
            }
            QNameManager.QName key         = sequence.GetName();
            object             valueObject = this._sequenceMap.Get(key);

            if (valueObject == null)
            {
                valueObject = sequence.GetValueObject();
                this._sequenceMap.Put(key, valueObject);
                this.SequenceUpdateSet.Add(sequence);
            }
            return(valueObject);
        }