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