Hubiquitus Android  0.3
Android client for hubiquitus protocol
HMessagePriority.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 package org.hubiquitus.hapi.hStructures;
00020 
00026 public enum HMessagePriority {
00027          TRACE(0),
00028          INFO(1),
00029          WARNING(2),
00030          ALERT(3),
00031          CRITICAL(4),
00032          PANIC(5);
00033          
00034          private int value;
00035          
00036          private HMessagePriority(int value) {
00037                   this.value = value;
00038          }
00039          
00043          public int value() {
00044                   return value;
00045          }
00046          
00052          public static HMessagePriority constant(int value) {
00053                   HMessagePriority [] _values = HMessagePriority.values();
00054                   return _values[value];
00055          }
00056 }
 All Classes Namespaces Files Functions Variables