Skip to Content

Expalination of modelObject()

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 01:38 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.