Hubiquitus Android  0.3
Android client for hubiquitus protocol
HAckValue.java
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) Novedia Group 2012.
00003  *
00004  *     This file is part of Hubiquitus.
00005  *
00006  *     Hubiquitus is free software: you can redistribute it and/or modify
00007  *     it under the terms of the GNU General Public License as published by
00008  *     the Free Software Foundation, either version 3 of the License, or
00009  *     (at your option) any later version.
00010  *
00011  *     Hubiquitus is distributed in the hope that it will be useful,
00012  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *     GNU General Public License for more details.
00015  *
00016  *     You should have received a copy of the GNU General Public License
00017  *     along with Hubiquitus.  If not, see <http://www.gnu.org/licenses/>.
00018  */
00019 
00020 
00021 package org.hubiquitus.hapi.hStructures;
00022 
00029 public enum HAckValue {
00030          UNKNOWN(""),
00031          RECV("recv"),
00032          READ("read");
00033          
00034          private String value;
00035          
00036          private HAckValue(String value) {
00037                   this.value = value;
00038          }
00039          
00043          public String value() {
00044                   return value;
00045          }
00046          
00052          public static HAckValue constant(String value) {
00053                   HAckValue [] _values = HAckValue.values();
00054                   HAckValue _value = HAckValue.UNKNOWN;
00055                   for (int i = 0; i < _values.length; i++) {
00056                            if (_values[i].value.equals(value)) {
00057                                     _value = _values[i];
00058                            }
00059                   }
00060                   return _value;
00061          }
00062 }
 All Classes Namespaces Files Functions Variables