tds/src/main/java/thredds/util/StringValidateEncodeUtils.java
public static boolean validIdString(String id) {
    if (id == null) return false;
    Matcher m = INVALID_CHARACTERS_FOR_ID_STRING_PATTERN.matcher(id);
    return !(m.find() || !validSingleLineString(id));
  }
public static boolean validIdString(String id) {
    if (id == null) return false;
    Matcher m = INVALID_CHARACTERS_FOR_ID_STRING_PATTERN.matcher(id);
    return !(m.find() || !validSingleLineString(id));
  }
public static boolean validIdString ( String id ) { if ( id == null ) return false ; Matcher m = INVALID_CHARACTERS_FOR_ID_STRING_PATTERN . matcher ( id ) ; return ! ( m . find ( ) || ! validSingleLineString ( id ) ) ; }
Return true if the given String is a valid ID string.
<p>
<p>
A String is considered a valid ID string if:
<ul>
<li>it contains no space separator characters (Unicode general
category Zs - Separator, Space); and</li>
<li>true is returned when the string is passed to
validSingleLineString(String).</li>
</ul>

@param id the String to validate
@return true if the given String is a valid ID string.
@see #validSingleLineString(String)
Return true if the given String is a valid ID string . <p > <p > A String is considered a valid ID string if : <ul > <li > it contains no space separator characters ( Unicode general category Zs - Separator Space ) ; and< / li > <li > true is returned when the string is passed to validSingleLineString ( String ) . < / li > < / ul >