Exemplo n.º 1
0
        public override void Join(IshField ishField, Enumerations.ValueAction valueAction)
        {
            if (ishField is IshMetadataField)
            {
                IshMetadataField ishMetadataField = (IshMetadataField)ishField;
                switch (valueAction)
                {
                case Enumerations.ValueAction.Append:
                    _value = _value + ishMetadataField.Value;
                    break;

                case Enumerations.ValueAction.Prepend:
                    _value = ishMetadataField.Value + _value;
                    break;

                case Enumerations.ValueAction.Overwrite:
                    _value = ishMetadataField.Value;
                    break;
                }
            }
            else
            {
                //do nothing
            }
        }
Exemplo n.º 2
0
        // override object.Equals
        public override bool Equals(object obj)
        {
            //
            // See the full list of guidelines at
            //   http://go.microsoft.com/fwlink/?LinkID=85237
            // and also the guidance for operator== at
            //   http://go.microsoft.com/fwlink/?LinkId=85238
            //

            if ((obj == null) || !(obj is IshField))
            {
                return(false);
            }
            IshField compareIshField = (IshField)obj;

            if ((_fieldName == compareIshField.Name) && (_fieldLevel == compareIshField.Level) && (_valueType == compareIshField.ValueType || compareIshField._valueType == Enumerations.ValueType.All))
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 3
0
 public override void Join(IshField ishField, Enumerations.ValueAction valueAction)
 {
     throw new NotImplementedException("Not implemented on IshMetadataFilterField");
 }
Exemplo n.º 4
0
 public virtual void Join(IshField ishField, Enumerations.ValueAction valueAction)
 {
     throw new NotImplementedException("Not implemented on IshField");
 }