public static PrimitiveType checkIsPrimitiveType ( Type type ) { if ( ! isPrimitiveType ( type ) ) { throw new ODataSystemException ( "A primitive type is required, but '" + type . getFullyQualifiedName ( ) + "' is not a primitive type: " + type . getMetaType ( ) ) ; } return ( PrimitiveType ) type ; }
Checks if the specified OData type is a primitive type and throws an exception if it is not .