|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.metainfo.lib.BasicMetaObject
org.objectweb.jorm.metainfo.lib.BasicClassRef
BasicClassRef defines a reference to a class which is class field. This object is created by the Class object to define its fields.
Field Summary |
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject |
debug, logger, loggerFactory, parent |
Constructor Summary | |
BasicClassRef(java.lang.String fieldName,
Class currentClass,
MetaObject parent)
Builds a new BasicClassRef object. |
Method Summary | |
int |
compareTo(java.lang.Object o)
|
NameDef |
createRefNameDef()
Creates a new NameDef object for the current reference class object. |
protected java.util.Collection |
getChildren()
|
java.lang.String |
getClassName()
Returns the name of the class ref. |
Class |
getMOClass()
Returns the Class object which describes the ClassRef entity. |
java.lang.String |
getName()
Returns the name of the current typed element. |
java.util.Collection |
getRefNameDef()
Returns an iterator on existing NameDef for the current Class. |
NameDef |
getRefNameDef(java.lang.String name)
Returns a NameDef object. |
PType |
getType()
Allows to know the type of the field. |
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject |
getLogger, getLoggerFactory, getManager, getParent, setLogger, setLoggerFactory, setLoggingOnChild, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject |
getParent, setParent |
Constructor Detail |
public BasicClassRef(java.lang.String fieldName, Class currentClass, MetaObject parent)
fieldName
- the string representation of the field namecurrentClass
- the reference to the classparent
- the parent of the current objectMethod Detail |
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public Class getMOClass()
getMOClass
in interface ClassRef
public java.lang.String getClassName()
getClassName
in interface ClassRef
public java.lang.String getName()
getName
in interface TypedElement
public PType getType()
getType
in interface TypedElement
public NameDef createRefNameDef()
createRefNameDef
in interface Reference
public NameDef getRefNameDef(java.lang.String name)
getRefNameDef
in interface Reference
name
- the name of the NameDef object.
public java.util.Collection getRefNameDef()
getRefNameDef
in interface Reference
protected java.util.Collection getChildren()
getChildren
in class BasicMetaObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |