org.apache.xalan.templates
public class OutputProperties extends ElemTemplateElement implements Cloneable
An OutputProperties list can contain another OutputProperties list as its "defaults"; this second property list is searched if the property key is not found in the original property list.
See Also: XSLT DTD
xsl:output in XSLT Specification
Constructor Summary | |
---|---|
OutputProperties()
Creates an empty OutputProperties with no default values. | |
OutputProperties(Properties defaults)
Creates an empty OutputProperties with the specified defaults.
| |
OutputProperties(String method)
Creates an empty OutputProperties with the defaults specified by
a property file. |
Method Summary | |
---|---|
Object | clone()
Clone this OutputProperties, including a clone of the wrapped Properties
reference.
|
void | compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition. |
void | copyFrom(Properties src)
Copy the keys and values from the source to this object. |
void | copyFrom(Properties src, boolean shouldResetDefaults)
Copy the keys and values from the source to this object. |
void | copyFrom(OutputProperties opsrc)
Copy the keys and values from the source to this object. |
boolean | getBooleanProperty(QName key)
Searches for the boolean property with the specified key in the property list.
|
boolean | getBooleanProperty(String key)
Searches for the boolean property with the specified key in the property list.
|
static Properties | getDefaultMethodProperties(String method)
Creates an empty OutputProperties with the defaults specified by
a property file. |
int | getIntProperty(QName key)
Searches for the int property with the specified key in the property list.
|
int | getIntProperty(String key)
Searches for the int property with the specified key in the property list.
|
Properties | getProperties()
Get the Properties object that this class wraps.
|
String | getProperty(QName key)
Searches for the property with the specified key in the property list.
|
String | getProperty(String key)
Searches for the property with the specified key in the property list.
|
Vector | getQNameProperties(QName key)
Searches for the list of qname properties with the specified key in
the property list.
|
Vector | getQNameProperties(String key)
Searches for the list of qname properties with the specified key in
the property list.
|
static Vector | getQNameProperties(String key, Properties props)
Searches for the list of qname properties with the specified key in
the property list.
|
QName | getQNameProperty(QName key)
Searches for the qname property with the specified key in the property list.
|
QName | getQNameProperty(String key)
Searches for the qname property with the specified key in the property list.
|
static QName | getQNameProperty(String key, Properties props)
Searches for the qname property with the specified key in the property list.
|
static boolean | isLegalPropertyKey(String key)
Report if the key given as an argument is a legal xsl:output key.
|
void | recompose(StylesheetRoot root)
This function is called to recompose all of the output format extended elements.
|
void | setBooleanProperty(QName key, boolean value)
Set an output property.
|
void | setBooleanProperty(String key, boolean value)
Set an output property.
|
void | setIntProperty(QName key, int value)
Set an output property.
|
void | setIntProperty(String key, int value)
Set an output property.
|
void | setMethodDefaults(String method)
Reset the default properties based on the method.
|
void | setProperty(QName key, String value)
Set an output property.
|
void | setProperty(String key, String value)
Set an output property.
|
void | setQNameProperties(QName key, Vector v)
Set an output property with a QName list value. |
void | setQNameProperties(String key, Vector v)
Set an output property with a QName list value. |
void | setQNameProperty(QName key, QName value)
Set an output property with a QName value. |
void | setQNameProperty(String key, QName value)
Set an output property with a QName value. |
Parameters: defaults the defaults.
At the moment, anything other than 'text', 'xml', and 'html', will use the output_xml.properties file.
Parameters: method non-null reference to method name.
Returns: A new OutputProperties reference, mutation of which should not effect this object.
Parameters: src non-null reference to the source properties.
Parameters: src non-null reference to the source properties. shouldResetDefaults true if the defaults should be reset based on the method property.
Parameters: opsrc non-null reference to an OutputProperties.
false
if the property is not found, or if the value is other
than "yes".
Parameters: key the property key.
Returns: the value in this property list as a boolean value, or false if null or not "yes".
false
if the property is not found, or if the value is other
than "yes".
Parameters: key the property key.
Returns: the value in this property list as a boolean value, or false if null or not "yes".
Deprecated: Use org.apache.xml.serializer.OuputPropertiesFactory. getDefaultMethodProperties directly.
Creates an empty OutputProperties with the defaults specified by a property file. The method argument is used to construct a string of the form output_[method].properties (for instance, output_html.properties). The output_xml.properties file is always used as the base.At the moment, anything other than 'text', 'xml', and 'html', will use the output_xml.properties file.
Parameters: method non-null reference to method name.
Returns: Properties object that holds the defaults for the given method.
false
if the property is not found, or if the value is other
than "yes".
Parameters: key the property key.
Returns: the value in this property list as a int value, or false if null or not a number.
false
if the property is not found, or if the value is other
than "yes".
Parameters: key the property key.
Returns: the value in this property list as a int value, or false if null or not a number.
Returns: non-null reference to Properties object.
null
if the property is not found.
Parameters: key the property key.
Returns: the value in this property list with the specified key value.
null
if the property is not found.
Parameters: key the property key.
Returns: the value in this property list with the specified key value.
null
if the property is not found.
Parameters: key the property key.
Returns: the value in this property list as a vector of QNames, or false if null or not "yes".
null
if the property is not found.
Parameters: key the property key.
Returns: the value in this property list as a vector of QNames, or false if null or not "yes".
null
if the property is not found.
Parameters: key the property key. props the list of properties to search in.
Returns: the value in this property list as a vector of QNames, or false if null or not "yes".
null
if the property is not found.
Parameters: key the property key.
Returns: the value in this property list as a QName value, or false if null or not "yes".
null
if the property is not found.
Parameters: key the property key.
Returns: the value in this property list as a QName value, or false if null or not "yes".
null
if the property is not found.
Parameters: key the property key. props the list of properties to search in.
Returns: the value in this property list as a QName value, or false if null or not "yes".
Parameters: key non-null reference to key name.
Returns: true if key is legal.
Parameters: root non-null reference to the stylesheet root object.
Parameters: key the key to be placed into the property list. value the value corresponding to key.
See Also: javax.xml.transform.OutputKeys
Parameters: key the key to be placed into the property list. value the value corresponding to key.
See Also: javax.xml.transform.OutputKeys
Parameters: key the key to be placed into the property list. value the value corresponding to key.
See Also: javax.xml.transform.OutputKeys
Parameters: key the key to be placed into the property list. value the value corresponding to key.
See Also: javax.xml.transform.OutputKeys
Parameters: method the method value.
See Also: javax.xml.transform.OutputKeys
Parameters: key the key to be placed into the property list. value the value corresponding to key.
See Also: javax.xml.transform.OutputKeys
Parameters: key the key to be placed into the property list. value the value corresponding to key.
See Also: javax.xml.transform.OutputKeys
Parameters: key the key to be placed into the property list. v non-null list of QNames corresponding to key.
See Also: javax.xml.transform.OutputKeys
Parameters: key the key to be placed into the property list. v non-null list of QNames corresponding to key.
See Also: javax.xml.transform.OutputKeys
Parameters: key the key to be placed into the property list. value the value corresponding to key.
See Also: javax.xml.transform.OutputKeys
Parameters: key the key to be placed into the property list. value the value corresponding to key.
See Also: javax.xml.transform.OutputKeys