KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > xml > transform > impl > trax > TRAXTemplatesImpl


1 /***************************************************************************
2  * Copyright 2001-2005 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5
6 package org.exoplatform.services.xml.transform.impl.trax;
7
8 import java.util.Properties JavaDoc;
9 import javax.xml.transform.ErrorListener JavaDoc;
10 import javax.xml.transform.URIResolver JavaDoc;
11 import javax.xml.transform.Source JavaDoc;
12 import javax.xml.transform.Result JavaDoc;
13
14 import javax.xml.transform.Transformer JavaDoc;
15 import javax.xml.transform.Templates JavaDoc;
16
17 import javax.xml.transform.TransformerFactory JavaDoc;
18 import javax.xml.transform.TransformerException JavaDoc;
19 import javax.xml.transform.TransformerConfigurationException JavaDoc;
20 import org.exoplatform.services.xml.transform.trax.TRAXTemplates;
21 import org.exoplatform.services.xml.transform.trax.TRAXTransformer;
22 import org.exoplatform.services.xml.transform.impl.trax.TRAXTransformerImpl;
23 import org.exoplatform.services.xml.resolving.XMLResolvingService;
24
25
26 //import org.exoplatform.services.xml.transform.TransformRules;
27

28 /**
29  * Created by The eXo Platform SARL .
30  *
31  * Wrapper for Trax Transformer
32  * @author <a HREF="mailto:alex.kravchuk@gmail.com">Alexander Kravchuk</a>
33  * @version $Id: TRAXTemplatesImpl.java 566 2005-01-25 12:50:49Z kravchuk $
34  *
35  */

36
37 public class TRAXTemplatesImpl implements TRAXTemplates {
38     private Templates JavaDoc templates;
39     XMLResolvingService resolvingService;
40
41     public TRAXTemplatesImpl(Templates JavaDoc templates) {
42         this.templates = templates;
43     }
44
45     public Properties JavaDoc getOutputProperties(){
46         return templates.getOutputProperties();
47     }
48
49     public TRAXTransformer newTransformer() throws TransformerConfigurationException JavaDoc{
50         TRAXTransformerImpl transf = new TRAXTransformerImpl(this.templates);
51         transf.resolvingService = resolvingService;
52         return transf;
53     }
54 }
55
Popular Tags