public static List < ValidationMessage > validateScope ( TagData data , List < ValidationMessage > messages ) { Object o = data . getAttribute ( "scope" ) ; if ( o != null && o != TagData . REQUEST_TIME_VALUE ) { String scope = Coercion . toString ( o ) ; try { Scope . getScopeId ( scope ) ; // Value is OK } catch ( JspTagException err ) { messages = MinimalList . add ( messages , new ValidationMessage ( data . getId ( ) , err . getMessage ( ) ) ) ; } } return messages ; }
Checks that a scope is a valid .