|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The NameDef interface describes the mapping of a reference field, ut can be the PName of a Class. It can be a Field which is an attribute of the class and is a reference; in this case, the reference can be to another Class (ClassObject) or to a GenClass. A NameDef object is composed of ScalarField(s) and/or FieldName(s), or system defined.
Method Summary | |
---|---|
NameRef |
createNameRef(CompositeName cn_Class)
Builds a reference toward a composite name describing the namedef. |
java.lang.String |
getFieldName()
Retrieves the name of the field describing the namedef. |
int |
getFieldNumber()
Returns the number of fields which composed the current object. |
java.lang.String |
getName()
Returns the name of the NameDef object. |
NameRef |
getNameRef()
Retrieves the nameref if the namedef is a composite one. |
boolean |
isFieldName()
Allows to know if the namedef is describe by a single field. |
boolean |
isNameRef()
Allows to know if the namedef is describe by a composite name. |
boolean |
isSystem()
Allows to know if the mapping of the referenced field is defined by another system (could be defined by Versant system for instance). |
java.util.Iterator |
iterateField()
Returns an iterator on all fields (HiddenFields and FieldRef). |
void |
setFieldName(java.lang.String fieldname)
Allows to set the fieldname describing the namedef single field. |
void |
setName(java.lang.String name)
Sets the name of the NameDef object. |
void |
setSystem(boolean system)
Allows to set if the current NameDef is system defined (defined outside jorm) or not. |
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject |
---|
getParent, setParent |
Method Detail |
public boolean isNameRef()
public boolean isFieldName()
public NameRef createNameRef(CompositeName cn_Class)
cn_Class
- the meta object representing the composite name.
public NameRef getNameRef()
public java.lang.String getFieldName()
public void setFieldName(java.lang.String fieldname)
fieldname
- the fieldnamepublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of the NameDef object.public boolean isSystem()
public void setSystem(boolean system)
system
- true, if the mapping is defined by another system, else
false, if the mapping is defined inside JORM (by
ScalarField(s) and FieldName(s)).public int getFieldNumber()
public java.util.Iterator iterateField()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |