/**
* Render the the binary value automagically depending on it's value
* and whether we are starting or ending it's range.
*/
public void visit(VDXMLBinaryValue value) {
VDXMLStyleRange range;
// If this value turned something on ...
if (value == VDXMLBinaryValue.TRUE) {
// ... then the start and end values are the normal range
// start and end (DE and FI respectively).
range = styleRange;
// Else if this value turned something off ...
} else if (value == VDXMLBinaryValue.FALSE) {
// ... then start and end values are the inverse of the normal
// range start and end values (FI and DE respectively).
range = styleRange.inverse();
} else {
// Should never happen.
throw new IllegalStateException();
}
renderedValue = range.getAttributeValue();
}