dataschema-text.js revision fe0eaf3c7c1942b0a300cd5f3952ada16fb18781
/**
* The DataSchema utility provides a common configurable interface for widgets to
* apply a given schema to a variety of data.
*
* @module dataschema
*/
/**
* Text subclass for the YUI DataSchema utility.
* @class DataSchema.Text
* @extends DataSchema.Base
* @static
*/
SchemaText = {
/////////////////////////////////////////////////////////////////////////////
//
// DataSchema.Text static methods
//
/////////////////////////////////////////////////////////////////////////////
/**
* Returns string name.
*
* @method toString
* @return {String} String representation for this object.
*/
toString: function() {
return "DataSchema.Text";
},
/**
* Applies a given schema to given delimited text data.
*
* @method apply
* @param schema {Object} Schema to apply.
* @param data {Object} Text data.
* @return {Object} Schema-parsed data.
* @static
*/
// Parse results data
}
else {
}
return data_out;
},
/**
* Schema-parsed list of results from full data
*
* @method _parseResults
* @param schema {Array} Schema to parse against.
* @param text_in {String} Text to parse.
* @param data_out {Object} In-progress parsed data to update.
* @return {Object} Parsed data object.
* @static
* @protected
*/
results = [],
// Delete final delimiter at end of string if there
}
// Split into results
result = {};
item = results_in[i];
}
}
}
else {
}
}
return data_out;
}
};