SEBoolean.java
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008, AIST, the University of Tokyo and General Robotix Inc.
3  * All rights reserved. This program is made available under the terms of the
4  * Eclipse Public License v1.0 which accompanies this distribution, and is
5  * available at http://www.eclipse.org/legal/epl-v10.html
6  * Contributors:
7  * General Robotix Inc.
8  * National Institute of Advanced Industrial Science and Technology (AIST)
9  */
17 package com.generalrobotix.ui.view.graph;
18 
19 public class SEBoolean extends SEEnumeration {
20  Boolean value_;
21  static String[] __s = {"false", "true"};
22 
23 
24  public SEBoolean(String s) {
25  super(__s, 0);
26  fromString(s);
27  };
28 
29  public SEBoolean() {
30  super(__s, 0);
31  value_ = new Boolean(false);
32  };
33 
39  public SEBoolean(boolean value) {
40  super(__s, _getSelect(value));
41  value_ = new Boolean(value);
42  };
43 
44 
45  private static int _getSelect(boolean b) {
46  return b ? 1 : 0;
47  }
48 
54  public String toString() {
55  return value_.toString();
56  }
57 
64  public Object fromString(String str) {
65  value_ = Boolean.valueOf(str);
66  selection_ = _getSelect(value_.booleanValue());
67  return (Object)value_;
68  }
69 
75  public void setValue(Object value) {
76  value_ = (Boolean)value;
77  selection_ = _getSelect(value_.booleanValue());
78  }
79 
85  public void setValue(String str) {
86  value_ = Boolean.valueOf(str);
87  selection_ = _getSelect(value_.booleanValue());
88  }
89 
95  public Object getValue() {
96  return (Object)value_;
97  }
98 
104  public boolean booleanValue() {
105  return value_.booleanValue();
106  }
107 };
png_voidp int value
Definition: png.h:2113
long b
Definition: jpegint.h:371


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:05