Package org.exoplatform.services.html.path.NodePath

Examples of org.exoplatform.services.html.path.NodePath.Index


            count++;
            if (ele == element)
               break;
         }
      }
      return new Index(element.getName(), count);
   }
View Full Code Here


         throw new Exception(name + " is invalid ");
      if (squareBracketStart > -1 && squareBracketEnd < 0)
         throw new Exception(name + " is invalid ");
      if (squareBracketStart < 0 && squareBracketEnd < 0)
      {
         return new Index(Name.valueOf(name.toUpperCase()), 0);
      }
      String sIDX = name.substring(squareBracketStart + 1, squareBracketEnd).trim();
      name = name.substring(0, squareBracketStart);
      idx = Integer.parseInt(sIDX);
      if (idx < 0)
         throw new IndexOutOfBoundsException();
      return new Index(Name.valueOf(name.toUpperCase()), idx);
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.html.path.NodePath.Index

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.