public boolean isValid ( ) { if ( parsedHost != null ) { return true ; } if ( validationException != null ) { return false ; } try { validate ( ) ; return true ; } catch ( HostNameException e ) { return false ; } }
Returns whether this represents a valid host name or address format .