Package flex2.compiler.mxml.rep

Examples of flex2.compiler.mxml.rep.Model


        standardDefs.set(defs);
    }

    public static StandardDefs getStandardDefs()
    {
        StandardDefs defs = standardDefs.get();
        if (defs == null)
        {
            defs = StandardDefs.getStandardDefs("halo");
            setStandardDefs(defs);
        }
View Full Code Here


      return;
    }

        Type type = typeTable.getType(node.getNamespace(), node.getLocalPart());

    component = new Model(document, type, node.beginLine);
        registerModel(node, component, true);

    processAttributes(node, type);

        //  create <Object/> VO for RemoteObject.operations
        ops = new Model(document, typeTable.objectType, component, component.getXmlLineNumber());
        ops.setParentIndex(OPERATIONS);
        component.setProperty(OPERATIONS, ops);

    processChildren(node, type);
  }
View Full Code Here

  public void addOperation(Model ops, MethodNode node)
    {
    Type type = typeTable.getType(node.getNamespace(), standardDefs.getConvertedTagName(node));

    //  push parent tag VO, child tag handler
    Model ro = component;
    ComponentChildNodeHandler roChildNodeHandler = childNodeHandler;

    //  install our own
    component = new Model(document, type, ops, node.beginLine);
    childNodeHandler = new MethodChildNodeHandler(typeTable);

    //  process child tag: first, add new VO as a property on the parent RemoteObject
    String name = (String)node.getAttributeValue(NAME);
    ops.setProperty(name, component);
View Full Code Here

  public void addArguments(Model op, ArgumentsNode node)
    {
        ServiceRequestBuilder builder = new ServiceRequestBuilder(unit, typeTable, mxmlConfiguration, document, ARGUMENTS);
        node.analyze(builder);

    Model arguments = builder.graph;
        op.setProperty(ARGUMENTS, arguments);
        arguments.setParentIndex(ARGUMENTS);
        arguments.setParent(op);

        Array argNames = new Array(document, op, node.beginLine, typeTable.objectType);
        op.setProperty(ARGUMENT_NAMES, argNames);
        argNames.setParentIndex(ARGUMENT_NAMES);

        for (Iterator propNames = arguments.getProperties().keySet().iterator(); propNames.hasNext();)
        {
            String s = (String)propNames.next();
            argNames.addEntry(s, op.getXmlLineNumber());
        }
    }
View Full Code Here

        PropertyWatcher result = (PropertyWatcher) rootWatchers.get(key);

        if (result == null)
        {
            Model destination = currentBindingExpression.getDestination();

            if ((destination != null) && (destination.getRepeaterLevel() > 1))
            {
                result = new RepeaterComponentWatcher(currentWatcherId++, propertyName, destination.getRepeaterLevel());
            }
            else
            {
                result = new PropertyWatcher(currentWatcherId++, propertyName);
            }
View Full Code Here

                ArgumentListNode childDescriptorsArgumentList = null;

                while (vcIter.hasNext())
                {
                    VisualChildInitializer init = (VisualChildInitializer) vcIter.next();
                    Model child = (MovieClip)init.getValue();
                    if (child.isDescriptorInit())
                    {
                        MemberExpressionNode memberExpression =
                            addDescriptorInitializerFragments(nodeFactory, configNamespaces, generateDocComments,
                                                              (MovieClip) init.getValue(), null, true);
                        childDescriptorsArgumentList = nodeFactory.argumentList(childDescriptorsArgumentList,
View Full Code Here

    }

        //  create WebService VO, register id with document
        Type type = typeTable.getType(node.getNamespace(), node.getLocalPart());

        component = new Model(document, type, node.beginLine);
        registerModel(node, component, true);

    processAttributes(node, type);

    //  create <Object/> VO for WebService.operations
        ops = new Model(document, typeTable.objectType, component, component.getXmlLineNumber());
        ops.setParentIndex(OPERATIONS);
        component.setProperty(OPERATIONS, ops);

    processChildren(node, type);
  }
View Full Code Here

  public void addOperation(Model ops, OperationNode node)
  {
    Type type = typeTable.getType(node.getNamespace(), WEB_SERVICE_OPERATION);

    //  push parent tag VO, child tag handler
    Model ws = component;
    ComponentChildNodeHandler wsChildNodeHandler = childNodeHandler;

    //  install our own
    component = new Model(document, type, ops, node.beginLine);
    childNodeHandler = new RequestChildNodeHandler(typeTable);

    //  process child tag: first, add new VO as a property on the parent WebService
    String name = (String)node.getAttributeValue(NAME);
        ops.setProperty(name, component);
View Full Code Here

  /**
   *
   */
  public void addRequest(Model op, Node node)
    {
        Model request;

        if (node instanceof XMLNode)
        {
            XMLBuilder builder = new XMLBuilder(unit, typeTable, mxmlConfiguration, document, op);
            node.analyze(builder);
            request = builder.xml;
        }
        else
        {
            ServiceRequestBuilder builder = new ServiceRequestBuilder(unit, typeTable, mxmlConfiguration, document, REQUEST);
            node.analyze(builder);
            request = builder.graph;

            /*
            Array argNames = new Array(typeTable, op);
            argNames.setXmlLineNumber(node.beginLine);
            op.setProperty("argumentNames", argNames);
            argNames.setParentIndex("argumentNames");

            for (Iterator propNames = request.orderedPropertyNames(); propNames.hasNext();)
            {
                String s = (String)propNames.next();
                argNames.addEntry(s);
            }
            */
        }

        op.setProperty(REQUEST, request);
        request.setParentIndex(REQUEST);
        request.setParent(op);
    }
View Full Code Here

                // Generate each child descriptor unless the child as explicitly filtered out.
                boolean isFirst = true;
                while (vcIter.hasNext())
                {
                    VisualChildInitializer init = (VisualChildInitializer)vcIter.next();
                    Model child = (MovieClip)init.getValue();
                    if (child.isDescriptorInit())
                    {
                        if (!isFirst)
                        {
                            list.add(indent, ",", 0);
                        }
View Full Code Here

TOP

Related Classes of flex2.compiler.mxml.rep.Model

Copyright © 2018 www.massapicom. 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.