Skip to Content
author's profile photo Former Member
Former Member

webdynpro

define singleton, cardinality?

give examples

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 06:28 AM

    Hi,

    The independent nodes are Singleton Nodes.

    Using this property , Saves memory and efficient.

    Cardinality means the range of values that a ValueNode can have...

    Regards

    LakshmiNarayana

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 06:32 AM

    You can find the examples in Help of NWDS

    search for "singleton" and "cardinality"

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 06:36 AM

    Hi Santosh

    Cardinality

    -


    Any node or attribute that has the context root node as its immediate parent, is known as an independent node or attribute.

    Any node or attribute that has some other node as its immediate parent, is known as a dependent node or attribute.

    All context nodes are collections.

    A node collection is composed of elements, where an element is an aggregation of the node’s immediate children (attributes and/or other nodes).

    The cardinality property controls the number of elements a node collection may hold at runtime.

    Every context node has a property called Cardinality. This property is composed of two values that

    taken together, describe the maximum and minimum number of elements the node collection may hold

    at runtime.

    Cardinality Minimum: 0 or 1

    Cardinality Maximum: 1 or n

    Therefore, there are four possible cardinality values (specified as <Min>..<Max>)

    0..1 Zero or one elements permitted

    0..n Zero or more elements permitted

    1..1 One and only one element permitted

    1..n One or more elements permitted

    Singleton

    -


    All independent nodes are forced to be singletons. This is because the context root node has one and only one element.

    Singleton is boolean

    TRUE : One instance will be created for all te nodes

    FALSE : Every Element in the parent node collection,there will be a distinct instance of the child node.

    Why Singleton

    -Efficiency

    -Less Memory

    -Lazy Data Access(Creates instance only when needed,till then it will remain unprocessed)

    Best Regards

    Chaitanya.A

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 06:54 AM

    Hi Santhosh,

    Check this thread. i have explanined it there

    webdynpro

    regards

    Sumit

    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.