|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xml.utils.UnImplNode | +--weblogic.apache.xalan.templates.ElemTemplateElement | +--weblogic.apache.xalan.templates.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.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Field Summary | |
static java.lang.String |
S_KEY_CONTENT_HANDLER
Fully qualified name of class with a default constructor that implements the ContentHandler interface, where the result tree events will be sent to. |
static java.lang.String |
S_KEY_ENTITIES
File name of file that specifies character to entity reference mappings. |
static java.lang.String |
S_KEY_INDENT_AMOUNT
The number of whitespaces to indent by, if indent="yes". |
static java.lang.String |
S_USE_URL_ESCAPING
Use a value of "yes" if the href values for HTML serialization should use %xx escaping. |
Fields inherited from class weblogic.apache.xalan.templates.ElemTemplateElement |
m_docOrderNumber,
m_parentNode |
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()
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 boolean |
getBooleanProperty(java.lang.String key,
java.util.Properties props)
Searches for the boolean property with the specified key in the property list. |
static java.util.Properties |
getDefaultMethodProperties(java.lang.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(java.lang.String key)
Searches for the int property with the specified key in the property list. |
static int |
getIntProperty(java.lang.String key,
java.util.Properties props)
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. |
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 |
public static java.lang.String S_KEY_INDENT_AMOUNT
public static java.lang.String S_KEY_CONTENT_HANDLER
public static java.lang.String S_KEY_ENTITIES
public static java.lang.String S_USE_URL_ESCAPING
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 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.public java.lang.Object clone()
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 static boolean getBooleanProperty(java.lang.String key, java.util.Properties props)
false
if the property is not found, or if the value is other
than "yes".
key
- the property key.props
- the list of properties that will be searched.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 static int getIntProperty(java.lang.String key, java.util.Properties props)
false
if the property is not found, or if the value is other
than "yes".
key
- the property key.props
- the list of properties that will be searched.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
root
- non-null reference to the stylesheet root object.public void compose()
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.public boolean isLegalPropertyKey(java.lang.String key)
key
- non-null reference to key name.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |