1 7 8 package javax.management; 9 10 11 18 class BooleanValueExp extends QueryEval implements ValueExp { 19 20 21 private static final long serialVersionUID = 7754922052666594581L; 22 23 26 private boolean val = false; 27 28 29 30 BooleanValueExp(boolean val) { 31 this.val = val; 32 } 33 34 35 BooleanValueExp(Boolean val) { 36 this.val = val.booleanValue(); 37 } 38 39 40 41 public Boolean getValue() { 42 return new Boolean (val); 43 } 44 45 48 public String toString() { 49 return String.valueOf(val); 50 } 51 52 64 public ValueExp apply(ObjectName name) throws BadStringOperationException , BadBinaryOpValueExpException , 65 BadAttributeValueExpException , InvalidApplicationException { 66 return this; 67 } 68 69 } 70 | Popular Tags |