예제 #1
0
 /** Set an output property that will be in effect for the transformation. */
 public void setOutputProperty(String name, String value) throws IllegalArgumentException {
   if (name == null) {
     throw new IllegalArgumentException("name is null");
   }
   try {
     _sheet.setOutputMethodProperty("", name, value);
   } catch (XSLException ex) {
     throw new IllegalArgumentException(name + " = " + value);
   }
 }
예제 #2
0
 /**
  * Set the output properties for the transformation. These properties will override properties set
  * in the Templates with xsl:output.
  */
 public void setOutputProperties(Properties oformat) throws IllegalArgumentException {
   if (oformat == null) {
     _sheet.clearOutputMethodProperties();
   } else {
     for (Enumeration keys = oformat.keys(); keys.hasMoreElements(); ) {
       String key = (String) keys.nextElement();
       String val = oformat.getProperty(key);
       setOutputProperty(key, val);
     }
   }
 }
예제 #3
0
 /** Return null. See comment for getOutputProperties(). */
 public String getOutputProperty(String name) throws IllegalArgumentException {
   if (name == null) {
     throw new IllegalArgumentException("name is null");
   }
   return _sheet.getOutputMethodProperty("", name);
 }
예제 #4
0
 public Properties getOutputProperties() {
   return _sheet.getOutputMethodProperties();
 }