Examples of Node


Examples of org.dom4j.Node

   
    protected void marshalContent(List content)
        throws JiBXException, IOException {
        int size = content.size();
        for (int i = 0; i < size; i++) {
            Node node = (Node)content.get(i);
            switch (node.getNodeType()) {
               
                case Node.CDATA_SECTION_NODE:
                    m_xmlWriter.writeCData(node.getText());
                    break;
               
                case Node.COMMENT_NODE:
                    m_xmlWriter.writeComment(node.getText());
                    break;
               
                case Node.ELEMENT_NODE:
                    marshalElement((Element)node);
                    break;
               
                case Node.ENTITY_REFERENCE_NODE:
                    m_xmlWriter.writeEntityRef(node.getName());
                    break;
               
                case Node.PROCESSING_INSTRUCTION_NODE:
                    m_xmlWriter.writePI(((ProcessingInstruction)node).
                        getTarget(), node.getText());
                    break;
               
                case Node.TEXT_NODE:
                    m_xmlWriter.writeTextContent(node.getText());
                    break;
               
                default:
                    break;
            }

Examples of org.drools.definition.process.Node

    if (toType == null || toType.trim().length() == 0) {
      toType = NodeImpl.CONNECTION_DEFAULT_TYPE;
    }

    NodeContainer nodeContainer = (NodeContainer) parser.getParent();
    Node fromNode = nodeContainer.getNode( new Long(fromId) );
    Node toNode = nodeContainer.getNode( new Long(toId) );

    if ( fromNode == null ) {
      throw new SAXParseException( "Node '" + fromId + "'cannot be found",
                                 parser.getLocator() );
    }

Examples of org.drools.ruleflow.core.Node

        boolean startNodeFound = false;
        boolean endNodeFound = false;
        final Node[] nodes = process.getNodes();
        for ( int i = 0; i < nodes.length; i++ ) {
            final Node node = nodes[i];
            if ( node instanceof StartNode ) {
                final StartNode startNode = (StartNode) node;
                startNodeFound = true;
                if ( startNode.getTo() == null ) {
                    errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.START_NODE_WITHOUT_OUTGOING_NODES ) );

Examples of org.drools.workbench.models.guided.dtree.shared.model.nodes.Node

            }
        }

        //Combine Paths into a single tree.
        for ( GuidedDecisionTreeParserExtendedError ruleParserContent : rulesParserContent ) {
            Node activeModelNode = null;
            boolean error = !ruleParserContent.getMessages().isEmpty();
            for ( int index = 0; !error && index < ruleParserContent.getNodes().size(); index++ ) {
                final Node node = ruleParserContent.getNodes().get( index );
                switch ( index ) {
                    case 0:
                        if ( !( node instanceof TypeNode ) ) {
                            ruleParserContent.getMessages().add( new InvalidRootParserMessage() );
                            error = true;

Examples of org.drools.workflow.core.Node

public class ProcessNodeInstanceFactoryTest extends TestCase {
   
    public void testDefaultEntries() throws Exception {
        RuleBaseConfiguration conf = new RuleBaseConfiguration();
        NodeInstanceFactoryRegistry registry = conf.getProcessNodeInstanceFactoryRegistry();
        Node node = new ActionNode();
        assertEquals( CreateNewNodeFactory.class, registry.getProcessNodeInstanceFactory( node ).getClass() );      
    }

Examples of org.eclipse.dd.di.Node

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case DiPackage.NODE: {
            Node node = (Node) theEObject;
            T result = caseNode(node);
            if (result == null)
                result = caseDiagramElement(node);
            if (result == null)
                result = defaultCase(theEObject);

Examples of org.eclipse.draw2d.graph.Node

        Map<Long, Node> mapping = new HashMap<Long, Node>();
        DirectedGraph graph = createDirectedGraph(mapping);
        DirectedGraphLayout layout = new DirectedGraphLayout();
        layout.visit(graph);
        for (Map.Entry<Long, Node> entry: mapping.entrySet()) {
            Node node = entry.getValue();
            DefaultElementWrapper elementWrapper = (DefaultElementWrapper)
                ((ProcessWrapper) ((GenericModelEditor) editor).getModel()).getElement(entry.getKey() + "");
            elementWrapper.setConstraint(new Rectangle(node.x, node.y, node.width, node.height));
        }
        // TODO: implement changes as a command, so we can support undo

Examples of org.eclipse.gmf.runtime.notation.Node

   * @generated
   */
  public View createView(IAdaptable semanticAdapter, View containerView,
      String semanticHint, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    Node view = (Node) super.createView(semanticAdapter, containerView,
        semanticHint, index, persisted, preferencesHint);
    Location location = (Location) view.getLayoutConstraint();
    IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView
        .getDiagram().getMeasurementUnit());
    location.setX(mapMode.DPtoLP(0));
    location.setY(mapMode.DPtoLP(60));
    return view;

Examples of org.eclipse.jetty.deploy.graph.Node

     * @param existingToNodeName
     * @param insertedNodeName
     */
    public void insertLifeCycleNode(String existingFromNodeName, String existingToNodeName, String insertedNodeName)
    {
        Node fromNode = _lifecycle.getNodeByName(existingFromNodeName);
        Node toNode = _lifecycle.getNodeByName(existingToNodeName);
        Edge edge = new Edge(fromNode,toNode);
        _lifecycle.insertNode(edge,insertedNodeName);
    }

Examples of org.eclipse.jetty.xml.XmlParser.Node

        PreconfigureStandardTestWar.main(new String[]{});
       
        WebDescriptor descriptor = new WebDescriptor(Resource.newResource("./target/test-standard-preconfigured/WEB-INF/quickstart-web.xml"));
        descriptor.setValidating(true);
        descriptor.parse();
        Node node = descriptor.getRoot();
        assertThat(node,Matchers.notNullValue());
       
        System.setProperty("jetty.home", "target");
       
        //war file or dir to start
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.