original_string: private function _validateIndicator($indicator)
      {
          if ($indicator == null) {
              $indicator = ' ';
          } elseif (strlen($indicator) > 1) {
              $errorMessage = File_MARC_Exception::formatError(File_MARC_Exception::$messages[File_MARC_Exception::ERROR_INVALID_INDICATOR], array("tag" => $this->getTag(), "indicator" => $indicator));
              throw new File_MARC_Exception($errorMessage, File_MARC_Exception::ERROR_INVALID_INDICATOR);
          }
          return $indicator;
      }
code: private function _validateIndicator($indicator)
      {
          if ($indicator == null) {
              $indicator = ' ';
          } elseif (strlen($indicator) > 1) {
              $errorMessage = File_MARC_Exception::formatError(File_MARC_Exception::$messages[File_MARC_Exception::ERROR_INVALID_INDICATOR], array("tag" => $this->getTag(), "indicator" => $indicator));
              throw new File_MARC_Exception($errorMessage, File_MARC_Exception::ERROR_INVALID_INDICATOR);
          }
          return $indicator;
      }
code_tokens: private function _validateIndicator ( $ indicator ) { if ( $ indicator == null ) { $ indicator = ' ' ; } elseif ( strlen ( $ indicator ) > 1 ) { $ errorMessage = File_MARC_Exception :: formatError ( File_MARC_Exception :: $ messages [ File_MARC_Exception :: ERROR_INVALID_INDICATOR ] , array ( "tag" => $ this -> getTag ( ) , "indicator" => $ indicator ) ) ; throw new File_MARC_Exception ( $ errorMessage , File_MARC_Exception :: ERROR_INVALID_INDICATOR ) ; } return $ indicator ; }
docstring: Validates an indicator field
  
  Validates the value passed in for an indicator. This routine ensures
  that an indicator is a single character. If the indicator value is null,
  then this method returns a single character.
  
  If the indicator value contains more than a single character, this
  throws an exception.
  
  @param string $indicator Value of the indicator to be validated
  
  @return string Returns the indicator, or space if the indicator was null
docstring_tokens: Validates an indicator field