The ScannerFactory is used to create scanner objects that will scan a class for its XML class schema. Caching is done by this factory so that repeat retrievals of a Scanner will not require repeat scanning of the class for its XML schema.
コード例 #1
0
 /// <summary>
 /// Constructor for the <c>Support</c> object. This will
 /// create a support object with the matcher and filter provided.
 /// This allows the user to override the transformations that
 /// are used to convert types to strings and back again.
 /// </summary>
 /// <param name="filter">
 /// this is the filter to use with this support
 /// </param>
 /// <param name="matcher">
 /// this is the matcher used for transformations
 /// </param>
 public Support(Filter filter, Matcher matcher)
 {
     this.transform = new Transformer(matcher);
     this.factory   = new ScannerFactory();
     this.creator   = new Instantiator();
     this.matcher   = matcher;
     this.filter    = filter;
 }
コード例 #2
0
ファイル: Support.cs プロジェクト: ngallagher/simplexml
 /// <summary>
 /// Constructor for the <c>Support</c> object. This will
 /// create a support object with the matcher and filter provided.
 /// This allows the user to override the transformations that
 /// are used to convert types to strings and back again.
 /// </summary>
 /// <param name="filter">
 /// this is the filter to use with this support
 /// </param>
 /// <param name="matcher">
 /// this is the matcher used for transformations
 /// </param>
 public Support(Filter filter, Matcher matcher) {
    this.transform = new Transformer(matcher);
    this.factory = new ScannerFactory();
    this.creator = new Instantiator();
    this.matcher = matcher;
    this.filter = filter;
 }