org.oclc.da.gdfr.registryprototype.validation
Class RefValidator

java.lang.Object
  extended by org.oclc.da.gdfr.registryprototype.validation.RefValidator

public class RefValidator
extends java.lang.Object


Constructor Summary
RefValidator()
           
 
Method Summary
static boolean isValid(Ref ref)
          Validate the given ref.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefValidator

public RefValidator()
Method Detail

isValid

public static final boolean isValid(Ref ref)
Validate the given ref. Refs are only allowed to have alphanumeric characters, spaces, dashes and underscores in their names. Empty or null values are not allowed. The number of keys must match the number of values. The object values can only be of type String or Ref.



Copyright © 2008 OCLC Online Computer Library Center, Inc.. All Rights Reserved.