Java 类org.simpleframework.xml.transform.Transformer 实例源码

项目:simplexml    文件:Support.java   
/**
 * Constructor for the <code>Support</code> 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.
 * 
 * @param filter this is the filter to use with this support
 * @param matcher this is the matcher used for transformations
 * @param format this contains all the formatting for the XML
 */
public Support(Filter filter, Matcher matcher, Format format) {
   this.defaults = new DetailExtractor(this, FIELD);
   this.transform = new Transformer(matcher);
   this.scanners = new ScannerFactory(this);
   this.details = new DetailExtractor(this);
   this.labels = new LabelExtractor(format);
   this.instances = new InstanceFactory();
   this.matcher = matcher;
   this.filter = filter;
   this.format = format;
}
项目:simple-xml    文件:Support.java   
/**
 * Constructor for the <code>Support</code> 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.
 * 
 * @param filter this is the filter to use with this support
 * @param matcher this is the matcher used for transformations
 * @param format this contains all the formatting for the XML
 */
public Support(Filter filter, Matcher matcher, Format format) {
   this.defaults = new DetailExtractor(this, FIELD);
   this.transform = new Transformer(matcher);
   this.scanners = new ScannerFactory(this);
   this.details = new DetailExtractor(this);
   this.labels = new LabelExtractor(format);
   this.instances = new InstanceFactory();
   this.matcher = matcher;
   this.filter = filter;
   this.format = format;
}
项目:simplexml    文件:TransformerTest.java   
public void setUp() {
   this.transformer = new Transformer(new BlankMatcher());
}
项目:simple-xml    文件:TransformerTest.java   
public void setUp() {
   this.transformer = new Transformer(new BlankMatcher());
}