Examples of NodeImpl


Examples of org.exoplatform.services.html.parser.NodeImpl

      HTMLNode node = NodePathUtil.lookFor(document.getRoot(), path);
      assertNotNull(node);
      assertEquals(node.getName(), Name.TITLE);

      //Add a Tag to HTMLDocument.
      NodeImpl impl = new NodeImpl("h2 id = \"dds\"".toCharArray(), Name.H2);
      node.addChild(impl);
      assertNotNull(node.getChildrenNode().get(1));
      assertEquals(node.getChildren().get(1).getName(), Name.H2);
      System.out.println("THE NEW NODE-NAME: " + node.getChildrenNode().get(1).getName().toString());
      System.out.println("THE NEW NODE-VALUE: " + new String(node.getChildren().get(1).getValue()));
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.NodeImpl

    /**
     * {@inheritDoc}
     */
    public ScoreNode nextScoreNode() throws IOException {
        if (nodes.hasNext()) {
            NodeImpl n = (NodeImpl) nodes.next();
            return new ScoreNode(n.getData().getIdentifier(), 1.0f);
        } else {
            return null;
        }
    }
View Full Code Here

Examples of org.geotools.xml.impl.NodeImpl

*
* @source $URL$
*/
public class GML2ParsingUtilsTest extends TestCase {
    public void testCRS() throws Exception {
        NodeImpl node = new NodeImpl(null);

        AttributeImpl att = new AttributeImpl(null);
        att.setName("srsName");

        NodeImpl attNode = new NodeImpl(att);
        attNode.setValue(new URI("EPSG:4326"));
        node.addAttribute(attNode);

        CoordinateReferenceSystem crs = GML2ParsingUtils.crs(node);
        assertNotNull(crs);

        attNode.setValue(new URI("http://www.opengis.net/gml/srs/epsg.xml#4326"));
        crs = GML2ParsingUtils.crs(node);
        assertNotNull(crs);
    }
View Full Code Here

Examples of org.hibernate.validator.internal.engine.path.NodeImpl

      List<MetaConstraint<?>> metaConstraintsList) {
    Class<?> clazz = validationContext.getRootBeanClass();
    Object value = validationContext.getRootBean();

    // cast is ok, since we are dealing with engine internal classes
    NodeImpl elem = (NodeImpl) propertyIter.next();
    Object newValue = value;

    BeanMetaData<?> metaData = beanMetaDataManager.getBeanMetaData( clazz );
    PropertyMetaData property = metaData.getMetaDataFor( elem.getName() );

    // use precomputed method list as ReflectionHelper#containsMember is slow
    if ( property == null ) {
      throw log.getInvalidPropertyPathException( elem.getName(), metaData.getBeanClass().getName() );
    }
    else if ( !propertyIter.hasNext() ) {
      metaConstraintsList.addAll( property.getConstraints() );
    }
    else {
      if ( property.isCascading() ) {
        Type type = property.getType();
        newValue = newValue == null ? null : getValue( newValue, validationContext, property );
        if ( elem.isIterable() ) {
          if ( newValue != null && elem.getIndex() != null ) {
            newValue = ReflectionHelper.getIndexedValue( newValue, elem.getIndex() );
          }
          else if ( newValue != null && elem.getKey() != null ) {
            newValue = ReflectionHelper.getMappedValue( newValue, elem.getKey() );
          }
          else if ( newValue != null ) {
            throw log.getPropertyPathMustProvideIndexOrMapKeyException();
          }
          type = ReflectionHelper.getIndexedType( type );
View Full Code Here

Examples of org.jacorb.test.orb.value.NodeImpl

        assertTrue(orb instanceof org.jacorb.orb.ORB);

        ValueServer server = ValueServerHelper.narrow(orb.string_to_object(setup.getServerIOR()));

        String result = server.receive_list(new NodeImpl(1234));
        assertEquals("list of length: 1 -- 1234", result);
    }
View Full Code Here

Examples of org.jbpm.pvm.impl.NodeImpl

  // JDBC - object translation
 
  public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException {
    ExecutionImpl execution = createExecution(owner);
    String nodeName = rs.getString(names[0]);
    NodeImpl node = (NodeImpl) execution.getProcessDefinition().getNode(nodeName);
    execution.setNode(node);
    return execution;
  }
View Full Code Here

Examples of org.jbpm.pvm.impl.NodeImpl

      return null;
    }
   
    ExecutionImpl original = (ExecutionImpl) object;

    NodeImpl node = new NodeImpl();
    node.setName(original.getNode().getName());
   
    ExecutionImpl copy = new ExecutionImpl();
    copy.setNode(node);

    return copy;
View Full Code Here

Examples of org.jbpm.pvm.impl.NodeImpl

    public DestinationReference(TransitionImpl transition, String destinationName) {
      this.transition = transition;
      this.destinationName = destinationName;
    }
    public void resolve() {
      NodeImpl destination = (NodeImpl) processDefinition.findNode(destinationName);
      if (destination==null) {
        throw new PvmException("couldn't find destination node "+destinationName+" for "+transition);
      }
      destination.addIncomingTransition(transition);
      transition.setDestination(destination);
    }
View Full Code Here

Examples of org.jbpm.workflow.core.impl.NodeImpl

        if (nodeAndType != null) {
          throw new IllegalArgumentException("Cannot link incoming connection type more than once: " + type);
        }
      } else {
          if (nodeAndType != null) {
            NodeImpl node = (NodeImpl) nodeAndType.getNode();
            if (node != null) {
              node.validateAddIncomingConnection(nodeAndType.getType(), connection);
            }
          }
      }
    }
View Full Code Here

Examples of org.jbpm.workflow.core.impl.NodeImpl

          super.addIncomingConnection(type, connection);
          CompositeNode.NodeAndType inNode = internalGetLinkedIncomingNode(type);
          if (inNode != null) {
            CompositeNodeStart start = new CompositeNodeStart(connection.getFrom(), type);
            internalAddNode(start);
            NodeImpl node = (NodeImpl) inNode.getNode();
            if (node != null) {
              new ConnectionImpl(
                  start, org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE,
                  inNode.getNode(), inNode.getType());
            }
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.