org.objectweb.jorm.metainfo.api
Interface Reference
- MetaObject, Serializable, TypedElement
- ClassRef, GenClassRef
public interface Reference
Reference interface is the top level of the Reference objects.
The sub-classes are ClassRef and GenClassRef.
- X. Spengler
createRefNameDef
public NameDef createRefNameDef()
Creates a new NameDef object for the current reference class object.
If this NameDef already exists for the current object, it is returned,
in other case, a new NameDef object is created and returned.
- a new object used to describe the name projection for
the current reference class, or an existing one if it
already exists
getRefNameDef
public Collection getRefNameDef()
Returns an iterator on existing NameDef for the current object.
If no NameDef object is defined, an empty iterator is returned.
- an iterator on NameDef object
getRefNameDef
public NameDef getRefNameDef(String mappingName)
Returns a NameDef object from a given mappingName.
If the corresponding NameDef exists, it is returned, in other case, null
is returned.
mappingName
- the name of the mapping
- an existing namedef object if exists, either null