|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.utils.UnImplNode org.apache.xalan.templates.ElemTemplateElement org.apache.xalan.templates.OutputProperties
public class OutputProperties
This class provides information from xsl:output elements. It is mainly
a wrapper for Properties
, but can not extend that class
because it must be part of the ElemTemplateElement
heararchy.
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.
Field Summary | |
---|---|
private java.util.Properties |
m_properties
The output properties. |
(package private) static long |
serialVersionUID
|
Fields inherited from class org.apache.xalan.templates.ElemTemplateElement |
---|
m_docOrderNumber, m_firstChild, m_hasVariableDecl, m_nextSibling, m_parentNode |
Fields inherited from class org.apache.xml.utils.UnImplNode |
---|
actualEncoding, fDocumentURI |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
---|---|
OutputProperties()
Creates an empty OutputProperties with no default values. |
|
OutputProperties(java.util.Properties defaults)
Creates an empty OutputProperties with the specified defaults. |
|
OutputProperties(java.lang.String method)
Creates an empty OutputProperties with the defaults specified by a property file. |
Method Summary | |
---|---|
java.lang.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(OutputProperties opsrc)
Copy the keys and values from the source to this object. |
void |
copyFrom(java.util.Properties src)
Copy the keys and values from the source to this object. |
void |
copyFrom(java.util.Properties src,
boolean shouldResetDefaults)
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(java.lang.String key)
Searches for the boolean property with the specified key in the property list. |
static java.util.Properties |
getDefaultMethodProperties(java.lang.String method)
Deprecated. Use org.apache.xml.serializer.OuputPropertiesFactory. getDefaultMethodProperties directly. |
int |
getIntProperty(QName key)
Searches for the int property with the specified key in the property list. |
int |
getIntProperty(java.lang.String key)
Searches for the int property with the specified key in the property list. |
java.util.Properties |
getProperties()
Get the Properties object that this class wraps. |
java.lang.String |
getProperty(QName key)
Searches for the property with the specified key in the property list. |
java.lang.String |
getProperty(java.lang.String key)
Searches for the property with the specified key in the property list. |
java.util.Vector |
getQNameProperties(QName key)
Searches for the list of qname properties with the specified key in the property list. |
java.util.Vector |
getQNameProperties(java.lang.String key)
Searches for the list of qname properties with the specified key in the property list. |
static java.util.Vector |
getQNameProperties(java.lang.String key,
java.util.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(java.lang.String key)
Searches for the qname property with the specified key in the property list. |
static QName |
getQNameProperty(java.lang.String key,
java.util.Properties props)
Searches for the qname property with the specified key in the property list. |
static boolean |
isLegalPropertyKey(java.lang.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(java.lang.String key,
boolean value)
Set an output property. |
void |
setIntProperty(QName key,
int value)
Set an output property. |
void |
setIntProperty(java.lang.String key,
int value)
Set an output property. |
void |
setMethodDefaults(java.lang.String method)
Reset the default properties based on the method. |
void |
setProperty(QName key,
java.lang.String value)
Set an output property. |
void |
setProperty(java.lang.String key,
java.lang.String value)
Set an output property. |
void |
setQNameProperties(QName key,
java.util.Vector v)
Set an output property with a QName list value. |
void |
setQNameProperties(java.lang.String key,
java.util.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(java.lang.String key,
QName value)
Set an output property with a QName value. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
private java.util.Properties m_properties
Constructor Detail |
---|
public OutputProperties()
public OutputProperties(java.util.Properties defaults)
defaults
- the defaults.public OutputProperties(java.lang.String method)
At the moment, anything other than 'text', 'xml', and 'html', will use the output_xml.properties file.
method
- non-null reference to method name.Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public void setProperty(QName key, java.lang.String value)
key
- the key to be placed into the property list.value
- the value corresponding to key.OutputKeys
public void setProperty(java.lang.String key, java.lang.String value)
key
- the key to be placed into the property list.value
- the value corresponding to key.OutputKeys
public java.lang.String getProperty(QName key)
null
if the property is not found.
key
- the property key.
public java.lang.String getProperty(java.lang.String key)
null
if the property is not found.
key
- the property key.
public void setBooleanProperty(QName key, boolean value)
key
- the key to be placed into the property list.value
- the value corresponding to key.OutputKeys
public void setBooleanProperty(java.lang.String key, boolean value)
key
- the key to be placed into the property list.value
- the value corresponding to key.OutputKeys
public boolean getBooleanProperty(QName key)
false
if the property is not found, or if the value is other
than "yes".
key
- the property key.
public boolean getBooleanProperty(java.lang.String key)
false
if the property is not found, or if the value is other
than "yes".
key
- the property key.
public void setIntProperty(QName key, int value)
key
- the key to be placed into the property list.value
- the value corresponding to key.OutputKeys
public void setIntProperty(java.lang.String key, int value)
key
- the key to be placed into the property list.value
- the value corresponding to key.OutputKeys
public int getIntProperty(QName key)
false
if the property is not found, or if the value is other
than "yes".
key
- the property key.
public int getIntProperty(java.lang.String key)
false
if the property is not found, or if the value is other
than "yes".
key
- the property key.
public void setQNameProperty(QName key, QName value)
key
- the key to be placed into the property list.value
- the value corresponding to key.OutputKeys
public void setMethodDefaults(java.lang.String method)
method
- the method value.OutputKeys
public void setQNameProperty(java.lang.String key, QName value)
key
- the key to be placed into the property list.value
- the value corresponding to key.OutputKeys
public QName getQNameProperty(QName key)
null
if the property is not found.
key
- the property key.
public QName getQNameProperty(java.lang.String key)
null
if the property is not found.
key
- the property key.
public static QName getQNameProperty(java.lang.String key, java.util.Properties props)
null
if the property is not found.
key
- the property key.props
- the list of properties to search in.
public void setQNameProperties(QName key, java.util.Vector v)
key
- the key to be placed into the property list.v
- non-null list of QNames corresponding to key.OutputKeys
public void setQNameProperties(java.lang.String key, java.util.Vector v)
key
- the key to be placed into the property list.v
- non-null list of QNames corresponding to key.OutputKeys
public java.util.Vector getQNameProperties(QName key)
null
if the property is not found.
key
- the property key.
public java.util.Vector getQNameProperties(java.lang.String key)
null
if the property is not found.
key
- the property key.
public static java.util.Vector getQNameProperties(java.lang.String key, java.util.Properties props)
null
if the property is not found.
key
- the property key.props
- the list of properties to search in.
public void recompose(StylesheetRoot root) throws javax.xml.transform.TransformerException
recompose
in class ElemTemplateElement
root
- non-null reference to the stylesheet root object.
javax.xml.transform.TransformerException
public void compose(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
compose
in class ElemTemplateElement
javax.xml.transform.TransformerException
public java.util.Properties getProperties()
public void copyFrom(java.util.Properties src)
src
- non-null reference to the source properties.public void copyFrom(java.util.Properties src, boolean shouldResetDefaults)
src
- non-null reference to the source properties.shouldResetDefaults
- true if the defaults should be reset based on
the method property.public void copyFrom(OutputProperties opsrc) throws javax.xml.transform.TransformerException
opsrc
- non-null reference to an OutputProperties.
javax.xml.transform.TransformerException
public static boolean isLegalPropertyKey(java.lang.String key)
key
- non-null reference to key name.
public static java.util.Properties getDefaultMethodProperties(java.lang.String method)
At the moment, anything other than 'text', 'xml', and 'html', will use the output_xml.properties file.
method
- non-null reference to method name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |