Status.java revision 1150:6e78f902f477
142680Smsmith/* 242680Smsmith * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 342680Smsmith * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 442680Smsmith * 542680Smsmith * This code is free software; you can redistribute it and/or modify it 642680Smsmith * under the terms of the GNU General Public License version 2 only, as 742680Smsmith * published by the Free Software Foundation. Oracle designates this 842680Smsmith * particular file as subject to the "Classpath" exception as provided 942680Smsmith * by Oracle in the LICENSE file that accompanied this code. 1042680Smsmith * 1142680Smsmith * This code is distributed in the hope that it will be useful, but WITHOUT 1242680Smsmith * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1342680Smsmith * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1442680Smsmith * version 2 for more details (a copy is included in the LICENSE file that 1542680Smsmith * accompanied this code). 1642680Smsmith * 1742680Smsmith * You should have received a copy of the GNU General Public License version 1842680Smsmith * 2 along with this work; if not, write to the Free Software Foundation, 1942680Smsmith * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2042680Smsmith * 2142680Smsmith * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2242680Smsmith * or visit www.oracle.com if you need additional information or have any 2342680Smsmith * questions. 2442680Smsmith */ 2542680Smsmith 2642680Smsmithpackage com.sun.org.apache.xerces.internal.util; 2742680Smsmith 2842680Smsmithpublic enum Status { 2942680Smsmith SET((short)-3, false), 3042680Smsmith UNKNOWN((short)-2, false), 3142680Smsmith RECOGNIZED((short)-1, false), 3242680Smsmith NOT_SUPPORTED((short)0, true), 3352757Sphk NOT_RECOGNIZED((short)1, true), 3452757Sphk NOT_ALLOWED((short)2, true), 3542680Smsmith ; 3642680Smsmith 37116182Sobrien private final short type; 38116182Sobrien 39116182Sobrien private boolean isExceptional; 4042680Smsmith 4142680Smsmith Status(short type, boolean isExceptional) { 4252843Sphk this.type = type; 43114216Skan this.isExceptional = isExceptional; 4442680Smsmith } 4542680Smsmith 4642680Smsmith public short getType() { 4742680Smsmith return type; 4842680Smsmith } 4942680Smsmith 5042680Smsmith public boolean isExceptional() { 5142680Smsmith return isExceptional; 5242680Smsmith } 5342680Smsmith} 5442680Smsmith