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 org.geotools.graph.path.Path

            List<Edge> edgeList = new ArrayList<Edge>();
            for ( int i = 0; i < list.size() - 1; i++ ) {
                DijkstraShortestPathFinder pf = new DijkstraShortestPathFinder( graph, list.get( i ), weighter );
                pf.calculate();
                Path path = pf.getPath( list.get( i + 1 ) );
                if ( path != null ) {
                    edgeList.addAll( path.getEdges() );
                }
            }
            mapboard.put( "path", edgeList );
            layer.refresh( null );
    View Full Code Here

    Examples of org.gradle.model.Path

            }
            return inputBindingBuilder.build();
        }

        private ModelReference<?> reference(Type type, Annotation[] annotations, int i) {
            Path pathAnnotation = (Path) findFirst(annotations, new Spec<Annotation>() {
                public boolean isSatisfiedBy(Annotation element) {
                    return element.annotationType().equals(Path.class);
                }
            });
            String path = pathAnnotation == null ? null : pathAnnotation.value();
            ModelType<?> cast = ModelType.of(type);
            return ModelReference.of(path == null ? null : ModelPath.path(path), cast, String.format("parameter %s", i + 1));
        }
    View Full Code Here

    Examples of org.gradle.util.Path

                public int compare(TaskDetails task1, TaskDetails task2) {
                    int diff = STRING_COMPARATOR.compare(task1.getPath().getName(), task2.getPath().getName());
                    if (diff != 0) {
                        return diff;
                    }
                    Path parent1 = task1.getPath().getParent();
                    Path parent2 = task2.getPath().getParent();
                    if (parent1 == null && parent2 != null) {
                        return -1;
                    }
                    if (parent1 != null && parent2 == null) {
                        return 1;
    View Full Code Here

    Examples of org.infinispan.schematic.document.Path

            // Now apply the changes to this document and prepare to coallesce the changes for the nested documents ...
            int nextLevel = level + 1;
            Map<String, LinkedList<Conversion>> nextLevelConversionsBySegment = new HashMap<String, LinkedList<Conversion>>();
            for (Conversion conversion : conversions) {
                Path path = conversion.getPath();
                assert path.size() > level;
                String segment = path.get(level);
                if (path.size() == nextLevel) {
                    // This is the last segment for this path, so change the output document's field ...
                    changedFields.put(segment, conversion.getConvertedValue());
                } else {
                    // Otherwise, the path is for the nested document ...
                    LinkedList<Conversion> nestedConversions = nextLevelConversionsBySegment.get(segment);
    View Full Code Here

    Examples of org.jboss.as.console.client.shared.general.model.Path

            toolstrip.addToolButtonRight(addBtn);

            ToolButton removeBtn = new ToolButton("Remove", new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    final Path editedEntity = form.getEditedEntity();
                    Feedback.confirm(
                            Console.MESSAGES.deleteTitle("Path"),
                            Console.MESSAGES.deleteConfirm("Path " + editedEntity.getName()),
                            new Feedback.ConfirmationHandler() {
                                @Override
                                public void onConfirmation(boolean isConfirmed) {
                                    if (isConfirmed)
                                        presenter.onDeletePath(editedEntity);
                                }
                            });
                }
            });

            toolstrip.addToolButtonRight(removeBtn);

            // -----------

            table = new DefaultCellTable<Path>(6, new ProvidesKey<Path>() {
                @Override
                public Object getKey(Path path) {
                    return path.getName();
                }
            });

            dataProvider = new ListDataProvider<Path>();
            dataProvider.addDataDisplay(table);

            TextColumn<Path> nameCol = new TextColumn<Path>() {
                @Override
                public String getValue(Path record) {
                    return record.getName();
                }
            };


            table.addColumn(nameCol, "Name");

            // -----------

            form = new Form<Path>(Path.class);
            form.setNumColumns(2);

            FormToolStrip<Path> detailToolStrip = new FormToolStrip<Path>(
                    form,
                    new FormToolStrip.FormCallback<Path>()
                    {
                        @Override
                        public void onSave(Map<String, Object> changeset) {
                            Path updatedEntity = form.getUpdatedEntity();
                            presenter.onSavePath(
                                    updatedEntity.getName(),
                                    form.getChangedValues()
                            );
                        }

                        @Override
    View Full Code Here

    Examples of org.jboss.dna.graph.properties.Path

            // Wrap the executor with a logging executor ...
            executor = new LoggingCommandExecutor(executor, context.getLogger(getClass()), Logger.Level.DEBUG);

            // The configuration projection (via "executor") will convert this path into a path that exists in the configuration
            // repository
            Path configNode = pathFactory.create(PATH_TO_CONFIGURATION_INFORMATION);

            try {
                // Get the repository node ...
                BasicGetNodeCommand getRepository = new BasicGetNodeCommand(configNode);
                executor.execute(getRepository);
                if (getRepository.hasError()) {
                    throw new FederationException(FederationI18n.federatedRepositoryCannotBeFound.text(repositoryName));
                }

                // Get the first child node of the "dna:cache" node, since this represents the source used as the cache ...
                Path cacheNode = pathFactory.create(configNode, nameFactory.create(DNA_CACHE_SEGMENT));
                BasicGetChildrenCommand getCacheSource = new BasicGetChildrenCommand(cacheNode);

                executor.execute(getCacheSource);
                if (getCacheSource.hasError() || getCacheSource.getChildren().size() < 1) {
                    I18n msg = FederationI18n.requiredNodeDoesNotExistRelativeToNode;
                    throw new FederationException(msg.text(DNA_CACHE_SEGMENT, configNode));
                }

                // Add a command to get the projection defining the cache ...
                Path pathToCacheRegion = pathFactory.create(cacheNode, getCacheSource.getChildren().get(0));
                BasicGetNodeCommand getCacheRegion = new BasicGetNodeCommand(pathToCacheRegion);
                executor.execute(getCacheRegion);
                Projection cacheProjection = createProjection(context,
                                                              projectionParser,
                                                              getCacheRegion.getPath(),
                                                              getCacheRegion.getPropertiesByName(),
                                                              problems);

                if (getCacheRegion.hasError()) {
                    I18n msg = FederationI18n.requiredNodeDoesNotExistRelativeToNode;
                    throw new FederationException(msg.text(DNA_CACHE_SEGMENT, configNode));
                }

                // Get the source projections for the repository ...
                Path projectionsNode = pathFactory.create(configNode, nameFactory.create(DNA_PROJECTIONS_SEGMENT));
                BasicGetChildrenCommand getProjections = new BasicGetChildrenCommand(projectionsNode);

                executor.execute(getProjections);
                if (getProjections.hasError()) {
                    I18n msg = FederationI18n.requiredNodeDoesNotExistRelativeToNode;
                    throw new FederationException(msg.text(DNA_PROJECTIONS_SEGMENT, configNode));
                }

                // Build the commands to get each of the projections (children of the "dna:projections" node) ...
                List<Projection> sourceProjections = new LinkedList<Projection>();
                if (getProjections.hasNoError() && !getProjections.getChildren().isEmpty()) {
                    BasicCompositeCommand commands = new BasicCompositeCommand();
                    for (Path.Segment child : getProjections.getChildren()) {
                        final Path pathToSource = pathFactory.create(projectionsNode, child);
                        commands.add(new BasicGetNodeCommand(pathToSource));
                    }
                    // Now execute these commands ...
                    executor.execute(commands);
    View Full Code Here

    Examples of org.jboss.dna.graph.property.Path

         * @throws RepositorySourceException if there is a problem accessing the content
         * @throws SearchEngineException if there is a problem updating the indexes
         * @throws InvalidWorkspaceException if the workspace does not exist
         */
        public SearchEngineIndexer index( String workspaceName ) throws RepositorySourceException, SearchEngineException {
            Path rootPath = context.getValueFactories().getPathFactory().createRootPath();
            index(workspaceName, Location.create(rootPath));
            return this;
        }
    View Full Code Here

    Examples of org.jboss.jca.common.api.metadata.ra.Path

          throw new ParserException(bundle.unexpectedEndOfDocument());
       }

       private Icon parseIcon(XMLStreamReader reader) throws XMLStreamException, ParserException
       {
          Path largeIcon = null;
          Path smallIcon = null;

          //getting attributes
          String id = reader.getAttributeValue(null, Icon.Attribute.ID.getLocalName());
          String lang = reader.getAttributeValue(null, Icon.Attribute.ID.getLocalName());
    View Full Code Here

    Examples of org.jboss.jca.common.metadata.ra.ra16.Path

          throw new ParserException("Reached end of xml document unexpectedly");
       }

       private Icon parseIcon(XMLStreamReader reader) throws XMLStreamException, ParserException
       {
          Path largeIcon = null;
          Path smallIcon = null;

          //getting attributes
          String id = reader.getAttributeValue(null, Icon.Attribute.ID.getLocalName());
          String lang = reader.getAttributeValue(null, Icon.Attribute.ID.getLocalName());
    View Full Code Here

    Examples of org.jostraca.tree.path.Path

        pNodeWalker.exit(this);
      }
     
     
      public List<Node> select( String pPath ) throws Exception {
        Path p = new Path(pPath);
        List<Node> res = p.select( this );
        return res;
      }
    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.