1 /* 2 * $Id: DataSetUtils.java,v 1.1 2005/02/23 17:51:30 rbair Exp $ 3 * 4 * Copyright 2005 Sun Microsystems, Inc., 4150 Network Circle, 5 * Santa Clara, California 95054, U.S.A. All rights reserved. 6 */ 7 8 package org.jdesktop.dataset; 9 10 /** 11 * 12 * @author rbair 13 */ 14 class DataSetUtils { 15 16 /** Creates a new instance of DataSetUtils */ 17 private DataSetUtils() { 18 } 19 20 /** 21 * Checks to see if the given name is valid. If not, then return false.<br> 22 * A valid name is one that follows the Java naming rules for 23 * indentifiers, <b>except</b> that Java reserved words can 24 * be used, and the name may begin with a number. 25 */ 26 static boolean isValidName(String name) { 27 return !name.matches(".*[\\s]"); 28 } 29 } 30