Packageat.utils
Classpublic class ParseUtils



Public Methods
 MethodDefined by
  
addSlashesToFilePath(value:String, delimiter:String = "/"):String
[static] Takes a filepath string and ensures the structure is valid and ends with a '/'
ParseUtils
  
csvToArray(csv:String):Array
[static]
ParseUtils
  
stringInArray(str:String, arr:Array):Boolean
[static]
ParseUtils
  
stringToType(dataType:String, value:Object):Object
[static]
ParseUtils
  
xmlToObject(xml:XML):Object
[static]
ParseUtils
Method detail
addSlashesToFilePath()method
public static function addSlashesToFilePath(value:String, delimiter:String = "/"):String

Takes a filepath string and ensures the structure is valid and ends with a '/'

Parameters
value:String — A file path without the filename attached
 
delimiter:String (default = "/")

Returns
String
csvToArray()method 
public static function csvToArray(csv:String):ArrayParameters
csv:String

Returns
Array
stringInArray()method 
public static function stringInArray(str:String, arr:Array):BooleanParameters
str:String
 
arr:Array

Returns
Boolean
stringToType()method 
public static function stringToType(dataType:String, value:Object):ObjectParameters
dataType:String
 
value:Object

Returns
Object
xmlToObject()method 
public static function xmlToObject(xml:XML):ObjectParameters
xml:XML

Returns
Object