org.objectweb.jorm.metainfo.api

Interface ClassRef

All Superinterfaces:
MetaObject, Reference, Serializable, TypedElement

public interface ClassRef
extends Reference

A ClassRef is a field which is a reference field to another class. In this case, the name of the referenced class has to be specified, as well as whether it is a shared reference or not; if it is not, it is a dependent class.

Author:
X. Spengler

Method Summary

String
getClassName()
Returns the name of the class ref.
Class
getMOClass()
Returns the Class object which describes the ClassRef entity.

Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject

getParent, setParent

Methods inherited from interface org.objectweb.jorm.metainfo.api.Reference

createRefNameDef, getRefNameDef, getRefNameDef

Methods inherited from interface org.objectweb.jorm.metainfo.api.TypedElement

getName, getType

Method Details

getClassName

public String getClassName()
Returns the name of the class ref.

Returns:
the name of the class reference meta object


getMOClass

public Class getMOClass()
Returns the Class object which describes the ClassRef entity. This object is used as the type of a field.

Returns:
the Class Object contained by the current class ref object