0 Replies Latest reply on Aug 29, 2011 2:21 PM by mattg411

    Help with usage of PHP AMF DateTime valueObjects class

    mattg411

      I was wondering if anyone could point me to an example of how to use the DateTime class that is generated by the Data->Connect to PHP service tool.

       

      I have a MySQL table that contains a date:

       

      Table attendance
      ================
      rowID            int(11) PK
      memberID         int(11)
      season           int(11)
      practiceDate     date
      status           varchar(45)
      comments         varchar(255)

       

      PHP Service code using ZendAMF:

      class AttendanceModel
      {
      ...

          /**
           * @var DateTime
           */
             public $practiceDate;
      ...

      }

       

      The service makes a new DateTime class from the MySQL result and populates the class:

              $model->practiceDate = new DateTime($row->practiceDate);

       

      The result is returned and the Data tools in FlashBuilder 4.5 generate a valueObject with an instance of DateTime.as which is also generated by the tool.  Does anyone have an example of how to convert between the generated DateTime class and the ActionScript Date class?

       

      The code for the DateTime class is below.

       

      Thanks,

      Matt

       

       

      /**
      * This is a generated class and is not intended for modification.  To customize behavior
      * of this value object you may modify the generated sub-class of this class - DateTime.as.
      */

       

      package valueObjects
      {
      import com.adobe.fiber.services.IFiberManagingService;
      import com.adobe.fiber.util.FiberUtils;
      import com.adobe.fiber.valueobjects.IValueObject;
      import flash.events.Event;
      import flash.events.EventDispatcher;
      import mx.binding.utils.ChangeWatcher;
      import mx.collections.ArrayCollection;
      import mx.events.PropertyChangeEvent;
      import mx.validators.ValidationResult;

       

      import flash.net.registerClassAlias;
      import flash.net.getClassByAlias;
      import com.adobe.fiber.core.model_internal;
      import com.adobe.fiber.valueobjects.IPropertyIterator;
      import com.adobe.fiber.valueobjects.AvailablePropertyIterator;

       

      use namespace model_internal;

       

      [ExcludeClass]
      public class _Super_DateTime extends flash.events.EventDispatcher implements com.adobe.fiber.valueobjects.IValueObject
      {
          model_internal static function initRemoteClassAliasSingle(cz:Class) : void
          {
              try
              {
                  if (flash.net.getClassByAlias("DateTime") == null)
                  {
                      flash.net.registerClassAlias("DateTime", cz);
                  }
              }
              catch (e:Error)
              {
                  flash.net.registerClassAlias("DateTime", cz);
              }
          }

       

          model_internal static function initRemoteClassAliasAllRelated() : void
          {
          }

       

          model_internal var _dminternal_model : _DateTimeEntityMetadata;
          model_internal var _changedObjects:mx.collections.ArrayCollection = new ArrayCollection();

       

          public function getChangedObjects() : Array
          {
              _changedObjects.addItemAt(this,0);
              return _changedObjects.source;
          }

       

          public function clearChangedObjects() : void
          {
              _changedObjects.removeAll();
          }

       

          /**
           * properties
           */
          private var _internal_ATOM : Object;
          private var _internal_COOKIE : Object;
          private var _internal_ISO8601 : Object;
          private var _internal_RFC822 : Object;
          private var _internal_RFC850 : Object;
          private var _internal_RFC1036 : Object;
          private var _internal_RFC1123 : Object;
          private var _internal_RFC2822 : Object;
          private var _internal_RFC3339 : Object;
          private var _internal_RSS : Object;
          private var _internal_W3C : Object;

       

          private static var emptyArray:Array = new Array();

       


          /**
           * derived property cache initialization
           */
          model_internal var _cacheInitialized_isValid:Boolean = false;

       

          model_internal var _changeWatcherArray:Array = new Array();

       

          public function _Super_DateTime()
          {
              _model = new _DateTimeEntityMetadata(this);

       

              // Bind to own data or source properties for cache invalidation triggering
              model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "ATOM", model_internal::setterListenerATOM));
              model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "COOKIE", model_internal::setterListenerCOOKIE));
              model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "ISO8601", model_internal::setterListenerISO8601));
              model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "RFC822", model_internal::setterListenerRFC822));
              model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "RFC850", model_internal::setterListenerRFC850));
              model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "RFC1036", model_internal::setterListenerRFC1036));
              model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "RFC1123", model_internal::setterListenerRFC1123));
              model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "RFC2822", model_internal::setterListenerRFC2822));
              model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "RFC3339", model_internal::setterListenerRFC3339));
              model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "RSS", model_internal::setterListenerRSS));
              model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "W3C", model_internal::setterListenerW3C));

       

          }

       

          /**
           * data/source property getters
           */

       

          [Bindable(event="propertyChange")]
          public function get ATOM() : Object
          {
              return _internal_ATOM;
          }

       

          [Bindable(event="propertyChange")]
          public function get COOKIE() : Object
          {
              return _internal_COOKIE;
          }

       

          [Bindable(event="propertyChange")]
          public function get ISO8601() : Object
          {
              return _internal_ISO8601;
          }

       

          [Bindable(event="propertyChange")]
          public function get RFC822() : Object
          {
              return _internal_RFC822;
          }

       

          [Bindable(event="propertyChange")]
          public function get RFC850() : Object
          {
              return _internal_RFC850;
          }

       

          [Bindable(event="propertyChange")]
          public function get RFC1036() : Object
          {
              return _internal_RFC1036;
          }

       

          [Bindable(event="propertyChange")]
          public function get RFC1123() : Object
          {
              return _internal_RFC1123;
          }

       

          [Bindable(event="propertyChange")]
          public function get RFC2822() : Object
          {
              return _internal_RFC2822;
          }

       

          [Bindable(event="propertyChange")]
          public function get RFC3339() : Object
          {
              return _internal_RFC3339;
          }

       

          [Bindable(event="propertyChange")]
          public function get RSS() : Object
          {
              return _internal_RSS;
          }

       

          [Bindable(event="propertyChange")]
          public function get W3C() : Object
          {
              return _internal_W3C;
          }

       

          public function clearAssociations() : void
          {
          }

       

          /**
           * data/source property setters
           */

       

          public function set ATOM(value:Object) : void
          {
              var oldValue:Object = _internal_ATOM;
              if (oldValue !== value)
              {
                  _internal_ATOM = value;
                  this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "ATOM", oldValue, _internal_ATOM));
              }
          }

       

          public function set COOKIE(value:Object) : void
          {
              var oldValue:Object = _internal_COOKIE;
              if (oldValue !== value)
              {
                  _internal_COOKIE = value;
                  this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "COOKIE", oldValue, _internal_COOKIE));
              }
          }

       

          public function set ISO8601(value:Object) : void
          {
              var oldValue:Object = _internal_ISO8601;
              if (oldValue !== value)
              {
                  _internal_ISO8601 = value;
                  this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "ISO8601", oldValue, _internal_ISO8601));
              }
          }

       

          public function set RFC822(value:Object) : void
          {
              var oldValue:Object = _internal_RFC822;
              if (oldValue !== value)
              {
                  _internal_RFC822 = value;
                  this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "RFC822", oldValue, _internal_RFC822));
              }
          }

       

          public function set RFC850(value:Object) : void
          {
              var oldValue:Object = _internal_RFC850;
              if (oldValue !== value)
              {
                  _internal_RFC850 = value;
                  this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "RFC850", oldValue, _internal_RFC850));
              }
          }

       

          public function set RFC1036(value:Object) : void
          {
              var oldValue:Object = _internal_RFC1036;
              if (oldValue !== value)
              {
                  _internal_RFC1036 = value;
                  this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "RFC1036", oldValue, _internal_RFC1036));
              }
          }

       

          public function set RFC1123(value:Object) : void
          {
              var oldValue:Object = _internal_RFC1123;
              if (oldValue !== value)
              {
                  _internal_RFC1123 = value;
                  this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "RFC1123", oldValue, _internal_RFC1123));
              }
          }

       

          public function set RFC2822(value:Object) : void
          {
              var oldValue:Object = _internal_RFC2822;
              if (oldValue !== value)
              {
                  _internal_RFC2822 = value;
                  this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "RFC2822", oldValue, _internal_RFC2822));
              }
          }

       

          public function set RFC3339(value:Object) : void
          {
              var oldValue:Object = _internal_RFC3339;
              if (oldValue !== value)
              {
                  _internal_RFC3339 = value;
                  this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "RFC3339", oldValue, _internal_RFC3339));
              }
          }

       

          public function set RSS(value:Object) : void
          {
              var oldValue:Object = _internal_RSS;
              if (oldValue !== value)
              {
                  _internal_RSS = value;
                  this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "RSS", oldValue, _internal_RSS));
              }
          }

       

          public function set W3C(value:Object) : void
          {
              var oldValue:Object = _internal_W3C;
              if (oldValue !== value)
              {
                  _internal_W3C = value;
                  this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "W3C", oldValue, _internal_W3C));
              }
          }

       

          /**
           * Data/source property setter listeners
           *
           * Each data property whose value affects other properties or the validity of the entity
           * needs to invalidate all previously calculated artifacts. These include:
           *  - any derived properties or constraints that reference the given data property.
           *  - any availability guards (variant expressions) that reference the given data property.
           *  - any style validations, message tokens or guards that reference the given data property.
           *  - the validity of the property (and the containing entity) if the given data property has a length restriction.
           *  - the validity of the property (and the containing entity) if the given data property is required.
           */

       

          model_internal function setterListenerATOM(value:flash.events.Event):void
          {
              _model.invalidateDependentOnATOM();
          }

       

          model_internal function setterListenerCOOKIE(value:flash.events.Event):void
          {
              _model.invalidateDependentOnCOOKIE();
          }

       

          model_internal function setterListenerISO8601(value:flash.events.Event):void
          {
              _model.invalidateDependentOnISO8601();
          }

       

          model_internal function setterListenerRFC822(value:flash.events.Event):void
          {
              _model.invalidateDependentOnRFC822();
          }

       

          model_internal function setterListenerRFC850(value:flash.events.Event):void
          {
              _model.invalidateDependentOnRFC850();
          }

       

          model_internal function setterListenerRFC1036(value:flash.events.Event):void
          {
              _model.invalidateDependentOnRFC1036();
          }

       

          model_internal function setterListenerRFC1123(value:flash.events.Event):void
          {
              _model.invalidateDependentOnRFC1123();
          }

       

          model_internal function setterListenerRFC2822(value:flash.events.Event):void
          {
              _model.invalidateDependentOnRFC2822();
          }

       

          model_internal function setterListenerRFC3339(value:flash.events.Event):void
          {
              _model.invalidateDependentOnRFC3339();
          }

       

          model_internal function setterListenerRSS(value:flash.events.Event):void
          {
              _model.invalidateDependentOnRSS();
          }

       

          model_internal function setterListenerW3C(value:flash.events.Event):void
          {
              _model.invalidateDependentOnW3C();
          }

       


          /**
           * valid related derived properties
           */
          model_internal var _isValid : Boolean;
          model_internal var _invalidConstraints:Array = new Array();
          model_internal var _validationFailureMessages:Array = new Array();

       

          /**
           * derived property calculators
           */

       

          /**
           * isValid calculator
           */
          model_internal function calculateIsValid():Boolean
          {
              var violatedConsts:Array = new Array();
              var validationFailureMessages:Array = new Array();

       

              var propertyValidity:Boolean = true;
              if (!_model.ATOMIsValid)
              {
                  propertyValidity = false;
                  com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_ATOMValidationFailureMessages);
              }
              if (!_model.COOKIEIsValid)
              {
                  propertyValidity = false;
                  com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_COOKIEValidationFailureMessages);
              }
              if (!_model.ISO8601IsValid)
              {
                  propertyValidity = false;
                  com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_ISO8601ValidationFailureMessages);
              }
              if (!_model.RFC822IsValid)
              {
                  propertyValidity = false;
                  com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_RFC822ValidationFailureMessages);
              }
              if (!_model.RFC850IsValid)
              {
                  propertyValidity = false;
                  com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_RFC850ValidationFailureMessages);
              }
              if (!_model.RFC1036IsValid)
              {
                  propertyValidity = false;
                  com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_RFC1036ValidationFailureMessages);
              }
              if (!_model.RFC1123IsValid)
              {
                  propertyValidity = false;
                  com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_RFC1123ValidationFailureMessages);
              }
              if (!_model.RFC2822IsValid)
              {
                  propertyValidity = false;
                  com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_RFC2822ValidationFailureMessages);
              }
              if (!_model.RFC3339IsValid)
              {
                  propertyValidity = false;
                  com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_RFC3339ValidationFailureMessages);
              }
              if (!_model.RSSIsValid)
              {
                  propertyValidity = false;
                  com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_RSSValidationFailureMessages);
              }
              if (!_model.W3CIsValid)
              {
                  propertyValidity = false;
                  com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_W3CValidationFailureMessages);
              }

       

              model_internal::_cacheInitialized_isValid = true;
              model_internal::invalidConstraints_der = violatedConsts;
              model_internal::validationFailureMessages_der = validationFailureMessages;
              return violatedConsts.length == 0 && propertyValidity;
          }

       

          /**
           * derived property setters
           */

       

          model_internal function set isValid_der(value:Boolean) : void
          {
              var oldValue:Boolean = model_internal::_isValid;
              if (oldValue !== value)
              {
                  model_internal::_isValid = value;
                  _model.model_internal::fireChangeEvent("isValid", oldValue, model_internal::_isValid);
              }
          }

       

          /**
           * derived property getters
           */

       

          [Transient]
          [Bindable(event="propertyChange")]
          public function get _model() : _DateTimeEntityMetadata
          {
              return model_internal::_dminternal_model;
          }

       

          public function set _model(value : _DateTimeEntityMetadata) : void
          {
              var oldValue : _DateTimeEntityMetadata = model_internal::_dminternal_model;
              if (oldValue !== value)
              {
                  model_internal::_dminternal_model = value;
                  this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "_model", oldValue, model_internal::_dminternal_model));
              }
          }

       

          /**
           * methods
           */

       


          /**
           *  services
           */
          private var _managingService:com.adobe.fiber.services.IFiberManagingService;

       

          public function set managingService(managingService:com.adobe.fiber.services.IFiberManagingService):void
          {
              _managingService = managingService;
          }

       

          model_internal function set invalidConstraints_der(value:Array) : void
          {
              var oldValue:Array = model_internal::_invalidConstraints;
              // avoid firing the event when old and new value are different empty arrays
              if (oldValue !== value && (oldValue.length > 0 || value.length > 0))
              {
                  model_internal::_invalidConstraints = value;
                  _model.model_internal::fireChangeEvent("invalidConstraints", oldValue, model_internal::_invalidConstraints);
              }
          }

       

          model_internal function set validationFailureMessages_der(value:Array) : void
          {
              var oldValue:Array = model_internal::_validationFailureMessages;
              // avoid firing the event when old and new value are different empty arrays
              if (oldValue !== value && (oldValue.length > 0 || value.length > 0))
              {
                  model_internal::_validationFailureMessages = value;
                  _model.model_internal::fireChangeEvent("validationFailureMessages", oldValue, model_internal::_validationFailureMessages);
              }
          }

       

          model_internal var _doValidationCacheOfATOM : Array = null;
          model_internal var _doValidationLastValOfATOM : Object;

       

          model_internal function _doValidationForATOM(valueIn:Object):Array
          {
              var value : Object = valueIn as Object;

       

              if (model_internal::_doValidationCacheOfATOM != null && model_internal::_doValidationLastValOfATOM == value)
                 return model_internal::_doValidationCacheOfATOM ;

       

              _model.model_internal::_ATOMIsValidCacheInitialized = true;
              var validationFailures:Array = new Array();
              var errorMessage:String;
              var failure:Boolean;

       

              var valRes:ValidationResult;
              if (_model.isATOMAvailable && _internal_ATOM == null)
              {
                  validationFailures.push(new ValidationResult(true, "", "", "ATOM is required"));
              }

       

              model_internal::_doValidationCacheOfATOM = validationFailures;
              model_internal::_doValidationLastValOfATOM = value;

       

              return validationFailures;
          }
         
          model_internal var _doValidationCacheOfCOOKIE : Array = null;
          model_internal var _doValidationLastValOfCOOKIE : Object;

       

          model_internal function _doValidationForCOOKIE(valueIn:Object):Array
          {
              var value : Object = valueIn as Object;

       

              if (model_internal::_doValidationCacheOfCOOKIE != null && model_internal::_doValidationLastValOfCOOKIE == value)
                 return model_internal::_doValidationCacheOfCOOKIE ;

       

              _model.model_internal::_COOKIEIsValidCacheInitialized = true;
              var validationFailures:Array = new Array();
              var errorMessage:String;
              var failure:Boolean;

       

              var valRes:ValidationResult;
              if (_model.isCOOKIEAvailable && _internal_COOKIE == null)
              {
                  validationFailures.push(new ValidationResult(true, "", "", "COOKIE is required"));
              }

       

              model_internal::_doValidationCacheOfCOOKIE = validationFailures;
              model_internal::_doValidationLastValOfCOOKIE = value;

       

              return validationFailures;
          }
         
          model_internal var _doValidationCacheOfISO8601 : Array = null;
          model_internal var _doValidationLastValOfISO8601 : Object;

       

          model_internal function _doValidationForISO8601(valueIn:Object):Array
          {
              var value : Object = valueIn as Object;

       

              if (model_internal::_doValidationCacheOfISO8601 != null && model_internal::_doValidationLastValOfISO8601 == value)
                 return model_internal::_doValidationCacheOfISO8601 ;

       

              _model.model_internal::_ISO8601IsValidCacheInitialized = true;
              var validationFailures:Array = new Array();
              var errorMessage:String;
              var failure:Boolean;

       

              var valRes:ValidationResult;
              if (_model.isISO8601Available && _internal_ISO8601 == null)
              {
                  validationFailures.push(new ValidationResult(true, "", "", "ISO8601 is required"));
              }

       

              model_internal::_doValidationCacheOfISO8601 = validationFailures;
              model_internal::_doValidationLastValOfISO8601 = value;

       

              return validationFailures;
          }
         
          model_internal var _doValidationCacheOfRFC822 : Array = null;
          model_internal var _doValidationLastValOfRFC822 : Object;

       

          model_internal function _doValidationForRFC822(valueIn:Object):Array
          {
              var value : Object = valueIn as Object;

       

              if (model_internal::_doValidationCacheOfRFC822 != null && model_internal::_doValidationLastValOfRFC822 == value)
                 return model_internal::_doValidationCacheOfRFC822 ;

       

              _model.model_internal::_RFC822IsValidCacheInitialized = true;
              var validationFailures:Array = new Array();
              var errorMessage:String;
              var failure:Boolean;

       

              var valRes:ValidationResult;
              if (_model.isRFC822Available && _internal_RFC822 == null)
              {
                  validationFailures.push(new ValidationResult(true, "", "", "RFC822 is required"));
              }

       

              model_internal::_doValidationCacheOfRFC822 = validationFailures;
              model_internal::_doValidationLastValOfRFC822 = value;

       

              return validationFailures;
          }
         
          model_internal var _doValidationCacheOfRFC850 : Array = null;
          model_internal var _doValidationLastValOfRFC850 : Object;

       

          model_internal function _doValidationForRFC850(valueIn:Object):Array
          {
              var value : Object = valueIn as Object;

       

              if (model_internal::_doValidationCacheOfRFC850 != null && model_internal::_doValidationLastValOfRFC850 == value)
                 return model_internal::_doValidationCacheOfRFC850 ;

       

              _model.model_internal::_RFC850IsValidCacheInitialized = true;
              var validationFailures:Array = new Array();
              var errorMessage:String;
              var failure:Boolean;

       

              var valRes:ValidationResult;
              if (_model.isRFC850Available && _internal_RFC850 == null)
              {
                  validationFailures.push(new ValidationResult(true, "", "", "RFC850 is required"));
              }

       

              model_internal::_doValidationCacheOfRFC850 = validationFailures;
              model_internal::_doValidationLastValOfRFC850 = value;

       

              return validationFailures;
          }
         
          model_internal var _doValidationCacheOfRFC1036 : Array = null;
          model_internal var _doValidationLastValOfRFC1036 : Object;

       

          model_internal function _doValidationForRFC1036(valueIn:Object):Array
          {
              var value : Object = valueIn as Object;

       

              if (model_internal::_doValidationCacheOfRFC1036 != null && model_internal::_doValidationLastValOfRFC1036 == value)
                 return model_internal::_doValidationCacheOfRFC1036 ;

       

              _model.model_internal::_RFC1036IsValidCacheInitialized = true;
              var validationFailures:Array = new Array();
              var errorMessage:String;
              var failure:Boolean;

       

              var valRes:ValidationResult;
              if (_model.isRFC1036Available && _internal_RFC1036 == null)
              {
                  validationFailures.push(new ValidationResult(true, "", "", "RFC1036 is required"));
              }

       

              model_internal::_doValidationCacheOfRFC1036 = validationFailures;
              model_internal::_doValidationLastValOfRFC1036 = value;

       

              return validationFailures;
          }
         
          model_internal var _doValidationCacheOfRFC1123 : Array = null;
          model_internal var _doValidationLastValOfRFC1123 : Object;

       

          model_internal function _doValidationForRFC1123(valueIn:Object):Array
          {
              var value : Object = valueIn as Object;

       

              if (model_internal::_doValidationCacheOfRFC1123 != null && model_internal::_doValidationLastValOfRFC1123 == value)
                 return model_internal::_doValidationCacheOfRFC1123 ;

       

              _model.model_internal::_RFC1123IsValidCacheInitialized = true;
              var validationFailures:Array = new Array();
              var errorMessage:String;
              var failure:Boolean;

       

              var valRes:ValidationResult;
              if (_model.isRFC1123Available && _internal_RFC1123 == null)
              {
                  validationFailures.push(new ValidationResult(true, "", "", "RFC1123 is required"));
              }

       

              model_internal::_doValidationCacheOfRFC1123 = validationFailures;
              model_internal::_doValidationLastValOfRFC1123 = value;

       

              return validationFailures;
          }
         
          model_internal var _doValidationCacheOfRFC2822 : Array = null;
          model_internal var _doValidationLastValOfRFC2822 : Object;

       

          model_internal function _doValidationForRFC2822(valueIn:Object):Array
          {
              var value : Object = valueIn as Object;

       

              if (model_internal::_doValidationCacheOfRFC2822 != null && model_internal::_doValidationLastValOfRFC2822 == value)
                 return model_internal::_doValidationCacheOfRFC2822 ;

       

              _model.model_internal::_RFC2822IsValidCacheInitialized = true;
              var validationFailures:Array = new Array();
              var errorMessage:String;
              var failure:Boolean;

       

              var valRes:ValidationResult;
              if (_model.isRFC2822Available && _internal_RFC2822 == null)
              {
                  validationFailures.push(new ValidationResult(true, "", "", "RFC2822 is required"));
              }

       

              model_internal::_doValidationCacheOfRFC2822 = validationFailures;
              model_internal::_doValidationLastValOfRFC2822 = value;

       

              return validationFailures;
          }
         
          model_internal var _doValidationCacheOfRFC3339 : Array = null;
          model_internal var _doValidationLastValOfRFC3339 : Object;

       

          model_internal function _doValidationForRFC3339(valueIn:Object):Array
          {
              var value : Object = valueIn as Object;

       

              if (model_internal::_doValidationCacheOfRFC3339 != null && model_internal::_doValidationLastValOfRFC3339 == value)
                 return model_internal::_doValidationCacheOfRFC3339 ;

       

              _model.model_internal::_RFC3339IsValidCacheInitialized = true;
              var validationFailures:Array = new Array();
              var errorMessage:String;
              var failure:Boolean;

       

              var valRes:ValidationResult;
              if (_model.isRFC3339Available && _internal_RFC3339 == null)
              {
                  validationFailures.push(new ValidationResult(true, "", "", "RFC3339 is required"));
              }

       

              model_internal::_doValidationCacheOfRFC3339 = validationFailures;
              model_internal::_doValidationLastValOfRFC3339 = value;

       

              return validationFailures;
          }
         
          model_internal var _doValidationCacheOfRSS : Array = null;
          model_internal var _doValidationLastValOfRSS : Object;

       

          model_internal function _doValidationForRSS(valueIn:Object):Array
          {
              var value : Object = valueIn as Object;

       

              if (model_internal::_doValidationCacheOfRSS != null && model_internal::_doValidationLastValOfRSS == value)
                 return model_internal::_doValidationCacheOfRSS ;

       

              _model.model_internal::_RSSIsValidCacheInitialized = true;
              var validationFailures:Array = new Array();
              var errorMessage:String;
              var failure:Boolean;

       

              var valRes:ValidationResult;
              if (_model.isRSSAvailable && _internal_RSS == null)
              {
                  validationFailures.push(new ValidationResult(true, "", "", "RSS is required"));
              }

       

              model_internal::_doValidationCacheOfRSS = validationFailures;
              model_internal::_doValidationLastValOfRSS = value;

       

              return validationFailures;
          }
         
          model_internal var _doValidationCacheOfW3C : Array = null;
          model_internal var _doValidationLastValOfW3C : Object;

       

          model_internal function _doValidationForW3C(valueIn:Object):Array
          {
              var value : Object = valueIn as Object;

       

              if (model_internal::_doValidationCacheOfW3C != null && model_internal::_doValidationLastValOfW3C == value)
                 return model_internal::_doValidationCacheOfW3C ;

       

              _model.model_internal::_W3CIsValidCacheInitialized = true;
              var validationFailures:Array = new Array();
              var errorMessage:String;
              var failure:Boolean;

       

              var valRes:ValidationResult;
              if (_model.isW3CAvailable && _internal_W3C == null)
              {
                  validationFailures.push(new ValidationResult(true, "", "", "W3C is required"));
              }

       

              model_internal::_doValidationCacheOfW3C = validationFailures;
              model_internal::_doValidationLastValOfW3C = value;

       

              return validationFailures;
          }

       

      }

       

      }