cancel
Showing results for 
Search instead for 
Did you mean: 

Expalination of modelObject()

lokesh_kamana
Active Contributor
0 Kudos

Hi sdns ,

can anyone expalin the following statement.

wdContext.currentMainElement().modelObject()).get_details();

What is modelobject();

What is the use of this methid?

where it helps?

How is it handfull?

Thanks & Regards,

Lokesh@EDS.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

with model nodes your nodes are mapped onto java classes. So the attribute values of the node, for example attributeA ,will be resolved by calling the corresponding getter in the underlying class. (getAttributeA())

With the modelObject() method, u get a reference to the underlying class. so u can call other methods on it.

So wdContext.currentMainElement().modelObject().get_details() means that the node Main is mapped to a class that has a method get_details().

kind regards.

Edited by: Joren Crauwels on Jan 21, 2008 2:40 PM

Edited by: Joren Crauwels on Jan 21, 2008 2:41 PM