com.bigdata.counters.render
Class XHTMLRenderer.HTMLValueFormatter
java.lang.Object
com.bigdata.counters.render.ValueFormatter
com.bigdata.counters.render.XHTMLRenderer.HTMLValueFormatter
- Enclosing class:
- XHTMLRenderer
public class XHTMLRenderer.HTMLValueFormatter
- extends ValueFormatter
- Version:
- $Id: XHTMLRenderer.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
model
protected final URLQueryModel model
XHTMLRenderer.HTMLValueFormatter
public XHTMLRenderer.HTMLValueFormatter(URLQueryModel model)
- Parameters:
model -
value
public String value(ICounter counter,
Object val)
- Formats a counter value as a String AND performs any escaping necessary
for inclusion in a CDATA section (we do both operations together so that
we can format
IServiceCounters.LOCAL_HTTPD as a link anchor.
- Specified by:
value in class ValueFormatter
- Parameters:
counter - The counter.
- Returns:
- The formatted value.
writeFullPath
public void writeFullPath(Writer w,
String path)
throws IOException
- A clickable trail of the path from the root.
- Specified by:
writeFullPath in class ValueFormatter
- Throws:
IOException
writePath
public void writePath(Writer w,
String path,
int rootDepth)
throws IOException
- A clickable trail of the path.
- Specified by:
writePath in class ValueFormatter
- Parameters:
rootDepth - The path components will be shown beginning at this depth -
ZERO (0) is the root.
- Throws:
IOException
Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.