private String getEntityName ( ) throws ODataUnmarshallingException { String odataType = odataValues . get ( JsonConstants . TYPE ) ; if ( isNullOrEmpty ( odataType ) ) { TargetType targetType = getTargetType ( ) ; if ( targetType == null ) { throw new ODataUnmarshallingException ( "Could not find entity name" ) ; } return targetType . typeName ( ) ; } else { if ( odataType . startsWith ( "#" ) ) { odataType = odataType . substring ( 1 ) ; } return odataType ; } }
Gets the entity type name .