public < T extends CSSProperty > T genericPropertyRaw ( Class < T > type , Set < T > intersection , TermIdent term ) { try { String name = term . getValue ( ) . replace ( "-" , "_" ) . toUpperCase ( ) ; T property = CSSProperty . Translator . valueOf ( type , name ) ; if ( intersection != null && intersection . contains ( property ) ) return property ; return property ; } catch ( Exception e ) { return null ; } }
Converts TermIdent into CSSProperty using intersection set . CSSProperty . Translator is used .