com.vm.or
Interface ORObject

All Known Implementing Classes:
MIAnything

public interface ORObject

This class provides basic methods to access Anythings and Things.


Method Summary
 java.lang.String dump(java.lang.String i_indent, java.lang.String i_linefeed, int i_count, int i_type)
          Dumps Anything/Thing to string
 int getCount()
          Returns number of properties of given Anything/Thing
 MIList getList(java.lang.String i_name)
          Returns list presentating property by name if property is list of Things
 java.lang.String getName()
          Returns name of given Thing (if thing assumes name presense)
 java.lang.String getName(int i_number)
          Returns name of property by given number (0<=number
 java.lang.String getQuery()
          Returns ORL query to be used in order to access given Thing
 java.lang.String getString(java.lang.String i_name)
          Returns string presentation of property by name if property is not Thing or list
 MIThing getThing(java.lang.String i_name)
          Returns Thing presentation of property by name if property is Thing but not a list of Things
 int getType(java.lang.String i_name)
          Returns bitmask of property type.
 boolean load(MIWorld i_world, MIStream i_stream)
          Loads Anything/Thing from into Stream into World
 boolean setString(java.lang.String i_name, java.lang.String i_string)
          Assigns string value to property by name if property is not Thing or list
 boolean setThing(java.lang.String i_name, MIThing i_thing)
          Assigns Thing value to property by name if property Thing or list.
 

Method Detail

getType

public int getType(java.lang.String i_name)
Returns bitmask of property type. Possible values are IS_VALUE, IS_LINK, IS_LINK|IS_LIST

getString

public java.lang.String getString(java.lang.String i_name)
Returns string presentation of property by name if property is not Thing or list

getThing

public MIThing getThing(java.lang.String i_name)
Returns Thing presentation of property by name if property is Thing but not a list of Things

getList

public MIList getList(java.lang.String i_name)
Returns list presentating property by name if property is list of Things

setString

public boolean setString(java.lang.String i_name,
                         java.lang.String i_string)
Assigns string value to property by name if property is not Thing or list

setThing

public boolean setThing(java.lang.String i_name,
                        MIThing i_thing)
Assigns Thing value to property by name if property Thing or list. In case of list, it adds input Thing to list of Things.

load

public boolean load(MIWorld i_world,
                    MIStream i_stream)
Loads Anything/Thing from into Stream into World

getCount

public int getCount()
Returns number of properties of given Anything/Thing

getName

public java.lang.String getName(int i_number)
Returns name of property by given number (0<=number

getName

public java.lang.String getName()
Returns name of given Thing (if thing assumes name presense)

getQuery

public java.lang.String getQuery()
Returns ORL query to be used in order to access given Thing

dump

public java.lang.String dump(java.lang.String i_indent,
                             java.lang.String i_linefeed,
                             int i_count,
                             int i_type)
Dumps Anything/Thing to string