Exemple #1
0
        public TypeExclusions Add(TypeExclusions additionalExclusions)
        {
            this.Exclude     = additionalExclusions.Exclude;
            this.DoNotFollow = additionalExclusions.DoNotFollow;

            return(this);
        }
Exemple #2
0
        protected TypeExclusionsClientBase(TypeExclusions typeExclusions)
        {
            if (typeExclusions == null)
            {
                throw new ArgumentNullException("typeExclusions");
            }

            this._typeExclusions.Add(typeExclusions);
        }
Exemple #3
0
        public EnumerableGetSubGraph(IGetObjectGraph getObjectGraph, TypeExclusions typeExclusions)
            : base(typeExclusions)
        {
            if (getObjectGraph == null)
            {
                throw new ArgumentNullException("getObjectGraph");
            }

            this._getObjectGraph = getObjectGraph;
        }
Exemple #4
0
        public static IGetObjectGraph BuildGetObjectGraph(TypeExclusions typeExclusions, ITypeFieldExclusion typeFieldExclusion)
        {
            LazyGetObjectGraph getObjectGraph = new LazyGetObjectGraph();

            IGetSubGraph getSubGraph = new CompositeGetSubGraph(new List <IGetSubGraph>()
            {
                new EnumerableGetSubGraph(getObjectGraph, typeExclusions),
                new DefaultGetSubGraph(getObjectGraph,
                                       new DefaultGetObjectFields(
                                           new FilteringGetTypeFields(
                                               new DefaultGetTypeFields(),
                                               typeFieldExclusion)),
                                       typeExclusions)
            });

            getObjectGraph.GetObjectGraph = new DefaultGetObjectGraph(getSubGraph, typeExclusions);

            return(getObjectGraph);
        }
Exemple #5
0
 public DefaultGraphologistComponents(TypeExclusions typeExclusions)
     : base(new DefaultGraphTraversal(typeExclusions), new DefaultGraphVisualization())
 {
 }
Exemple #6
0
 public DefaultGraphTraversal(TypeExclusions typeExclusions, ITypeFieldExclusion typeFieldExclusion)
     : base(BuildGetObjectGraph(typeExclusions, typeFieldExclusion))
 {
 }
Exemple #7
0
 public DefaultGraphTraversal(TypeExclusions typeExclusions)
     : this(typeExclusions, DefaultTypeFieldExclusion)
 {
 }
        public TypeExclusions Add(TypeExclusions additionalExclusions)
        {
            this.Exclude = additionalExclusions.Exclude;
            this.DoNotFollow = additionalExclusions.DoNotFollow;

            return this;
        }
        public EnumerableGetSubGraph(IGetObjectGraph getObjectGraph, TypeExclusions typeExclusions)
            : base(typeExclusions)
        {
            if (getObjectGraph == null) throw new ArgumentNullException("getObjectGraph");

            this._getObjectGraph = getObjectGraph;
        }
Exemple #10
0
        public static IGetObjectGraph BuildGetObjectGraph(TypeExclusions typeExclusions, ITypeFieldExclusion typeFieldExclusion)
        {
            LazyGetObjectGraph getObjectGraph = new LazyGetObjectGraph();

            IGetSubGraph getSubGraph = new CompositeGetSubGraph(new List<IGetSubGraph>()
                                                                {
                                                                    new EnumerableGetSubGraph(getObjectGraph, typeExclusions),
                                                                    new DefaultGetSubGraph(getObjectGraph,
                                                                                           new DefaultGetObjectFields(
                                                                                               new FilteringGetTypeFields(
                                                                                                   new DefaultGetTypeFields(),
                                                                                                   typeFieldExclusion)),
                                                                                           typeExclusions)
                                                                });

            getObjectGraph.GetObjectGraph = new DefaultGetObjectGraph(getSubGraph, typeExclusions);

            return getObjectGraph;
        }
Exemple #11
0
 public DefaultGraphTraversal(TypeExclusions typeExclusions, ITypeFieldExclusion typeFieldExclusion)
     : base(BuildGetObjectGraph(typeExclusions, typeFieldExclusion))
 {
 }
Exemple #12
0
 public DefaultGraphTraversal(TypeExclusions typeExclusions)
     : this(typeExclusions, DefaultTypeFieldExclusion)
 {
 }
Exemple #13
0
 public DefaultGraphologistComponents(TypeExclusions typeExclusions)
     : base(new DefaultGraphTraversal(typeExclusions), new DefaultGraphVisualization())
 {
 }
Exemple #14
0
        public DefaultGetSubGraph(IGetObjectGraph getObjectGraph, IGetObjectFields getObjectFields, TypeExclusions typeExclusions)
            : base(typeExclusions)
        {
            if (getObjectGraph == null) throw new ArgumentNullException("getObjectGraph");
            if (getObjectFields == null) throw new ArgumentNullException("getObjectFields");

            this._getObjectGraph = getObjectGraph;
            this._getObjectFields = getObjectFields;
        }
Exemple #15
0
        protected TypeExclusionsClientBase(TypeExclusions typeExclusions)
        {
            if (typeExclusions == null) throw new ArgumentNullException("typeExclusions");

            this._typeExclusions.Add(typeExclusions);
        }
Exemple #16
0
 public Graphologist(TypeExclusions typeExclusions)
     : this(new DefaultGraphologistComponents(typeExclusions))
 {
 }
Exemple #17
0
        public DefaultGetSubGraph(IGetObjectGraph getObjectGraph, IGetObjectFields getObjectFields, TypeExclusions typeExclusions)
            : base(typeExclusions)
        {
            if (getObjectGraph == null)
            {
                throw new ArgumentNullException("getObjectGraph");
            }
            if (getObjectFields == null)
            {
                throw new ArgumentNullException("getObjectFields");
            }

            this._getObjectGraph  = getObjectGraph;
            this._getObjectFields = getObjectFields;
        }
Exemple #18
0
 public Graphologist(TypeExclusions typeExclusions)
     : this(new DefaultGraphologistComponents(typeExclusions))
 {
 }