|
: Class Transformer
|
Constructor Summary | |
protected |
Method Summary | |
abstract void |
|
Get the error event handler in effect for the transformation. |
|
abstract java.util.Properties |
|
abstract java.lang.String |
|
abstract java.lang.Object |
|
Get an object that will be used to resolve URIs used in document(), etc. |
|
abstract void |
|
abstract void |
|
abstract void |
java.lang.String value)
|
abstract void |
java.lang.Object value)
|
abstract void |
|
abstract void |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Transformer()
Method Detail |
public abstract void setParameter(java.lang.String name, java.lang.Object value)
Pass a qualified name as a two-part string, the namespace URI enclosed in curly braces ({}), followed by the local name. If the name has a null URL, the String only contain the local name. An application can safely check for a non-null URI by testing to see if the first character of the name is a '{' character.
For example, if a URI and local name were obtained from an element then the qualified name would be "{http://xyz.foo.com/yada/baz.html}foo". Note that no prefix is used.
name
- The name of the parameter, which may begin with a namespace URI
in curly braces ({}).value
- The value object. This can be any valid Java object. It is
up to the processor to provide the proper object coersion or to simply
pass the object on for use in an extension.public abstract java.lang.Object getParameter(java.lang.String name)
This method does not return a default parameter value, which cannot be determined until the node context is evaluated during the transformation process.
public abstract void clearParameters()
If the resolver argument is null, the URIResolver value will be cleared, and the default behavior will be used.
resolver
- An object that implements the URIResolver interface,
or null.public abstract void setOutputProperties(java.util.Properties oformat) throws java.lang.IllegalArgumentException
If argument to this function is null, any properties previously set are removed, and the value will revert to the value defined in the templates object.
Pass a qualified property key name as a two-part string, the namespace URI enclosed in curly braces ({}), followed by the local name. If the name has a null URL, the String only contain the local name. An application can safely check for a non-null URI by testing to see if the first character of the name is a '{' character.
For example, if a URI and local name were obtained from an element then the qualified name would be "{http://xyz.foo.com/yada/baz.html}foo". Note that no prefix is used.
oformat
- A set of output properties that will be
used to override any of the same properties in affect
for the transformation.java.lang.IllegalArgumentException
- if any of the argument keys are not
Properties
public abstract java.util.Properties getOutputProperties()
The properties returned should contain properties set by the user, and properties set by the stylesheet, and these properties are "defaulted" by default properties specified by section 16 of the XSL Transformations (XSLT) W3C Recommendation. The properties that were specifically set by the user or the stylesheet should be in the base Properties list, while the XSLT default properties that were not specifically set should be the default Properties list. Thus, getOutputProperties().getProperty(String key) will obtain any properties, while getOutputProperties().get(String key) will only retrieve properties
Note that mutation of the Properties object returned will not effect the properties that the transformation contains.
If any of the argument keys are not recognized and are not namespace qualified, the property will be ignored. In other words the behaviour is not orthogonal with setOutputProperties.
Properties
public abstract void setOutputProperty(java.lang.String name, java.lang.String value) throws java.lang.IllegalArgumentException
Pass a qualified property name as a two-part string, the namespace URI enclosed in curly braces ({}), followed by the local name. If the name has a null URL, the String only contain the local name. An application can safely check for a non-null URI by testing to see if the first character of the name is a '{' character.
For example, if a URI and local name were obtained from an element then the qualified name would be "{http://xyz.foo.com/yada/baz.html}foo". Note that no prefix is used.
be effected by calling this method.name
- A non-null String that specifies an output
property name, which may be namespace qualified.value
- The non-null string value of the output property.java.lang.IllegalArgumentException
- If the property is not supported, and is
public abstract java.lang.String getOutputProperty(java.lang.String name) throws java.lang.IllegalArgumentException
name
- A non-null String that specifies an output
property name, which may be namespace qualified.throws java.lang.IllegalArgumentException
listener
- The new error listener.java.lang.IllegalArgumentException
- if listener is null.
|
|||||||||
FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |