Class AjxFormat

Object
   |
   +--AjxFormat
Direct Known Subclasses:
AjxMessageFormat, AjxNumberFormat, AjxDateFormat, AjxChoiceFormat

class AjxFormat

Defined in AjxText.js


Nested Class Summary
<static class> AjxFormat.FormatException
<static class> AjxFormat.FormattingException
<static class> AjxFormat.ParsingException
<static class> AjxFormat.Segment
<static class> AjxFormat.TextSegment
 
Constructor Summary
AjxFormat (pattern)
            Base class for all formats.
 
Method Summary
 void _createParseObject(s)
           Creates the object that is initialized by parsing

Note: This must be implemented by sub-classes.

 Object clone()
           Returns a copy of this format.
 Object format(object)
           This method does not need to be overridden unless the subclass doesn't use format segments and takes complete responsibility for formatting.
 Object getSegments()
           Returns an array of segments that comprise this format.
 Object parse(s)
           Parses the given string according to this format's pattern and returns an object.
 Object toPattern()
           Returns a string pattern for this format.
 Object toString()
           Returns string representation of this object.
<static> Object _zeroPad(s, length, zeroChar, rightSide)
          

Constructor Detail

AjxFormat

AjxFormat(pattern)

Method Detail

_createParseObject

void _createParseObject(s)

clone

Object clone()

format

Object format(object)

getSegments

Object getSegments()

parse

Object parse(s)

toPattern

Object toPattern()

toString

Object toString()

_zeroPad

<static> Object _zeroPad(s, length, zeroChar, rightSide)


Documentation generated by JSDoc on Thu Apr 27 13:58:41 2006