question: public final String toXML ( ) { StringBuffer str = new StringBuffer ( ) ; str . append ( '<' ) ; str . append ( XML_ROOT_ELEMENT ) ; str . append ( ' ' ) ; str . append ( XML_ATTRIBUTE_ID ) ; str . append ( "=\"" ) ; str . append ( id ) ; str . append ( "\" " ) ; str . append ( XML_ATTRIBUTE_NAME ) ; str . append ( "=\"" ) ; str . append ( name ) ; str . append ( "\">\n" ) ; if ( value != null ) { str . append ( "<value data-type=\"" ) ; str . append ( getDataType ( ) ) ; str . append ( "\">" ) ; str . append ( value . toString ( ) ) ; str . append ( "</value>\n" ) ; } if ( valueDescription != null ) { str . append ( "<value-description><![CDATA[" ) ; str . append ( valueDescription ) ; str . append ( "]]></value-description>\n" ) ; } str . append ( "<quality-code>" ) ; str . append ( qualityCode . toString ( ) ) ; str . append ( "</quality-code>\n" ) ; if ( qualityDescription != null ) { str . append ( "<quality-description>" ) ; str . append ( qualityDescription ) ; str . append ( "</quality-description>\n" ) ; } str . append ( "<dynamic-filtered>" ) ; str . append ( dynamicFiltered ) ; str . append ( "</dynamic-filtered>" ) ; str . append ( "<filter-applied>" ) ; str . append ( filterApplied ) ; str . append ( "</filter-applied>" ) ; str . append ( "<timestamp>" ) ; str . append ( timestamp . getTime ( ) ) ; str . append ( "</timestamp>\n" ) ; str . append ( "</" ) ; str . append ( XML_ROOT_ELEMENT ) ; str . append ( ">\n" ) ; return str . toString ( ) ; }
target:  Encodes the FilteredDataTag value as XML. This encoding is used for sending the data tag value to the Statistics module via JMS.