private void createExtendedElement ( StringBuilder sb , RepositoryLogRecord record ) { sb . append ( lineSeparator ) . append ( INDENT [ 0 ] ) . append ( "<extendedDataElements name=\"CommonBaseEventLogRecord:level\" type=\"noValue\">" ) ; sb . append ( lineSeparator ) . append ( INDENT [ 1 ] ) . append ( "<children name=\"CommonBaseEventLogRecord:name\" type=\"string\">" ) ; sb . append ( lineSeparator ) . append ( INDENT [ 2 ] ) . append ( "<values>" ) . append ( record . getLevel ( ) . getName ( ) ) . append ( "</values>" ) ; sb . append ( lineSeparator ) . append ( INDENT [ 1 ] ) . append ( "</children>" ) ; sb . append ( lineSeparator ) . append ( INDENT [ 1 ] ) . append ( "<children name=\"CommonBaseEventLogRecord:value\" type=\"int\">" ) ; sb . append ( lineSeparator ) . append ( INDENT [ 2 ] ) . append ( "<values>" ) . append ( record . getLevel ( ) . intValue ( ) ) . append ( "</values>" ) ; sb . append ( lineSeparator ) . append ( INDENT [ 1 ] ) . append ( "</children>" ) ; sb . append ( lineSeparator ) . append ( INDENT [ 0 ] ) . append ( "</extendedDataElements>" ) ; }
Appends the CBE Extended Data Element of a record to a String buffer