Restriction is done using the general facets, or the following array facets.
JSound supports the following array facets.
$content (singleton array of one string or object) : the name of a Type (Qualified Name in a string) or the type itself (an object) that all members must match.
$minLength (integer) : the minimum length.
$maxLength (integer) : the maximum length.