| //////////////////////////////////////////////////////////////////////////////// |
| // |
| // Licensed to the Apache Software Foundation (ASF) under one or more |
| // contributor license agreements. See the NOTICE file distributed with |
| // this work for additional information regarding copyright ownership. |
| // The ASF licenses this file to You under the Apache License, Version 2.0 |
| // (the "License"); you may not use this file except in compliance with |
| // the License. You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| // |
| //////////////////////////////////////////////////////////////////////////////// |
| /**
|
| * 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 - Employee.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_Employee extends flash.events.EventDispatcher implements com.adobe.fiber.valueobjects.IValueObject
|
| {
|
| model_internal static function initRemoteClassAliasSingle(cz:Class) : void
|
| {
|
| }
|
|
|
| model_internal static function initRemoteClassAliasAllRelated() : void
|
| {
|
| }
|
|
|
| model_internal var _dminternal_model : _EmployeeEntityMetadata;
|
| 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_office : String;
|
| private var _internal_departmentid : int;
|
| private var _internal_street : String;
|
| private var _internal_zipcode : String;
|
| private var _internal_state : String;
|
| private var _internal_lastname : String;
|
| private var _internal_firstname : String;
|
| private var _internal_photofile : String;
|
| private var _internal_city : String;
|
| private var _internal_id : int;
|
| private var _internal_title : String;
|
| private var _internal_email : String;
|
| private var _internal_officephone : String;
|
| private var _internal_cellphone : String;
|
|
|
| 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_Employee()
|
| {
|
| _model = new _EmployeeEntityMetadata(this);
|
|
|
| // Bind to own data or source properties for cache invalidation triggering
|
| model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "office", model_internal::setterListenerOffice));
|
| model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "street", model_internal::setterListenerStreet));
|
| model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "zipcode", model_internal::setterListenerZipcode));
|
| model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "state", model_internal::setterListenerState));
|
| model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "city", model_internal::setterListenerCity));
|
| model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "email", model_internal::setterListenerEmail));
|
| model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "officephone", model_internal::setterListenerOfficephone));
|
| model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "cellphone", model_internal::setterListenerCellphone));
|
|
|
| }
|
|
|
| /**
|
| * data/source property getters
|
| */
|
|
|
| [Bindable(event="propertyChange")]
|
| public function get office() : String
|
| {
|
| return _internal_office;
|
| }
|
|
|
| [Bindable(event="propertyChange")]
|
| public function get departmentid() : int
|
| {
|
| return _internal_departmentid;
|
| }
|
|
|
| [Bindable(event="propertyChange")]
|
| public function get street() : String
|
| {
|
| return _internal_street;
|
| }
|
|
|
| [Bindable(event="propertyChange")]
|
| public function get zipcode() : String
|
| {
|
| return _internal_zipcode;
|
| }
|
|
|
| [Bindable(event="propertyChange")]
|
| public function get state() : String
|
| {
|
| return _internal_state;
|
| }
|
|
|
| [Bindable(event="propertyChange")]
|
| public function get lastname() : String
|
| {
|
| return _internal_lastname;
|
| }
|
|
|
| [Bindable(event="propertyChange")]
|
| public function get firstname() : String
|
| {
|
| return _internal_firstname;
|
| }
|
|
|
| [Bindable(event="propertyChange")]
|
| public function get photofile() : String
|
| {
|
| return _internal_photofile;
|
| }
|
|
|
| [Bindable(event="propertyChange")]
|
| public function get city() : String
|
| {
|
| return _internal_city;
|
| }
|
|
|
| [Bindable(event="propertyChange")]
|
| public function get id() : int
|
| {
|
| return _internal_id;
|
| }
|
|
|
| [Bindable(event="propertyChange")]
|
| public function get title() : String
|
| {
|
| return _internal_title;
|
| }
|
|
|
| [Bindable(event="propertyChange")]
|
| public function get email() : String
|
| {
|
| return _internal_email;
|
| }
|
|
|
| [Bindable(event="propertyChange")]
|
| public function get officephone() : String
|
| {
|
| return _internal_officephone;
|
| }
|
|
|
| [Bindable(event="propertyChange")]
|
| public function get cellphone() : String
|
| {
|
| return _internal_cellphone;
|
| }
|
|
|
| public function clearAssociations() : void
|
| {
|
| }
|
|
|
| /**
|
| * data/source property setters
|
| */
|
|
|
| public function set office(value:String) : void
|
| {
|
| var oldValue:String = _internal_office;
|
| if (oldValue !== value)
|
| {
|
| _internal_office = value;
|
| this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "office", oldValue, _internal_office));
|
| }
|
| }
|
|
|
| public function set departmentid(value:int) : void
|
| {
|
| var oldValue:int = _internal_departmentid;
|
| if (oldValue !== value)
|
| {
|
| _internal_departmentid = value;
|
| this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "departmentid", oldValue, _internal_departmentid));
|
| }
|
| }
|
|
|
| public function set street(value:String) : void
|
| {
|
| var oldValue:String = _internal_street;
|
| if (oldValue !== value)
|
| {
|
| _internal_street = value;
|
| this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "street", oldValue, _internal_street));
|
| }
|
| }
|
|
|
| public function set zipcode(value:String) : void
|
| {
|
| var oldValue:String = _internal_zipcode;
|
| if (oldValue !== value)
|
| {
|
| _internal_zipcode = value;
|
| this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "zipcode", oldValue, _internal_zipcode));
|
| }
|
| }
|
|
|
| public function set state(value:String) : void
|
| {
|
| var oldValue:String = _internal_state;
|
| if (oldValue !== value)
|
| {
|
| _internal_state = value;
|
| this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "state", oldValue, _internal_state));
|
| }
|
| }
|
|
|
| public function set lastname(value:String) : void
|
| {
|
| var oldValue:String = _internal_lastname;
|
| if (oldValue !== value)
|
| {
|
| _internal_lastname = value;
|
| this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "lastname", oldValue, _internal_lastname));
|
| }
|
| }
|
|
|
| public function set firstname(value:String) : void
|
| {
|
| var oldValue:String = _internal_firstname;
|
| if (oldValue !== value)
|
| {
|
| _internal_firstname = value;
|
| this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "firstname", oldValue, _internal_firstname));
|
| }
|
| }
|
|
|
| public function set photofile(value:String) : void
|
| {
|
| var oldValue:String = _internal_photofile;
|
| if (oldValue !== value)
|
| {
|
| _internal_photofile = value;
|
| this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "photofile", oldValue, _internal_photofile));
|
| }
|
| }
|
|
|
| public function set city(value:String) : void
|
| {
|
| var oldValue:String = _internal_city;
|
| if (oldValue !== value)
|
| {
|
| _internal_city = value;
|
| this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "city", oldValue, _internal_city));
|
| }
|
| }
|
|
|
| public function set id(value:int) : void
|
| {
|
| var oldValue:int = _internal_id;
|
| if (oldValue !== value)
|
| {
|
| _internal_id = value;
|
| this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "id", oldValue, _internal_id));
|
| }
|
| }
|
|
|
| public function set title(value:String) : void
|
| {
|
| var oldValue:String = _internal_title;
|
| if (oldValue !== value)
|
| {
|
| _internal_title = value;
|
| this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "title", oldValue, _internal_title));
|
| }
|
| }
|
|
|
| public function set email(value:String) : void
|
| {
|
| var oldValue:String = _internal_email;
|
| if (oldValue !== value)
|
| {
|
| _internal_email = value;
|
| this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "email", oldValue, _internal_email));
|
| }
|
| }
|
|
|
| public function set officephone(value:String) : void
|
| {
|
| var oldValue:String = _internal_officephone;
|
| if (oldValue !== value)
|
| {
|
| _internal_officephone = value;
|
| this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "officephone", oldValue, _internal_officephone));
|
| }
|
| }
|
|
|
| public function set cellphone(value:String) : void
|
| {
|
| var oldValue:String = _internal_cellphone;
|
| if (oldValue !== value)
|
| {
|
| _internal_cellphone = value;
|
| this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cellphone", oldValue, _internal_cellphone));
|
| }
|
| }
|
|
|
| /**
|
| * 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 setterListenerOffice(value:flash.events.Event):void
|
| {
|
| _model.invalidateDependentOnOffice();
|
| }
|
|
|
| model_internal function setterListenerStreet(value:flash.events.Event):void
|
| {
|
| _model.invalidateDependentOnStreet();
|
| }
|
|
|
| model_internal function setterListenerZipcode(value:flash.events.Event):void
|
| {
|
| _model.invalidateDependentOnZipcode();
|
| }
|
|
|
| model_internal function setterListenerState(value:flash.events.Event):void
|
| {
|
| _model.invalidateDependentOnState();
|
| }
|
|
|
| model_internal function setterListenerCity(value:flash.events.Event):void
|
| {
|
| _model.invalidateDependentOnCity();
|
| }
|
|
|
| model_internal function setterListenerEmail(value:flash.events.Event):void
|
| {
|
| _model.invalidateDependentOnEmail();
|
| }
|
|
|
| model_internal function setterListenerOfficephone(value:flash.events.Event):void
|
| {
|
| _model.invalidateDependentOnOfficephone();
|
| }
|
|
|
| model_internal function setterListenerCellphone(value:flash.events.Event):void
|
| {
|
| _model.invalidateDependentOnCellphone();
|
| }
|
|
|
|
|
| /**
|
| * 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.officeIsValid)
|
| {
|
| propertyValidity = false;
|
| com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_officeValidationFailureMessages);
|
| }
|
| if (!_model.streetIsValid)
|
| {
|
| propertyValidity = false;
|
| com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_streetValidationFailureMessages);
|
| }
|
| if (!_model.zipcodeIsValid)
|
| {
|
| propertyValidity = false;
|
| com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_zipcodeValidationFailureMessages);
|
| }
|
| if (!_model.stateIsValid)
|
| {
|
| propertyValidity = false;
|
| com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_stateValidationFailureMessages);
|
| }
|
| if (!_model.cityIsValid)
|
| {
|
| propertyValidity = false;
|
| com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_cityValidationFailureMessages);
|
| }
|
| if (!_model.emailIsValid)
|
| {
|
| propertyValidity = false;
|
| com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_emailValidationFailureMessages);
|
| }
|
| if (!_model.officephoneIsValid)
|
| {
|
| propertyValidity = false;
|
| com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_officephoneValidationFailureMessages);
|
| }
|
| if (!_model.cellphoneIsValid)
|
| {
|
| propertyValidity = false;
|
| com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_cellphoneValidationFailureMessages);
|
| }
|
|
|
| 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() : _EmployeeEntityMetadata
|
| {
|
| return model_internal::_dminternal_model;
|
| }
|
|
|
| public function set _model(value : _EmployeeEntityMetadata) : void
|
| {
|
| var oldValue : _EmployeeEntityMetadata = 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 _doValidationCacheOfOffice : Array = null;
|
| model_internal var _doValidationLastValOfOffice : String;
|
|
|
| model_internal function _doValidationForOffice(valueIn:Object):Array
|
| {
|
| var value : String = valueIn as String;
|
|
|
| if (model_internal::_doValidationCacheOfOffice != null && model_internal::_doValidationLastValOfOffice == value)
|
| return model_internal::_doValidationCacheOfOffice ;
|
|
|
| _model.model_internal::_officeIsValidCacheInitialized = true;
|
| var validationFailures:Array = new Array();
|
| var errorMessage:String;
|
| var failure:Boolean;
|
|
|
| var valRes:ValidationResult;
|
| if (_model.isOfficeAvailable && _internal_office == null)
|
| {
|
| validationFailures.push(new ValidationResult(true, "", "", "office is required"));
|
| }
|
|
|
| model_internal::_doValidationCacheOfOffice = validationFailures;
|
| model_internal::_doValidationLastValOfOffice = value;
|
|
|
| return validationFailures;
|
| }
|
|
|
| model_internal var _doValidationCacheOfStreet : Array = null;
|
| model_internal var _doValidationLastValOfStreet : String;
|
|
|
| model_internal function _doValidationForStreet(valueIn:Object):Array
|
| {
|
| var value : String = valueIn as String;
|
|
|
| if (model_internal::_doValidationCacheOfStreet != null && model_internal::_doValidationLastValOfStreet == value)
|
| return model_internal::_doValidationCacheOfStreet ;
|
|
|
| _model.model_internal::_streetIsValidCacheInitialized = true;
|
| var validationFailures:Array = new Array();
|
| var errorMessage:String;
|
| var failure:Boolean;
|
|
|
| var valRes:ValidationResult;
|
| if (_model.isStreetAvailable && _internal_street == null)
|
| {
|
| validationFailures.push(new ValidationResult(true, "", "", "street is required"));
|
| }
|
|
|
| model_internal::_doValidationCacheOfStreet = validationFailures;
|
| model_internal::_doValidationLastValOfStreet = value;
|
|
|
| return validationFailures;
|
| }
|
|
|
| model_internal var _doValidationCacheOfZipcode : Array = null;
|
| model_internal var _doValidationLastValOfZipcode : String;
|
|
|
| model_internal function _doValidationForZipcode(valueIn:Object):Array
|
| {
|
| var value : String = valueIn as String;
|
|
|
| if (model_internal::_doValidationCacheOfZipcode != null && model_internal::_doValidationLastValOfZipcode == value)
|
| return model_internal::_doValidationCacheOfZipcode ;
|
|
|
| _model.model_internal::_zipcodeIsValidCacheInitialized = true;
|
| var validationFailures:Array = new Array();
|
| var errorMessage:String;
|
| var failure:Boolean;
|
|
|
| var valRes:ValidationResult;
|
| if (_model.isZipcodeAvailable && _internal_zipcode == null)
|
| {
|
| validationFailures.push(new ValidationResult(true, "", "", "zipcode is required"));
|
| }
|
|
|
| model_internal::_doValidationCacheOfZipcode = validationFailures;
|
| model_internal::_doValidationLastValOfZipcode = value;
|
|
|
| return validationFailures;
|
| }
|
|
|
| model_internal var _doValidationCacheOfState : Array = null;
|
| model_internal var _doValidationLastValOfState : String;
|
|
|
| model_internal function _doValidationForState(valueIn:Object):Array
|
| {
|
| var value : String = valueIn as String;
|
|
|
| if (model_internal::_doValidationCacheOfState != null && model_internal::_doValidationLastValOfState == value)
|
| return model_internal::_doValidationCacheOfState ;
|
|
|
| _model.model_internal::_stateIsValidCacheInitialized = true;
|
| var validationFailures:Array = new Array();
|
| var errorMessage:String;
|
| var failure:Boolean;
|
|
|
| var valRes:ValidationResult;
|
| if (_model.isStateAvailable && _internal_state == null)
|
| {
|
| validationFailures.push(new ValidationResult(true, "", "", "state is required"));
|
| }
|
|
|
| model_internal::_doValidationCacheOfState = validationFailures;
|
| model_internal::_doValidationLastValOfState = value;
|
|
|
| return validationFailures;
|
| }
|
|
|
| model_internal var _doValidationCacheOfCity : Array = null;
|
| model_internal var _doValidationLastValOfCity : String;
|
|
|
| model_internal function _doValidationForCity(valueIn:Object):Array
|
| {
|
| var value : String = valueIn as String;
|
|
|
| if (model_internal::_doValidationCacheOfCity != null && model_internal::_doValidationLastValOfCity == value)
|
| return model_internal::_doValidationCacheOfCity ;
|
|
|
| _model.model_internal::_cityIsValidCacheInitialized = true;
|
| var validationFailures:Array = new Array();
|
| var errorMessage:String;
|
| var failure:Boolean;
|
|
|
| var valRes:ValidationResult;
|
| if (_model.isCityAvailable && _internal_city == null)
|
| {
|
| validationFailures.push(new ValidationResult(true, "", "", "city is required"));
|
| }
|
|
|
| model_internal::_doValidationCacheOfCity = validationFailures;
|
| model_internal::_doValidationLastValOfCity = value;
|
|
|
| return validationFailures;
|
| }
|
|
|
| model_internal var _doValidationCacheOfEmail : Array = null;
|
| model_internal var _doValidationLastValOfEmail : String;
|
|
|
| model_internal function _doValidationForEmail(valueIn:Object):Array
|
| {
|
| var value : String = valueIn as String;
|
|
|
| if (model_internal::_doValidationCacheOfEmail != null && model_internal::_doValidationLastValOfEmail == value)
|
| return model_internal::_doValidationCacheOfEmail ;
|
|
|
| _model.model_internal::_emailIsValidCacheInitialized = true;
|
| var validationFailures:Array = new Array();
|
| var errorMessage:String;
|
| var failure:Boolean;
|
|
|
| var valRes:ValidationResult;
|
| if (_model.isEmailAvailable && _internal_email == null)
|
| {
|
| validationFailures.push(new ValidationResult(true, "", "", "email is required"));
|
| }
|
|
|
| model_internal::_doValidationCacheOfEmail = validationFailures;
|
| model_internal::_doValidationLastValOfEmail = value;
|
|
|
| return validationFailures;
|
| }
|
|
|
| model_internal var _doValidationCacheOfOfficephone : Array = null;
|
| model_internal var _doValidationLastValOfOfficephone : String;
|
|
|
| model_internal function _doValidationForOfficephone(valueIn:Object):Array
|
| {
|
| var value : String = valueIn as String;
|
|
|
| if (model_internal::_doValidationCacheOfOfficephone != null && model_internal::_doValidationLastValOfOfficephone == value)
|
| return model_internal::_doValidationCacheOfOfficephone ;
|
|
|
| _model.model_internal::_officephoneIsValidCacheInitialized = true;
|
| var validationFailures:Array = new Array();
|
| var errorMessage:String;
|
| var failure:Boolean;
|
|
|
| var valRes:ValidationResult;
|
| if (_model.isOfficephoneAvailable && _internal_officephone == null)
|
| {
|
| validationFailures.push(new ValidationResult(true, "", "", "officephone is required"));
|
| }
|
|
|
| model_internal::_doValidationCacheOfOfficephone = validationFailures;
|
| model_internal::_doValidationLastValOfOfficephone = value;
|
|
|
| return validationFailures;
|
| }
|
|
|
| model_internal var _doValidationCacheOfCellphone : Array = null;
|
| model_internal var _doValidationLastValOfCellphone : String;
|
|
|
| model_internal function _doValidationForCellphone(valueIn:Object):Array
|
| {
|
| var value : String = valueIn as String;
|
|
|
| if (model_internal::_doValidationCacheOfCellphone != null && model_internal::_doValidationLastValOfCellphone == value)
|
| return model_internal::_doValidationCacheOfCellphone ;
|
|
|
| _model.model_internal::_cellphoneIsValidCacheInitialized = true;
|
| var validationFailures:Array = new Array();
|
| var errorMessage:String;
|
| var failure:Boolean;
|
|
|
| var valRes:ValidationResult;
|
| if (_model.isCellphoneAvailable && _internal_cellphone == null)
|
| {
|
| validationFailures.push(new ValidationResult(true, "", "", "cellphone is required"));
|
| }
|
|
|
| model_internal::_doValidationCacheOfCellphone = validationFailures;
|
| model_internal::_doValidationLastValOfCellphone = value;
|
|
|
| return validationFailures;
|
| }
|
|
|
|
|
| }
|
|
|
| }
|