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.message; 16 17 import com.codestreet.selector.parser.IValueProvider; 18 import com.codestreet.selector.parser.Identifier; 19 20 /*** 21 * @author pcoates 22 * 23 * To change the template for this generated type comment go to 24 * Window>Preferences>Java>Code Generation>Code and Comments 25 */ 26 public abstract class AbstractValueProvider implements IValueProvider 27 { 28 29 public abstract Object getValue(final Identifier identifier, 30 final Object correlation); 31 32 /*** 33 * Return the same string minus a leading dot. 34 * 35 * @param fldName 36 * Any legal name string 37 * @return The input, minus the leading dot, if any. 38 */ 39 public static String loseLeadingDot(String fldName) 40 { 41 return (fldName.indexOf('.') == 0) ? fldName.substring(1) : fldName; 42 } 43 44 }

This page was automatically generated by Maven