org.objectweb.speedo.runtime.genclass
Interface GenClassElement

All Known Implementing Classes:
CollectionElem

public interface GenClassElement

Represents a element of a gen class. It matches to a reference element or a primitive element.

Author:
S.Chassande-Barrioz

Method Summary
 java.lang.Object getElement()
           
 java.lang.Object getIndex()
           
 java.lang.Object getRefElement(javax.jdo.PersistenceManager pm)
           
 void setElement(java.lang.Object element)
          Assignes the element of the gen class.
 void setIndex(java.lang.Object index)
          Assignes the index of the element of the gen class.
 void setStatus(byte s)
          Assignes the jorm status of the PIndexedElement
 

Method Detail

getIndex

public java.lang.Object getIndex()
Returns:
the index of this gen class element, possibly wrapped in an object.

setIndex

public void setIndex(java.lang.Object index)
Assignes the index of the element of the gen class. It is a user object.
Parameters:
index - to add, it cannot be null.

getElement

public java.lang.Object getElement()
Returns:
the element of the gen class. It is a user object.

setElement

public void setElement(java.lang.Object element)
Assignes the element of the gen class. It is a user object.
Parameters:
element - to add, it cannot be null.

getRefElement

public java.lang.Object getRefElement(javax.jdo.PersistenceManager pm)
Parameters:
pm - is the persistence manager which permits to resolve the PName into a java reference.
Returns:
the element of the gen class. The element is a reference (SpeedoProxy).

setStatus

public void setStatus(byte s)
Assignes the jorm status of the PIndexedElement
Parameters:
s - the new status