MDACC
Biostatistics

org.mdanderson.biostat.util
Class PathnameValidator

java.lang.Object
  extended byorg.mdanderson.biostat.util.ValidationAdapter
      extended byorg.mdanderson.biostat.util.PathnameValidator
All Implemented Interfaces:
DocumentListener, EventListener, StatusSource, Validator

public class PathnameValidator
extends ValidationAdapter

PathnameValidator - Implements pathname validation.


Constructor Summary
PathnameValidator()
           
 
Method Summary
static boolean accepts(Object value)
          Convenience function that determines the validity of pathname data without the caller having to have an instance of this class available.
 boolean isValid(Object value)
          Determines the validity of pathname data.
 
Methods inherited from class org.mdanderson.biostat.util.ValidationAdapter
addStatusListener, changedUpdate, insertUpdate, removeStatusListener, removeUpdate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathnameValidator

public PathnameValidator()
Method Detail

isValid

public boolean isValid(Object value)
Determines the validity of pathname data. Converts the value to an abstract pathname and ensures it exists.

Specified by:
isValid in interface Validator
Specified by:
isValid in class ValidationAdapter
Parameters:
value - object with data to be checked
Returns:
true if data is valid; otherwise, false

accepts

public static boolean accepts(Object value)
Convenience function that determines the validity of pathname data without the caller having to have an instance of this class available.

Parameters:
value - data to be checked
Returns:
true if data is valid; otherwise, false
See Also:
isValid(java.lang.Object)

MDACC
Biostatistics

Copyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.