Class MonthNumberDayYearStringParser

Description

This StringParser can handle dates that contain an integer month followed by

an integer day then an integer year. Delimiter choice is arbitrary, but delimiters are required. Examples:

  • 4/5/82
  • 04/05/1982
  • 4-5-82

Located in /harmoni/core/Primitives/Chronology/StringParser/MonthNumberDayYearStringParser.class.php (line 38)

SObject
   |
   --StringParser
      |
      --RegexStringParser
         |
         --TwoDigitYearStringParser
            |
            --MonthNumberDayYearStringParser
Method Summary
string getRegex ()
void parse ()
Variables
Methods
getRegex (line 53)

Return the regular expression used by this parser

  • since: 5/24/05
  • access: public
string getRegex ()

Redefinition of:
RegexStringParser::getRegex()
Return the regular expression used by this parser
parse (line 66)

Parse the input string and set our elements based on the contents of the input string. Elements not found in the string will be null.

  • since: 5/23/05
  • access: protected
void parse ()

Redefinition of:
StringParser::parse()
Parse the input string and set our elements based on the contents of the input string. Elements not found in the string will be null.

Inherited Methods

Inherited From TwoDigitYearStringParser

TwoDigitYearStringParser::setYear()

Inherited From RegexStringParser

RegexStringParser::canHandle()
RegexStringParser::getRegex()

Inherited From StringParser

StringParser::StringParser()
StringParser::canHandle()
StringParser::day()
StringParser::getParserFor()
StringParser::hour()
StringParser::minute()
StringParser::month()
StringParser::offsetHour()
StringParser::offsetMinute()
StringParser::offsetSecond()
StringParser::parse()
StringParser::second()
StringParser::setDay()
StringParser::setHour()
StringParser::setMinute()
StringParser::setMonth()
StringParser::setOffsetHour()
StringParser::setOffsetMinute()
StringParser::setOffsetSecond()
StringParser::setSecond()
StringParser::setYear()
StringParser::year()

Inherited From SObject

SObject::asA()
SObject::asString()
SObject::copy()
SObject::copySameFrom()
SObject::copyTwoLevel()
SObject::deepCopy()
SObject::isEqual()
SObject::isEqualTo()
SObject::isNotEqualTo()
SObject::isNotReferenceTo()
SObject::isReferenceTo()
SObject::newFrom()
SObject::postCopy()
SObject::printableString()
SObject::shallowCopy()
SObject::_deepCopyArray()

Documentation generated on Wed, 19 Sep 2007 10:25:08 -0400 by phpDocumentor 1.3.0RC3