public double getValue ( ) { // Get this field's value Boolean bField = ( Boolean ) this . getData ( ) ; // Get the physical data if ( bField == null ) return 0 ; boolean bValue = bField . booleanValue ( ) ; if ( bValue == false ) return 0 ; else return 1 ; }
Get the Value of this field as a double . For a boolean return 0 for false 1 for true .