Package org.apache.commons.jxpath

Examples of org.apache.commons.jxpath.Pointer.asPath()


    while (params.hasNext())
    {
      Pointer pointer = params.next();
      //JSONObject param = (JSONObject) pointer.getNode();
      String paramName = pointer.asPath().replaceAll(".*name='(.*?)'.*", "$1");
      String placement = ((String) conn.getValue(pointer.asPath() + "/placement", String.class)).toLowerCase();

      if (placement.equals("attrib"))
      {
        if (paramName.equals("id"))
        {
View Full Code Here


    @SuppressWarnings("unchecked")
    Iterator<Pointer> params = conn.iteratePointers("*");
    while (params.hasNext())
    {
      Pointer pointer = params.next();
      String paramName = pointer.asPath().replaceAll(".*name='(.*?)'.*", "$1");
      String placement = ((String) conn.getValue(pointer.asPath() + "/placement", String.class)).toLowerCase();

      if (placement.equals("attrib"))
      {
        if (paramName.equals("id") || paramName.equals("connection"))
View Full Code Here

    Iterator<Pointer> params = conn.iteratePointers("*");
    while (params.hasNext())
    {
      Pointer pointer = params.next();
      String paramName = pointer.asPath().replaceAll(".*name='(.*?)'.*", "$1");
      String placement = ((String) conn.getValue(pointer.asPath() + "/placement", String.class)).toLowerCase();

      if (placement.equals("attrib"))
      {
        if (paramName.equals("id") || paramName.equals("connection"))
        {
View Full Code Here

                    Pointer newRowContextPointer = repeaterContext.createPath(
                            this.rowPathForInsert + "[" + indexCount + "]");
                    JXPathContext newRowContext =
                        repeaterContext.getRelativeContext(newRowContextPointer);
                    if (getLogger().isDebugEnabled()) {
                        getLogger().debug("inserted row at " + newRowContextPointer.asPath());
                    }
                    //    + rebind to children for update
                    this.rowBinding.saveFormToModel(thisRow, newRowContext);
                    getLogger().debug("bound new row");
                    indexCount++;
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.