private static Element createRangeElement ( Document document , String name , ConfigurableEmitter . Range range ) { Element element = document . createElement ( name ) ; element . setAttribute ( "min" , "" + range . getMin ( ) ) ; element . setAttribute ( "max" , "" + range . getMax ( ) ) ; element . setAttribute ( "enabled" , "" + range . isEnabled ( ) ) ; return element ; }
Create an XML element based on a configured range