/protocols/ss7/map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/primitives/AlertingLevel.java
http://mobicents.googlecode.com/ · Java · 53 lines · 22 code · 6 blank · 25 comment · 1 complexity · 45a59cca2d0a180835978972d1c51ce4 MD5 · raw file
- /*
- * JBoss, Home of Professional Open Source
- * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual
- * contributors as indicated by the @authors tag. All rights reserved.
- * See the copyright.txt in the distribution for a full listing
- * of individual contributors.
- *
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License, v. 2.0.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 along with this distribution; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- */
- package org.mobicents.protocols.ss7.map.api.primitives;
- /**
- * @author amit bhayani
- *
- */
- public enum AlertingLevel {
- Level0((byte)0), Level1((byte)1), Level2((byte)2);
- private final byte level;
- private AlertingLevel(byte level) {
- this.level = level;
- }
- public byte getLevel() {
- return this.level;
- }
- public static AlertingLevel getInstance(byte data) {
- switch (data) {
- case 0:
- return Level0;
- case 1:
- return Level1;
- case 2:
- return Level2;
- }
- return null;
- }
- }