public class OutputProperties extends ElemTemplateElement implements Cloneable
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.
m_docOrderNumber, m_hasVariableDecl, m_parentNode
actualEncoding, fDocumentURI
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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(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.
|
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)
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(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.
|
accept, appendChild, appendChild, callChildVisitors, callChildVisitors, callVisitors, canAcceptVariables, canStripWhiteSpace, compareTo, containsExcludeResultPrefix, endCompose, error, error, execute, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getBaseIdentifier, getChildNodes, getColumnNumber, getDeclaredPrefixes, getDOMBackPointer, getEndColumnNumber, getEndLineNumber, getFirstChild, getFirstChildElem, getLastChild, getLastChildElem, getLength, getLineNumber, getLocalName, getNamespaceForPrefix, getNamespaceForPrefix, getNextSibling, getNextSiblingElem, getNodeName, getNodeType, getOwnerDocument, getOwnerXSLTemplate, getParentElem, getParentNode, getParentNodeElem, getPreviousSibling, getPreviousSiblingElem, getPublicId, getStylesheet, getStylesheetComposed, getStylesheetRoot, getSystemId, getTagName, getUid, getXmlSpace, getXSLToken, handlesNullPrefixes, hasChildNodes, hasTextLitOnly, hasVariableDecl, insertBefore, isCompiledTemplate, item, removeChild, replaceChild, replaceChild, resolvePrefixTables, runtimeInit, setDOMBackPointer, setEndLocaterInfo, setLocaterInfo, setParentElem, setPrefixes, setPrefixes, setUid, setXmlSpace, shouldStripWhiteSpace
adoptNode, appendData, cloneNode, compareDocumentPosition, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, getActualEncoding, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getFeature, getImplementation, getInputEncoding, getNamespaceURI, getNodeValue, getOwnerElement, getPrefix, getSchemaTypeInfo, getSpecified, getStrictErrorChecking, getTextContent, getUserData, getWholeText, getXmlEncoding, getXmlStandalone, getXmlVersion, hasAttribute, hasAttributeNS, hasAttributes, importNode, insertData, isDefaultNamespace, isEqualNode, isId, isSameNode, isSupported, isWhitespaceInElementContent, lookupNamespaceURI, lookupPrefix, normalize, normalizeDocument, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, renameNode, replaceData, replaceWholeText, setActualEncoding, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setData, setDocumentURI, setIdAttribute, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInputEncoding, setNodeValue, setPrefix, setStrictErrorChecking, setTextContent, setUserData, setValue, setXmlEncoding, setXmlStandalone, setXmlVersion, splitText, substringData
public OutputProperties()
public OutputProperties(Properties defaults)
defaults
- the defaults.public OutputProperties(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 Object clone()
public void setProperty(QName key, String value)
key
- the key to be placed into the property list.value
- the value corresponding to key.OutputKeys
public void setProperty(String key, String value)
key
- the key to be placed into the property list.value
- the value corresponding to key.OutputKeys
public String getProperty(QName key)
null
if the property is not found.key
- the property key.public String getProperty(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(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(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(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(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(String method)
method
- the method value.OutputKeys
public void setQNameProperty(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(String key)
null
if the property is not found.key
- the property key.public static QName getQNameProperty(String key, 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, 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(String key, Vector v)
key
- the key to be placed into the property list.v
- non-null list of QNames corresponding to key.OutputKeys
public Vector getQNameProperties(QName key)
null
if the property is not found.key
- the property key.public Vector getQNameProperties(String key)
null
if the property is not found.key
- the property key.public static Vector getQNameProperties(String key, 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 TransformerException
recompose
in class ElemTemplateElement
root
- non-null reference to the stylesheet root object.TransformerException
public void compose(StylesheetRoot sroot) throws TransformerException
compose
in class ElemTemplateElement
TransformerException
public Properties getProperties()
public void copyFrom(Properties src)
src
- non-null reference to the source properties.public void copyFrom(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 TransformerException
opsrc
- non-null reference to an OutputProperties.TransformerException
public static boolean isLegalPropertyKey(String key)
key
- non-null reference to key name.public static Properties getDefaultMethodProperties(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.Copyright © 2016 JBoss by Red Hat. All rights reserved.