Package com.linkedin.data.element

Examples of com.linkedin.data.element.DataElement.pathAsString()


    @Override
    public void validate(ValidatorContext ctx)
    {
      DataElement element = ctx.dataElement();
      OrderEntry entry = new OrderEntry(element.pathAsString(), _name);
      _orderList.add(entry);
    }
  }

  @Test
View Full Code Here


    {
      int level = current.level();
      s.append(spaces, 0, level);
      if (usePath)
      {
        s.append("path=").append(current.pathAsString());
      }
      else
      {
        s.append("name=").append(current.getName());
      }
View Full Code Here

      DataElement e;
      DataIterator it = Builder.create(o, null, IterationOrder.POST_ORDER).dataIterator();
      List<String> pathsWithSkip = new ArrayList<String>();
      while ((e = it.next()) != null)
      {
        pathsWithSkip.add(e.pathAsString());
        it.skipToSibling();
      }

      it = Builder.create(o, null, IterationOrder.POST_ORDER).dataIterator();
      List<String> pathsWithoutSkip = new ArrayList<String>();
View Full Code Here

      it = Builder.create(o, null, IterationOrder.POST_ORDER).dataIterator();
      List<String> pathsWithoutSkip = new ArrayList<String>();
      while ((e = it.next()) != null)
      {
        pathsWithoutSkip.add(e.pathAsString());
      }

      assertEquals(pathsWithSkip, pathsWithoutSkip);
    }
  }
View Full Code Here

    public List<String> _visitedPaths = new ArrayList<String>();

    public void validate(ValidatorContext ctx)
    {
      DataElement element = ctx.dataElement();
      _visitedPaths.add(element.pathAsString());
    }
  }

  @Test
  public void testPatchFilterValidator() throws IOException
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.