View Javadoc
1 /*** 2 * Copyright 2003, 2004, 2005. CodeStreet LLC. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 7 * 8 * Unless required by applicable law or agreed to in writing, software 9 * distributed under the License is distributed on an "AS IS" BASIS, 10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 * See the License for the specific language governing permissions and 12 * limitations under the License. 13 */ 14 15 package com.codestreet.selector.parser; 16 17 /*** 18 * Class to represent typesafe enumeration of evaluating a selector or 19 * expression. The enumerations are <tt>TRUE</tt>, <tt>FALSe</tt>. and 20 * <tt>UNKNOWN</tt>. 21 * 22 * @author Jawaid Hakim. 23 */ 24 public final class Result 25 { 26 /*** 27 * Ctor. 28 * 29 * @param result 30 * Result. 31 */ 32 private Result(final String result) 33 { 34 result_ = result; 35 } 36 37 /*** 38 * Override. 39 * 40 * @return Value. 41 */ 42 public String toString() 43 { 44 return result_; 45 } 46 47 private final String result_; 48 49 /*** 50 * TRUE. 51 */ 52 public static final Result RESULT_TRUE = new Result("true"); 53 54 /*** 55 * FALSE. 56 */ 57 public static final Result RESULT_FALSE = new Result("false"); 58 59 /*** 60 * UNKNOWN. 61 */ 62 public static final Result RESULT_UNKNOWN = new Result("unknown"); 63 }

This page was automatically generated by Maven