コード例 #1
0
ファイル: Graphology.cs プロジェクト: dklinger/Graphology
        public TypeExclusions Add(TypeExclusions additionalExclusions)
        {
            this.Exclude     = additionalExclusions.Exclude;
            this.DoNotFollow = additionalExclusions.DoNotFollow;

            return(this);
        }
コード例 #2
0
ファイル: Graphology.cs プロジェクト: dklinger/Graphology
        protected TypeExclusionsClientBase(TypeExclusions typeExclusions)
        {
            if (typeExclusions == null)
            {
                throw new ArgumentNullException("typeExclusions");
            }

            this._typeExclusions.Add(typeExclusions);
        }
コード例 #3
0
ファイル: Graphology.cs プロジェクト: dklinger/Graphology
        public EnumerableGetSubGraph(IGetObjectGraph getObjectGraph, TypeExclusions typeExclusions)
            : base(typeExclusions)
        {
            if (getObjectGraph == null)
            {
                throw new ArgumentNullException("getObjectGraph");
            }

            this._getObjectGraph = getObjectGraph;
        }
コード例 #4
0
ファイル: Graphology.cs プロジェクト: dklinger/Graphology
        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);
        }
コード例 #5
0
ファイル: Graphology.cs プロジェクト: dklinger/Graphology
 public DefaultGraphologistComponents(TypeExclusions typeExclusions)
     : base(new DefaultGraphTraversal(typeExclusions), new DefaultGraphVisualization())
 {
 }
コード例 #6
0
ファイル: Graphology.cs プロジェクト: dklinger/Graphology
 public DefaultGraphTraversal(TypeExclusions typeExclusions, ITypeFieldExclusion typeFieldExclusion)
     : base(BuildGetObjectGraph(typeExclusions, typeFieldExclusion))
 {
 }
コード例 #7
0
ファイル: Graphology.cs プロジェクト: dklinger/Graphology
 public DefaultGraphTraversal(TypeExclusions typeExclusions)
     : this(typeExclusions, DefaultTypeFieldExclusion)
 {
 }
コード例 #8
0
ファイル: Graphology.cs プロジェクト: TeaDrivenDev/Graphology
        public TypeExclusions Add(TypeExclusions additionalExclusions)
        {
            this.Exclude = additionalExclusions.Exclude;
            this.DoNotFollow = additionalExclusions.DoNotFollow;

            return this;
        }
コード例 #9
0
ファイル: Graphology.cs プロジェクト: TeaDrivenDev/Graphology
        public EnumerableGetSubGraph(IGetObjectGraph getObjectGraph, TypeExclusions typeExclusions)
            : base(typeExclusions)
        {
            if (getObjectGraph == null) throw new ArgumentNullException("getObjectGraph");

            this._getObjectGraph = getObjectGraph;
        }
コード例 #10
0
ファイル: Graphology.cs プロジェクト: TeaDrivenDev/Graphology
        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;
        }
コード例 #11
0
ファイル: Graphology.cs プロジェクト: TeaDrivenDev/Graphology
 public DefaultGraphTraversal(TypeExclusions typeExclusions, ITypeFieldExclusion typeFieldExclusion)
     : base(BuildGetObjectGraph(typeExclusions, typeFieldExclusion))
 {
 }
コード例 #12
0
ファイル: Graphology.cs プロジェクト: TeaDrivenDev/Graphology
 public DefaultGraphTraversal(TypeExclusions typeExclusions)
     : this(typeExclusions, DefaultTypeFieldExclusion)
 {
 }
コード例 #13
0
ファイル: Graphology.cs プロジェクト: TeaDrivenDev/Graphology
 public DefaultGraphologistComponents(TypeExclusions typeExclusions)
     : base(new DefaultGraphTraversal(typeExclusions), new DefaultGraphVisualization())
 {
 }
コード例 #14
0
ファイル: Graphology.cs プロジェクト: TeaDrivenDev/Graphology
        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;
        }
コード例 #15
0
ファイル: Graphology.cs プロジェクト: TeaDrivenDev/Graphology
        protected TypeExclusionsClientBase(TypeExclusions typeExclusions)
        {
            if (typeExclusions == null) throw new ArgumentNullException("typeExclusions");

            this._typeExclusions.Add(typeExclusions);
        }
コード例 #16
0
ファイル: Graphology.cs プロジェクト: dklinger/Graphology
 public Graphologist(TypeExclusions typeExclusions)
     : this(new DefaultGraphologistComponents(typeExclusions))
 {
 }
コード例 #17
0
ファイル: Graphology.cs プロジェクト: dklinger/Graphology
        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;
        }
コード例 #18
0
ファイル: Graphology.cs プロジェクト: TeaDrivenDev/Graphology
 public Graphologist(TypeExclusions typeExclusions)
     : this(new DefaultGraphologistComponents(typeExclusions))
 {
 }