protected Integer getExpressionInteger ( MediaExpression e ) { if ( e . size ( ) == 1 ) //the length requires exactly one value { Term < ? > term = e . get ( 0 ) ; if ( term instanceof TermInteger ) return ( ( TermInteger ) term ) . getIntValue ( ) ; else return null ; } else return null ; }
Obtains the integer specified by the given media query expression .