org.objectweb.speedo.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 getElement(PersistenceManager pm)
           
 java.lang.Object getIndex()
           
 SpeedoAccessor getSpeedoAccessor()
          Retrieves the Speedo accessor associated to this gen class element.
 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
 void unSwizzle()
           
 

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.

getElement

public java.lang.Object getElement(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

getSpeedoAccessor

public SpeedoAccessor getSpeedoAccessor()
Retrieves the Speedo accessor associated to this gen class element.


unSwizzle

public void unSwizzle()