com.metamatrix.common.util
Class VDBNameValidator

java.lang.Object
  extended by com.metamatrix.common.util.VDBNameValidator

public class VDBNameValidator
extends java.lang.Object

Since:
5.0 This class contains static methods used to validate VDB and Source names. It is not intented to be a fancy string parser/checker, it is only intented for VDB name validation with the following rules. Rules: Names must contain only alphanumeric characters and _ (underscores) Names must begin with a alpha character Along with the above rules there are reserved words that cannot be used for VDB names: System Admin Help Along with the above rules there are reserved words that cannot be used for Source names: System

Constructor Summary
VDBNameValidator()
           
 
Method Summary
static boolean isSourceNameReserved(java.lang.String sourceName)
           
static boolean isSourceValid(java.lang.String sourceName)
           
static boolean isValid(java.lang.String vdbName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VDBNameValidator

public VDBNameValidator()
Method Detail

isValid

public static boolean isValid(java.lang.String vdbName)

isSourceValid

public static boolean isSourceValid(java.lang.String sourceName)

isSourceNameReserved

public static boolean isSourceNameReserved(java.lang.String sourceName)


Copyright © 2009. All Rights Reserved.