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;
    }
protected Integer getExpressionInteger ( MediaExpression e ) { if ( e . size ( ) == 1 ) { 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.
@param e The media query expression specifying an integer.
@return The length converted to pixels or {@code null} when the value cannot be converted to integer.