net.sf.opensmus
Class LPropList

java.lang.Object
  extended by net.sf.opensmus.LValue
      extended by net.sf.opensmus.LPropList

public class LPropList
extends LValue

Class representing a Lingo compatible List value (LList for short). Lingo is a trademark of Adobe, Inc. All rights reserved.


Field Summary
 java.util.Vector<LValue> m_list
          Public vector element storing the list members as LValues
 java.util.Vector<LValue> m_proplist
          Public vector element storing the property names as LSymbols
 
Fields inherited from class net.sf.opensmus.LValue
valueType, vt_3dTransform, vt_3dVector, vt_Color, vt_Date, vt_Float, vt_Integer, vt_List, vt_Media, vt_Picture, vt_Point, vt_PropList, vt_Rect, vt_String, vt_Symbol, vt_Void
 
Constructor Summary
LPropList()
          Constructor
 
Method Summary
 boolean addElement(LValue property, LValue elem)
          Adds an LValue element to the list
 int count()
          Returns the number of elements in the list
 void dump()
          Reserved for internal use of OpenSMUS.
 int extractFromBytes(byte[] rawBytes, int offset)
          Reserved for internal use of OpenSMUS.
 byte[] getBytes()
          Reserved for internal use of OpenSMUS.
 LValue getElement(LSymbol prop)
          Fetches an LValue element from the list
 LValue getElementAt(int pos)
          Fetches an LValue element from the list
 LValue getPropAt(int pos)
          Fetches an LValue property name from the list
 java.lang.String toString()
          Base method, returns this LValue as a String.
 
Methods inherited from class net.sf.opensmus.LValue
fromRawBytes, getLValue, getLValue, getLValue, getLValue, getLValue, getType, setType, toBytes, toDouble, toInteger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_proplist

public java.util.Vector<LValue> m_proplist
Public vector element storing the property names as LSymbols


m_list

public java.util.Vector<LValue> m_list
Public vector element storing the list members as LValues

Constructor Detail

LPropList

public LPropList()
Constructor

Method Detail

addElement

public boolean addElement(LValue property,
                          LValue elem)
Adds an LValue element to the list

Parameters:
property - LSymbol with property name
elem - LValue to add
Returns:
boolean

getElementAt

public LValue getElementAt(int pos)
Fetches an LValue element from the list

Parameters:
pos - index of the element to be retrieved
Returns:
LValue

getPropAt

public LValue getPropAt(int pos)
Fetches an LValue property name from the list

Parameters:
pos - index of the property to be retrieved
Returns:
LValue

getElement

public LValue getElement(LSymbol prop)
                  throws PropertyNotFoundException
Fetches an LValue element from the list

Parameters:
prop - LSymbol representing the property name
Returns:
LValue
Throws:
PropertyNotFoundException

count

public int count()
Returns the number of elements in the list


extractFromBytes

public int extractFromBytes(byte[] rawBytes,
                            int offset)
Reserved for internal use of OpenSMUS.

Overrides:
extractFromBytes in class LValue

dump

public void dump()
Reserved for internal use of OpenSMUS.

Overrides:
dump in class LValue

toString

public java.lang.String toString()
Description copied from class: LValue
Base method, returns this LValue as a String. Not guaranteed to be implemented for all value types.

Overrides:
toString in class LValue

getBytes

public byte[] getBytes()
Reserved for internal use of OpenSMUS.

Overrides:
getBytes in class LValue