org.objectweb.jorm.api
Interface PClassMappingCtrl


public interface PClassMappingCtrl

Author:
P. Dechamboux

Method Summary
 void setClassPNameCoder(PNameCoder pnc)
          It assigns the PNameCoder to use for the class.
 void setGenClassMapping(PClassMapping pcm)
          It assigns the GenClassMapping used to manage the reference hold by a field whose type is a JORM gen class.
 void setGenClassMapping(java.lang.String fn, PClassMapping pcm)
          It assigns the GenClassMapping used to manage the reference hold by a field whose type is a JORM class.
 void setPNameCoder(PNameCoder pnc)
          It assigns the PNameCoder used to manage the references hold by a generic class instance whose mapping is described by this PClassMapping.
 void setPNameCoder(java.lang.String fn, PNameCoder pnc)
          It assigns the PNameCoder used to manage the reference hold by a field whose type is a JORM class.
 void setProjectName(java.lang.String projectname)
          Assignes the project name to a PClassMapping.
 

Method Detail

setPNameCoder

public void setPNameCoder(PNameCoder pnc)
                   throws PException,
                          java.lang.UnsupportedOperationException
It assigns the PNameCoder used to manage the references hold by a generic class instance whose mapping is described by this PClassMapping. It should verify that the name structure for this reference is supported by the corresponding naming context.

Parameters:
pnc - The PNameCoder to be associated to this generic class PClassMapping for managing its reference elements.
Throws:
PExceptionTyping - It is raised when the structure of the the names that reference the DSI stored within the generic class instance is not supported by this naming context.
java.lang.UnsupportedOperationException - It is raised when this PClassMapping does not map a generic class instance, or when the elements of this generic class instance are not references.
PException

setPNameCoder

public void setPNameCoder(java.lang.String fn,
                          PNameCoder pnc)
                   throws PException,
                          java.lang.UnsupportedOperationException
It assigns the PNameCoder used to manage the reference hold by a field whose type is a JORM class. It should verify that the name structure for this reference is supported by the corresponding naming context.

Parameters:
fn - The name of the involved field.
pnc - The PNameCoder to be associated to this field for managing the reference it may hold.
Throws:
PExceptionTyping - It is raised when the structure of the the names that reference the DSI stored within the generic class instance is not supported by this naming context.
java.lang.UnsupportedOperationException - It is raised when no naming context is associated to the corresponding field.
PException

setClassPNameCoder

public void setClassPNameCoder(PNameCoder pnc)
                        throws PException
It assigns the PNameCoder to use for the class. This PNamingContext manages also the sub classes.

Throws:
PException

setGenClassMapping

public void setGenClassMapping(PClassMapping pcm)
                        throws java.lang.UnsupportedOperationException
It assigns the GenClassMapping used to manage the reference hold by a field whose type is a JORM gen class.

Throws:
java.lang.UnsupportedOperationException

setGenClassMapping

public void setGenClassMapping(java.lang.String fn,
                               PClassMapping pcm)
                        throws java.lang.UnsupportedOperationException
It assigns the GenClassMapping used to manage the reference hold by a field whose type is a JORM class.

Throws:
java.lang.UnsupportedOperationException

setProjectName

public void setProjectName(java.lang.String projectname)
Assignes the project name to a PClassMapping.

Parameters:
projectname - to be assigned