Ejemplo n.º 1
0
        protected internal override FtMetaSequenceRedirect CreateCopy(FtMetaSequenceList sequenceList, FtMetaSequenceList sourceSequenceList)
        {
            FtMetaSequenceRedirect redirect = SequenceRedirectFactory.CreateMetaSequenceRedirect(Type);

            redirect.Assign(this, sequenceList, sourceSequenceList);
            return(redirect);
        }
Ejemplo n.º 2
0
        public FtMetaSequenceRedirect New(int type)
        {
            FtMetaSequenceRedirect result = SequenceRedirectFactory.CreateMetaSequenceRedirect(type);

            Add(result);
            return(result);
        }
Ejemplo n.º 3
0
        protected internal override void Assign(FtMetaSequenceRedirect source, FtMetaSequenceList sequenceList, FtMetaSequenceList sourceSequenceList)
        {
            base.Assign(source, sequenceList, sourceSequenceList);

            FtExactDecimalMetaSequenceRedirect typedSource = source as FtExactDecimalMetaSequenceRedirect;

            Value = typedSource.Value;
        }
Ejemplo n.º 4
0
        internal protected override void LoadMeta(FtMetaSequenceRedirect metaSequenceRedirect, FtMetaSequenceList metaSequenceList, FtSequenceList sequenceList)
        {
            base.LoadMeta(metaSequenceRedirect, metaSequenceList, sequenceList);

            FtExactDateTimeMetaSequenceRedirect dateTimeMetaRedirect = metaSequenceRedirect as FtExactDateTimeMetaSequenceRedirect;

            value = dateTimeMetaRedirect.Value;
        }
Ejemplo n.º 5
0
        protected internal override void Assign(FtMetaSequenceRedirect source, FtMetaSequenceList sequenceList, FtMetaSequenceList sourceSequenceList)
        {
            base.Assign(source, sequenceList, sourceSequenceList);

            FtCaseInsensitiveStringMetaSequenceRedirect typedSource = source as FtCaseInsensitiveStringMetaSequenceRedirect;

            Value = typedSource.Value;
        }
Ejemplo n.º 6
0
        internal protected override void LoadMeta(FtMetaSequenceRedirect metaSequenceRedirect, FtMetaSequenceList metaSequenceList, FtSequenceList sequenceList)
        {
            base.LoadMeta(metaSequenceRedirect, metaSequenceList, sequenceList);

            FtCaseInsensitiveStringMetaSequenceRedirect stringMetaRedirect = metaSequenceRedirect as FtCaseInsensitiveStringMetaSequenceRedirect;

            value = stringMetaRedirect.Value;
        }
Ejemplo n.º 7
0
        internal protected override void LoadMeta(FtMetaSequenceRedirect metaSequenceRedirect, FtMetaSequenceList metaSequenceList, FtSequenceList sequenceList)
        {
            base.LoadMeta(metaSequenceRedirect, metaSequenceList, sequenceList);

            FtBooleanMetaSequenceRedirect booleanMetaRedirect = metaSequenceRedirect as FtBooleanMetaSequenceRedirect;

            value = booleanMetaRedirect.Value;
        }
Ejemplo n.º 8
0
        protected internal void Assign(FtMetaSequenceRedirectList source, FtMetaSequenceList sequenceList, FtMetaSequenceList sourceSequenceList)
        {
            list.Clear();
            list.Capacity = source.Count;

            for (int i = 0; i < source.Count; i++)
            {
                FtMetaSequenceRedirect redirect = source[i].CreateCopy(sequenceList, sourceSequenceList);
                Add(redirect);
            }
        }
Ejemplo n.º 9
0
        internal protected virtual void LoadMeta(FtMetaSequenceRedirect metaSequenceRedirect, FtMetaSequenceList metaSequenceList, FtSequenceList sequenceList)
        {
            type            = metaSequenceRedirect.Type;
            invokationDelay = metaSequenceRedirect.InvokationDelay;

            int sequenceIdx = metaSequenceList.IndexOf(metaSequenceRedirect.Sequence);

            if (sequenceIdx < 0)
            {
                throw FtInternalException.Create(InternalError.FtSequenceRedirect_LoadMeta_MetaSequenceRedirectSequenceNotFoundInMetaSequenceList, metaSequenceRedirect.Sequence.Name); // should never happen
            }
            else
            {
                sequence = sequenceList[sequenceIdx]; // sequenceList are in same order as Meta Sequence List
            }
        }
Ejemplo n.º 10
0
        protected internal virtual void Assign(FtMetaSequenceRedirect source, FtMetaSequenceList sequenceList, FtMetaSequenceList sourceSequenceList)
        {
            InvokationDelay = source.InvokationDelay;

            int sequenceIndex = sourceSequenceList.IndexOf(source.Sequence);

            if (sequenceIndex < 0)
            {
                throw FtInternalException.Create(InternalError.FtMetaSequenceItem_Assign_SourceFieldNotFound); // should never happen
            }
            else
            {
                if (sequenceIndex >= sequenceList.Count)
                {
                    throw FtInternalException.Create(InternalError.FtMetaSequenceItem_Assign_FieldIndexOutOfRange, sequenceIndex.ToString()); // should never happen
                }
                else
                {
                    Sequence = sequenceList[sequenceIndex];
                }
            }
        }
Ejemplo n.º 11
0
 public void Remove(FtMetaSequenceRedirect redirect)
 {
     list.Remove(redirect);
 }
Ejemplo n.º 12
0
 private void Add(FtMetaSequenceRedirect redirect)
 {
     list.Add(redirect);
 }
Ejemplo n.º 13
0
 protected internal override void Assign(FtMetaSequenceRedirect source, FtMetaSequenceList sequenceList, FtMetaSequenceList sourceSequenceList)
 {
     base.Assign(source, sequenceList, sourceSequenceList);
 }