Examples of Path

This class simplifies working with paths and using a Path is often more efficient that processing and manipulating the equivalent String. This class can easily {@link #iterator() iterate} over the segments, returnthe {@link #size() number of segments}, {@link #compareTo(Path) compare} with other paths, {@link #resolve(Path) resolve}relative paths, return the {@link #getParent() ancestor (or parent)}, determine whether one path is an {@link #isAncestorOf(Path) ancestor} or {@link #isDecendantOf(Path) decendent} of another path, and{@link #getCommonAncestor(Path) finding a common ancestor}.

  • org.jboss.jca.common.api.metadata.ra.Path
    @author Stefano Maestri
  • org.jboss.jca.common.metadata.ra.ra16.Path
    @author Stefano Maestri
  • org.jostraca.tree.path.Path
  • org.jrest4guice.rest.annotations.Path
  • org.kie.commons.java.nio.file.Path
  • org.mantikhor.llapi.Path
    kipedia.org/wiki/Path_%28graph_theory%29'>a Path in Graph theory, but is different in one specific respect: a Mantikhor path is expressed in terms of properties, arc-node pairs considered as a unit. In graph theory, the definition is made in terms of the nodes a path visits, and the arc is deemphasized except as an access coduit to the node. A Mantikhor path is restricted to the set of paths: Paths are used to optimize and formalize the process of graph analysis. In general, a collection of paths is meaningful only within the context of a single graph. When implementing Comparable, the natural ordering of Paths is:
  • org.meshcms.util.Path
    An abstract representation of a file path. The root of the path is undefined, and the path can be relative (i.e. can start with '..'). Example of paths are: A Path can be created from any object. When you call a constructor, the path is initialized as empty, then the objects passed to the constructor are added to it. When all objects have been added, the path is simplified by removing redundant elements. For example, "home/user/../otheruser" is reduced to "home/otheruser". After the constructor returns, the Path object is immutable. When you call a method to modify it (like one of the add() methods), it returns a new Path that is the result of the requested operation. The objects are added as follows: @author Luciano Vernaschi
  • org.modeshape.jcr.value.Path
    rg/en/jsr/detail?id=283">JSR-283 by converting the reserved characters (namely '*', '/', ':', '[', ']' and '|') to their unicode equivalent.
  • {@link #URL_ENCODER UrlEncoder} - an encoder and decoder that is useful for converting text to be used within a URL, asdefined by Section 2.3 of RFC 2396. This encoder does encode many characters (including '`', '@', '#', '$', '^', '&', '{', '[', '}', ']', '|', ':', ';', '\', '"', '<', ',', '>', '?', '/', and ' '), while others are not encoded (including '-', '_', '.', '!', '~', '*', '\', ''', '(', and ')'). Note that only the '*' character is the only character reserved by JSR-283 that is not encoded by the URL encoder.
  • {@link #NO_OP_ENCODER NoOpEncoder} - an {@link TextEncoder encoder} implementation that does nothing.
  • This class simplifies working with paths and using a Path is often more efficient that processing and manipulating the equivalent String. This class can easily {@link #iterator() iterate} over the segments, returnthe {@link #size() number of segments}, {@link #compareTo(Path) compare} with other paths, {@link #resolve(Path) resolve}relative paths, return the {@link #getParent() ancestor (or parent)}, determine whether one path is an {@link #isAncestorOf(Path) ancestor} or {@link #isDescendantOf(Path) decendent} of another path, and{@link #getCommonAncestor(Path) finding a common ancestor}.

  • org.moparscape.msc.gs.model.Path
  • org.neo4j.graphdb.Path
    Represents a path in the graph. A path starts with a node followed by pairs of {@link Relationship} and {@link Node} objects. The shortest pathis of length 0. Such a path contains only one node and no relationships. During a traversal {@link Path} instances are emitted where the currentposition of the traverser is represented by each such path. The current node in such a traversal is reached via {@link Path#endNode()}.
  • org.newdawn.slick.geom.Path
    A shape built from lines and curves. Hole support is present but restricted. @author kevin
  • org.nuxeo.common.utils.Path
  • org.patika.mada.util.Path
    @author Ozgun BaburCopyright: Bilkent Center for Bioinformatics, 2007 - present
  • org.pdfclown.documents.contents.objects.Path
    fanochizzolini.it) @since 0.0.7 @version 0.1.0
  • org.rundeck.storage.api.Path
    Address within a tree
  • org.simpleframework.http.Path
    The Path represents the path part of a URI. This provides the various components of the URI path to the user. The normalization of the path is the conversion of the path given into it's actual path by removing the references to the parent directories and to the current dir.

    If the path that this represents is /usr/bin/../etc/./README then the actual path, normalized, is /usr/etc/README. Once the path has been normalized it is possible to acquire the segments as an array of strings, which allows simple manipulation of the path. @author Niall Gallagher @see org.simpleframework.http.parse.PathParser

  • org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexResolver.CycleGuard.Path
  • org.springframework.data.rest.core.Path
    Simple value object to build up (URI) paths. Allows easy concatenation of {@link String}s and will take care of removal of whitespace and reducing slashes to single ones. @author Oliver Gierke
  • org.sugarj.common.path.Path
    @author Sebastian Erdweg
  • org.tmatesoft.hg.util.Path
    Identify repository files (not String nor io.File). Convenient for pattern matching. Memory-friendly. @author Artem Tikhomirov @author TMate Software Ltd.
  • org.uberfire.backend.vfs.Path
  • org.uberfire.java.nio.file.Path
  • org.uiautomation.ios.communication.Path
  • org.vaadin.gwtgraphics.client.shape.Path
    Path represents a path consisting of pen movement commands. Currently, moveTo, lineTo and close commands are supported. The moveTo and lineTo commands support both relative and absolute coordinates.

    The code below creates a path drawing a 100 x 100 pixels rectangle at the position (50, 50):

     Path path = new Path(50, 50); path.lineRelativelyTo(100, 0); path.lineRelativelyTo(0, 100); path.lineRelativelyTo(-100, 0); path.close(); 
    This rectangle is modified as a triangle with the following code:
     path.setStep(2, new LineTo(true, -50, 100)); path.removeStep(3); 
    @author Henri Kerola / IT Mill Ltd
  • org.xilaew.atg.model.testCaseGraphRuntime.Path
    A representation of the model object 'Path'.

    The following features are supported:

    @see org.xilaew.atg.model.testCaseGraphRuntime.TestCaseGraphRuntimePackage#getPath() @model @generated
  • org.zkoss.canvas.Path
    @author simon
  • pivot.collections.Sequence.Tree.Path
  • scala.tools.nsc.io.Path
  • simtools.diagram.gate.Path
    A path computes the way between 2 ends. A path has at least one segment. @author zxpletran007

  • Examples of com.thoughtworks.xstream.io.path.Path

        public void convert(final Object item, final Converter converter) {
            if (getMapper().isImmutableValueType(item.getClass())) {
                // strings, ints, dates, etc... don't bother using references.
                converter.marshal(item, writer, this);
            } else {
                final Path currentPath = pathTracker.getPath();
                final Id<R> existingReference = references.lookupId(item);
                if (existingReference != null && existingReference.getPath() != currentPath) {
                    final String attributeName = getMapper().aliasForSystemAttribute("reference");
                    if (attributeName != null) {
                        writer.addAttribute(attributeName, createReference(currentPath, existingReference.getItem()));
                    }
                } else {
                    final R newReferenceKey = existingReference == null
                        ? createReferenceKey(currentPath, item)
                        : existingReference.getItem();
                    if (lastPath == null || !currentPath.isAncestor(lastPath)) {
                        fireValidReference(newReferenceKey);
                        lastPath = currentPath;
                        references.associateId(item, new Id<R>(newReferenceKey, currentPath));
                    }
                    converter.marshal(item, writer, new ReferencingMarshallingContext<R>() {
    View Full Code Here

    Examples of com.threerings.media.util.Path

                cs.setRenderOrder(getHighestBoardLayer() + 1 + ii);
                cs.setLocation(src.x, src.y);
                addSprite(cs);

                // prepend an initial delay to all cards after the first
                Path path;
                long pathDuration;
                LinePath flight = new LinePath(dest, flightDuration);
                if (ii > 0) {
                    long delayDuration = cardDelay * ii;
                    LinePath delay = new LinePath(src, delayDuration);
    View Full Code Here

    Examples of com.tinkerpop.gremlin.process.Path

            final Traversal<Vertex, Path> traversal = get_g_v1_out_name_injectXdanielX_asXaX_mapXlengthX_path(convertToVertexId("marko"));
            printTraversalForm(traversal);
            int counter = 0;
            while (traversal.hasNext()) {
                counter++;
                final Path path = traversal.next();
                if (path.get("a").equals("daniel")) {
                    assertEquals(2, path.size());
                    assertEquals(6, (int) path.get(1));
                } else {
                    assertEquals(4, path.size());
                    assertEquals(path.<String>get("a").length(), (int) path.get(3));
                }
            }
            assertEquals(4, counter);
        }
    View Full Code Here

    Examples of com.vercer.engine.persist.Path

        Set<Property> merged = new MergeSet<Property>(map.size());
        for (Object key: keys)
        {
          Object value = map.get(key);
          String keyString = converter.convert(key, String.class);
          Path childPath = Path.builder(path).field(keyString).build();
          Set<Property> properties = chained.typesafeToProperties(value, childPath, indexed);
         
          if (properties == null)
          {
            // we could not handle a value so pass the whole map down the chain
    View Full Code Here

    Examples of com.volantis.mcs.model.path.Path

            }
            if (identifier == null) {
                throw new IllegalArgumentException("identifier cannot be null");
            }

            Path path = context.getCurrentPath();

            Definition definition = (Definition) definitions.get(identifier);
            if (definition == null) {
                definition = new Definition(source, path);
                definitions.put(identifier, definition);
            } else if (definition.getPath().getAsString().equals(path.getAsString())) {
                // Redefining the same object twice so just ignore it.
            } else {
                // Duplicate definitions found. If the definition is not already
                // marked as duplicated then mark it and report it as a duplicate.
                if (!definition.isDuplicated()) {
                    SourceLocation firstSource = definition.getSource();
                    Path firstPath = definition.getPath();

                    reportDuplicate(context, firstSource, firstPath, identifier);
                    definition.setDuplicated(true);
                }
    View Full Code Here

    Examples of com.volantis.synergetics.path.Path

            throws ServletException, IOException {

            String pathInfo = request.getPathInfo();

            if (null != pathInfo) {
                Path path = Path.parse(pathInfo);
                if (path.getNumberOfFragments() > 0) {
                    String externalID = path.getFragment(path.getNumberOfFragments()-1);
                    externalID = externalID.replaceAll("-", "/");
                  
                    if (LOGGER.isDebugEnabled()) {
                        LOGGER.debug("Servicing request " + pathInfo);
                    }
    View Full Code Here

    Examples of edu.byu.ece.rapidSmith.timing.Path

            }
            else{
              subModels[0].removeRows(0, subModels[0].rowCount());
              subViews[0].setSortingEnabled(true);
              subViews[0].sortByColumn(0, Qt.SortOrder.AscendingOrder);
              Path pd = (Path)((DesignItem)model.itemFromIndex(proxyModel.mapToSource(index))).refObject;
              for(PathElement pe : pd.getMaxDataPath()){
                if(pe.getClass().equals(LogicPathElement.class)){
                  LogicPathElement lpe = (LogicPathElement) pe;
                  ArrayList<QStandardItem> items = new ArrayList<QStandardItem>();
                  items.add(createNewHyperlinkItem(lpe.getInstance().getPrimitiveSiteName() + "." + (lpe.getPin()==null ? "<null>":lpe.getPin().getName()), pd));
                  items.add(new DesignItem(lpe.getType().toString(), pd));
                  items.add(new DesignItem(String.format("%5.3f", lpe.getDelay(), pd)));
                  items.add(createNewHyperlinkItem(lpe.getInstance().getName(), pd));
                  subModels[0].appendRow(items);
                }
                else{
                  RoutingPathElement rpe = (RoutingPathElement) pe;
                  ArrayList<QStandardItem> items = new ArrayList<QStandardItem>();
                  items.add(createNewHyperlinkItem(rpe.getPin().getInstance().getPrimitiveSiteName() + "." + rpe.getPin().getName(), pd));
                  items.add(new DesignItem(rpe.getType().toString() + " (fanout=" + rpe.getNet().getFanOut() + ")", pd));
                  items.add(new DesignItem(String.format("%5.3f", rpe.getDelay(), pd)));
                  items.add(createNewHyperlinkItem(rpe.getNet().getName(), pd));
                  subModels[0].appendRow(items);
                }
              }         
            }
            break;
          case OFFSETS:
            if(index.model().objectName().equals("Max")){
              if(index.column() == 0){
                Tile t = explorer.device.getPrimitiveSite(data.substring(0, data.indexOf('.'))).getTile();
                switchToTileTab(t.getName());
              }
              else if(index.column() == 3){
                if(((String)index.model().data(index.row(), 1)).startsWith("NET")){
                  switchToNetTab(data);
                }
                else{
                  switchToInstanceTab(data);
                }
              }
            }
            else if(index.model().objectName().equals("Min")){
              if(index.column() == 0){
                Tile t = explorer.device.getPrimitiveSite(data.substring(0, data.indexOf('.'))).getTile();
                switchToTileTab(t.getName());
              }
              else if(index.column() == 3){
                if(((String)index.model().data(index.row(), 1)).startsWith("NET")){
                  switchToNetTab(data);
                }
                else{
                  switchToInstanceTab(data);
                }
              }
            }
            else{
              subModels[0].removeRows(0, subModels[0].rowCount());
              subModels[1].removeRows(0, subModels[1].rowCount());
              subViews[0].setSortingEnabled(true);
              subViews[0].sortByColumn(0, Qt.SortOrder.AscendingOrder);
              subViews[1].setSortingEnabled(true);
              subViews[1].sortByColumn(0, Qt.SortOrder.AscendingOrder);
              Path pd2 = (Path)((DesignItem)model.itemFromIndex(proxyModel.mapToSource(index))).refObject;
              for(PathElement pe : pd2.getMaxDataPath()){
                if(pe.getClass().equals(LogicPathElement.class)){
                  LogicPathElement lpe = (LogicPathElement) pe;
                  ArrayList<QStandardItem> items = new ArrayList<QStandardItem>();
                  items.add(createNewHyperlinkItem(lpe.getInstance().getPrimitiveSiteName() + "." + lpe.getPin().getName(), pd2));
                  items.add(new DesignItem(lpe.getType().toString(), pd2));
    View Full Code Here

    Examples of edu.umd.cs.findbugs.ba.Path

        private State() {
        }

        public State(/* int maxObligationTypes, */ObligationFactory factory) {
            this.obligationSet = new ObligationSet(/* maxObligationTypes, */factory);
            this.path = new Path();
        }
    View Full Code Here

    Examples of er.rest.routes.jsr311.Path

          throw new RuntimeException("Failed to add routes for " + routeControllerClass + ".", t);
        }

        for (Method routeMethod : routeControllerClass.getDeclaredMethods()) {
          String routeMethodName = routeMethod.getName();
          Path pathAnnotation = routeMethod.getAnnotation(Path.class);
          Paths pathsAnnotation = routeMethod.getAnnotation(Paths.class);
          if (pathAnnotation != null || pathsAnnotation != null) {
            String actionName;
            if (routeMethodName.endsWith("Action")) {
              actionName = routeMethodName.substring(0, routeMethodName.length() - "Action".length());
            }
            else {
              actionName = routeMethodName;
            }

            ERXRoute.Method method = null;
            // Search annotations for @PUT, @GET, etc.
            for (Annotation annotation : routeMethod.getAnnotations()) {
              HttpMethod httpMethod = annotation.annotationType().getAnnotation(HttpMethod.class);
              if (httpMethod != null) {
                if (method == null) {
                  method = httpMethod.value();
                }
                else {
                  throw new IllegalArgumentException(routeControllerClass.getSimpleName() + "." + routeMethod.getName() + " is annotated as more than one http method.");
                }
              }
            }

            // Finally default declared REST actions to @GET
            if (method == null) {
              method = ERXRoute.Method.Get;
            }

            if (pathAnnotation != null) {
              addRoute(new ERXRoute(entityName, pathAnnotation.value(), method, routeControllerClass, actionName));
              declaredRoutesFound = true;
            }
            if (pathsAnnotation != null) {
              for (Path path : pathsAnnotation.value()) {
                addRoute(new ERXRoute(entityName, path.value(), method, routeControllerClass, actionName));
    View Full Code Here

    Examples of eu.stratosphere.core.fs.Path

        final long splitLength = inFile.length() / noSplits;
        long pos = 0;

        for (int i = 0; i < noSplits - 1; i++) {
          tmp[i] = new FileInputSplit(i, new Path(path), pos, splitLength, hosts);
          pos += splitLength;
        }

        tmp[noSplits - 1] = new FileInputSplit(noSplits - 1, new Path(path), pos, inFile.length() - pos, hosts);

        this.inputSplits = tmp;
      }
    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.