A data schema represents a set of data variables and their associated
types. A schema maintains a collection of
DataField
objects.
public var dataRoot:String = "null"
fields:Array [read-only]
An array containing the data fields in this schema.
Implementation
public function get fields():Array
public var hasHeader:Boolean = false
numFields:int [read-only]
The number of data fields in this schema.
Implementation
public function get numFields():int
public function DataSchema(... fields)
Creates a new DataSchema.
Parameters
| ... fields — an ordered list of data fields to include in the
schema
|
public function addField(field:DataField):void
Adds a field to this schema.
Parameters
public function getFieldAt(idx:int):DataField
Retrieves a data field by its index in this schema.
Parameters
| idx:int — the index of the data field in this schema
|
Returns
public function getFieldById(id:String):DataField
Retrieves a data field by id.
Parameters
| id:String — the data field id
|
Returns
| DataField —
the corresponding data field, or null if no data field is
found matching the id
|
public function getFieldByName(name:String):DataField
Retrieves a data field by name.
Parameters
| name:String — the data field name
|
Returns
| DataField —
the corresponding data field, or null if no data field is
found matching the name
|
© 2007-2008 Regents of the University of California. Created Sat Jan 24 2009 11:25 AM.