var _loc3_ = "0123456789abcdefghijklmnopqrstuvwxyz_.";
var _loc1_ = 0;
while(_loc1_ < _loc2_.length)
{
if(-1 == _loc3_.indexOf(_loc2_.charAt(_loc1_)))
{
return false;
}
_loc1_ = _loc1_ + 1;
}
return true;
}
static function createFieldAccessor(component, property, location, type, mustExist)
{
if(mustExist && component[property] == null)
{
_global.__dataLogger.logData(component,"Warning: property \'<property>\' does not exist",{property:property});
return null;
}
var _loc5_ = new mx.data.binding.FieldAccessor(component,property,component,property,type,null,null);
if(location == null)
{
return _loc5_;
}
var _loc7_ = null;
if(location.indices != null)
{
_loc7_ = location.indices;
location = location.path;
}
if(typeof location == "string")
{
if(_loc7_ != null)
{
_global.__dataLogger.logData(component,"Warning: ignoring index values for property \'<property>\', path \'<location>\'",{property:property,location:location});
_global.__dataLogger.logData(component,"Error: indices for <property>:<location> are null, but [n] appears in the location.",{property:property,location:location});
return null;
}
_loc2_ = _loc7_[_loc11_++];
if(_loc2_ == null)
{
_global.__dataLogger.logData(component,"Error: not enough index values for <property>:<location>",{property:property,location:location});
_global.__dataLogger.logData(this.component,"Warning: path \'<path>\' evaluates to null, at \'<token>\' in <t.property>:<t.m_location>",{path:path,token:token,t:this});
_global.__dataLogger.logData(this.component,"Error: path \'<path>\' is an XPath. It cannot be applied to non-XML data <t.property>:<t.m_location>",{path:path,t:this});
}
return obj;
}
function getFieldData()
{
if(this.xpath != null)
{
var _loc4_ = this.parentObj[this.fieldName].firstChild;
while(_loc4_ != null && _loc4_.nodeType != 1)
{
_loc4_ = _loc4_.nextSibling;
}
var _loc8_ = mx.xpath.XPathAPI.selectSingleNode(_loc4_,this.xpath);
var _loc7_ = this.index.component.getField(this.index.property,this.index.location);
_loc6_ = _loc7_.getAnyTypedValue(["Number"]);
_loc6_ = _loc6_.value;
}
else
{
_loc6_ = this.index.constant;
}
var _loc9_ = Number(_loc6_);
if(typeof _loc6_ == "undefined")
{
_global.__dataLogger.logData(this.component,"Error: index specification \'<index>\' was not supplied, or incorrect, for <t.property>:<t.m_location>",{index:_loc9_,t:this});
return null;
}
if(_loc9_.toString() == "NaN")
{
_global.__dataLogger.logData(this.component,"Error: index value \'<index>\' for <t.property>:<t.m_location> is not a number",{index:_loc9_,t:this});
return null;
}
if(!(this.parentObj instanceof Array))
{
_global.__dataLogger.logData(this.component,"Error: indexed field <property>:<m_location> is not an array",this);
return null;
}
if(_loc9_ < 0 || _loc9_ >= this.parentObj.length)
{
_global.__dataLogger.logData(this.component,"Error: index \'<index>\' for <t.property>:<t.m_location> is out of bounds",{index:_loc9_,t:this});
return null;
}
_global.__dataLogger.logData(this.component,"Accessing item [<index>] of <t.property>:<t.m_location>",{index:_loc9_,t:this});