/** * Recompose the output format object from the included elements. * * @param oprops non-null reference to xsl:output properties representation. */ void recomposeOutput(OutputProperties oprops) throws TransformerException { m_outputProperties.copyFrom(oprops); }
/** * Copy the keys and values from the source to this object. This will * not copy the default values. This is meant to be used by going from * a higher precedence object to a lower precedence object, so that if a * key already exists, this method will not reset it. * * @param src non-null reference to the source properties. */ public void copyFrom(Properties src) { copyFrom(src, true); }
/** * Copy the keys and values from the source to this object. This will * not copy the default values. This is meant to be used by going from * a higher precedence object to a lower precedence object, so that if a * key already exists, this method will not reset it. * * @param src non-null reference to the source properties. */ public void copyFrom(Properties src) { copyFrom(src, true); }
/** * Recompose the output format object from the included elements. * * @param oprops non-null reference to xsl:output properties representation. */ void recomposeOutput(OutputProperties oprops) throws TransformerException { m_outputProperties.copyFrom(oprops); }
/** * Copy the keys and values from the source to this object. This will * not copy the default values. This is meant to be used by going from * a higher precedence object to a lower precedence object, so that if a * key already exists, this method will not reset it. * * @param opsrc non-null reference to an OutputProperties. */ public void copyFrom(OutputProperties opsrc) throws TransformerException { // Bugzilla 6157: recover from xsl:output statements // checkDuplicates(opsrc); copyFrom(opsrc.getProperties()); }
/** * Copy the keys and values from the source to this object. This will * not copy the default values. This is meant to be used by going from * a higher precedence object to a lower precedence object, so that if a * key already exists, this method will not reset it. * * @param opsrc non-null reference to an OutputProperties. */ public void copyFrom(OutputProperties opsrc) throws TransformerException { // Bugzilla 6157: recover from xsl:output statements // checkDuplicates(opsrc); copyFrom(opsrc.getProperties()); }
/** * Reset the default properties based on the method. * * @param method the method value. * @see javax.xml.transform.OutputKeys */ public void setMethodDefaults(String method) { String defaultMethod = m_properties.getProperty(OutputKeys.METHOD); if((null == defaultMethod) || !defaultMethod.equals(method) // bjm - add the next condition as a hack // but it is because both output_xml.properties and // output_unknown.properties have the same method=xml // for their default. Otherwise we end up with // a ToUnknownStream wraping a ToXMLStream even // when the users says method="xml" // || defaultMethod.equals("xml") ) { Properties savedProps = m_properties; Properties newDefaults = OutputPropertiesFactory.getDefaultMethodProperties(method); m_properties = new Properties(newDefaults); copyFrom(savedProps, false); } }
/** * Reset the default properties based on the method. * * @param method the method value. * @see javax.xml.transform.OutputKeys */ public void setMethodDefaults(String method) { String defaultMethod = m_properties.getProperty(OutputKeys.METHOD); if((null == defaultMethod) || !defaultMethod.equals(method) // bjm - add the next condition as a hack // but it is because both output_xml.properties and // output_unknown.properties have the same method=xml // for their default. Otherwise we end up with // a ToUnknownStream wraping a ToXMLStream even // when the users says method="xml" // || defaultMethod.equals("xml") ) { Properties savedProps = m_properties; Properties newDefaults = OutputPropertiesFactory.getDefaultMethodProperties(method); m_properties = new Properties(newDefaults); copyFrom(savedProps, false); } }
m_outputFormat = new OutputProperties(); m_outputFormat.copyFrom(oformat);
m_outputFormat = new OutputProperties(); m_outputFormat.copyFrom(oformat);
htmlOutputProperties.copyFrom(prevProperties, true); Properties htmlProperties = htmlOutputProperties.getProperties();
htmlOutputProperties.copyFrom(prevProperties, true); Properties htmlProperties = htmlOutputProperties.getProperties();
htmlOutputProperties.copyFrom(prevProperties, true); Properties htmlProperties = htmlOutputProperties.getProperties();
htmlOutputProperties.copyFrom(prevProperties, true); Properties htmlProperties = htmlOutputProperties.getProperties();
htmlOutputProperties.copyFrom(prevProperties, true); Properties htmlProperties = htmlOutputProperties.getProperties();
htmlOutputProperties.copyFrom(prevProperties, true); Properties htmlProperties = htmlOutputProperties.getProperties();
/** * Copy the keys and values from the source to this object. This will * not copy the default values. This is meant to be used by going from * a higher precedence object to a lower precedence object, so that if a * key already exists, this method will not reset it. * * @param src non-null reference to the source properties. */ public void copyFrom(Properties src) { copyFrom(src, true); }
/** * Recompose the output format object from the included elements. * * @param oprops non-null reference to xsl:output properties representation. */ void recomposeOutput(OutputProperties oprops) throws TransformerException { m_outputProperties.copyFrom(oprops); }