Murl Engine Lua Addon API  Version 1.0 beta
Murl.Resource.IMetaData

An interface providing meta data to a given resource object or pacakge.


Table members

Methods


GetNumberOfKeys()

Get the number of meta data entries present.

Integer GetNumberOfKeys()

Returns
Integer The number of present keys.

GetKeyIndex(key)

Get the index of a meta data entry with a given key name.

Integer GetKeyIndex(String key)

Parameters
keyThe key to find:
Returns
Integer The zero-based index of the key, or -1 if not found.

GetKey(keyIndex)

Get the key string of the meta data entry at a given index.

String GetKey(Integer keyIndex)

Parameters
keyIndexThe index of the key, in the range [0..GetNumberOfKeys()-1].
Returns
String The key string, or null if keyIndex is out of range.

GetValue(keyIndex)

Get the value string of the meta data entry at a given index.

String GetValue(Integer keyIndex)

Parameters
keyIndexThe index of the key, in the range [0..GetNumberOfKeys()-1].
Returns
String The value string, or null if keyIndex is out of range.