Examples of MemberNode


Examples of fr.esrf.tangoatk.widget.device.tree.MemberNode

  } // end of for ()
    }
   
    @SuppressWarnings("unchecked")
    protected void addDevices(FamilyNode family, java.util.List devices) {
    MemberNode device = null;
    DefaultMutableTreeNode attributes = null;
    IDevice d;
  
   
    for (int i = 0; i < devices.size(); i++) {
        AttributeList scalarList = new AttributeList();
        AttributeList al = new AttributeList();
  
    d = (IDevice)devices.get(i);
    //System.out.println("devicename = " + d.getName());
    List<?> childrenlist = family.getChildren();
    for(int j = 0 ;  j < childrenlist.size() ; j++)
    {
        MemberNode devicelocal = null;
        //System.out.println("childrenlist[" + j + "] = " + childrenlist.get(j).getClass());
        devicelocal = (MemberNode)childrenlist.get(j);
        if(devicelocal.getName().toLowerCase().equals(d.getName()))
            device = devicelocal;
    }
    //device = family.getChild((d.getName()));
    //System.out.println("device :" + device);
    device.setAttributeList(scalarList);
View Full Code Here

Examples of org.olap4j.mdx.MemberNode

* @since Aug 7, 2008
*/
class MdxHelper {

    public static MemberNode makeMemberNode(Member m) {
        return new MemberNode(null, m);
    }
View Full Code Here

Examples of org.olap4j.mdx.MemberNode

    {
        ParseTreeNode node = null;
        try {
            switch (oper) {
            case MEMBER:
                node = new MemberNode(null, member);
                break;
            case SIBLINGS:
                node =
                    new CallNode(
                        null,
                        "Siblings",
                        Syntax.Property,
                        new MemberNode(null, member));
                break;
            case CHILDREN:
                node =
                    new CallNode(
                        null,
                        "Children",
                        Syntax.Property,
                        new MemberNode(null, member));
                break;
            case INCLUDE_CHILDREN:
                node =
                    generateSetCall(
                        new MemberNode(null, member),
                        toOlap4j(member, Selection.Operator.CHILDREN));
                break;
            case DESCENDANTS:
                node =
                    new CallNode(
                        null,
                        "Descendants",
                        Syntax.Function,
                        new MemberNode(null, member));
                break;
            case ANCESTORS:
                node =
                    new CallNode(
                        null,
                        "Ascendants",
                        Syntax.Function,
                        new MemberNode(null, member));
                break;
            default:
                System.out.println("NOT IMPLEMENTED: " + oper);
            }
        } catch (Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.