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.apache.openjpa.kernel.exps.Path

            if (cmd != null)
                return cmd;

            // we might be referencing a collection field of a subquery's parent
            if (isPath(node)) {
                Path path = getPath(node);
                return getFieldType(path.last());
            }

            // now run again to throw the correct exception
            return getClassMetaData(schemaName, true);
        }
    View Full Code Here

    Examples of org.apache.pivot.collections.Sequence.Tree.Path

                return nodeInfo;
            }

            @SuppressWarnings("unchecked")
            public Path getPath() {
                Path path = Path.forDepth(depth);

                NodeInfo nodeInfo = this;

                while (nodeInfo.parent != null) {
                    List<Object> parentData = (List<Object>)nodeInfo.parent.data;
                    int index = parentData.indexOf(nodeInfo.data);
                    path.insert(index, 0);

                    nodeInfo = nodeInfo.parent;
                }

                return path;
    View Full Code Here

    Examples of org.apache.poi.xslf.model.geom.Path

            double alpha = Math.atan(anchor.getHeight() / anchor.getWidth());

            AffineTransform at = new AffineTransform();
            Shape shape = null;
            Path p = null;
            Rectangle2D bounds;
            double scaleY = Math.pow(2, tailWidth.ordinal());
            double scaleX = Math.pow(2, tailLength.ordinal());
            switch (getLineTailDecoration()) {
                case OVAL:
                    p = new Path();
                    shape = new Ellipse2D.Double(0, 0, lineWidth * scaleX, lineWidth * scaleY);
                    bounds = shape.getBounds2D();
                    at.translate(x2 - bounds.getWidth() / 2, y2 - bounds.getHeight() / 2);
                    at.rotate(alpha, bounds.getX() + bounds.getWidth() / 2, bounds.getY() + bounds.getHeight() / 2);
                    break;
                case ARROW:
                    p = new Path();
                    GeneralPath arrow = new GeneralPath();
                    arrow.moveTo((float) (-lineWidth * 3), (float) (-lineWidth * 2));
                    arrow.lineTo(0, 0);
                    arrow.lineTo((float) (-lineWidth * 3), (float) (lineWidth * 2));
                    shape = arrow;
                    at.translate(x2, y2);
                    at.rotate(alpha);
                    break;
                case TRIANGLE:
                    p = new Path();
                    scaleY = tailWidth.ordinal() + 1;
                    scaleX = tailLength.ordinal() + 1;
                    GeneralPath triangle = new GeneralPath();
                    triangle.moveTo((float) (-lineWidth * scaleX), (float) (-lineWidth * scaleY / 2));
                    triangle.lineTo(0, 0);
    View Full Code Here

    Examples of org.apache.sling.models.annotations.Path

        @Override
        public Object getValue(Object adaptable, String name, Type declaredType, AnnotatedElement element,
                DisposalCallbackRegistry callbackRegistry) {
            String resourcePath = null;
            Path pathAnnotation = element.getAnnotation(Path.class);
            if (pathAnnotation != null) {
                resourcePath = pathAnnotation.value();
            } else {
                ResourcePath resourcePathAnnotation = element.getAnnotation(ResourcePath.class);
                if (resourcePathAnnotation != null) {
                    resourcePath = resourcePathAnnotation.path();
                    if (resourcePath.isEmpty()) {
    View Full Code Here

    Examples of org.apache.tapestry.annotations.Path

            Asset asset = mockAsset();
            String path = "${foo}";
            String expanded = "foo/bar/baz.gif";
            AnnotationProvider annotationProvider = mockAnnotationProvider();
            TypeCoercer typeCoercer = mockTypeCoercer();
            Path pathAnnotation = mockPath();
            SymbolSource symbolSource = mockSymbolSource();

            train_getAnnotation(annotationProvider, Path.class, pathAnnotation);
            train_value(pathAnnotation, path);
            train_expandSymbols(symbolSource, path, expanded);
    View Full Code Here

    Examples of org.apache.tapestry5.annotations.Path

            this.assetSource = assetSource;
        }

        public boolean provideInjection(PlasticField field, ObjectLocator locator, MutableComponentModel componentModel)
        {
            Path path = field.getAnnotation(Path.class);

            if (path == null)
            {
                return false;
            }

            final String expanded = symbolSource.expandSymbols(path.value());

            final Resource baseResource = componentModel.getBaseResource();

            ComputedValue<Asset> computedAsset = new ComputedValue<Asset>()
            {
    View Full Code Here

    Examples of org.apache.tools.ant.types.Path

         * it. If the classpath has already been created,
         * the method just returns that one.
         */
        public Path createClasspath() {
            if (m_classpath == null) {
                m_classpath = new Path(project);
            }
           
            return m_classpath;
        }
    View Full Code Here

    Examples of org.apache.wicket.util.file.Path

        {
          // Add optional sourceFolder for resources.
          String resourceFolder = getInitParameter("sourceFolder");
          if (resourceFolder != null)
          {
            getResourceSettings().getResourceFinders().add(new Path(resourceFolder));
          }
        }
        setPageRendererProvider(new WebPageRendererProvider());
        setSessionStoreProvider(new WebSessionStoreProvider());
        setAjaxRequestTargetProvider(new DefaultAjaxRequestTargetProvider());
    View Full Code Here

    Examples of org.araneaframework.Path

          }
         
          if (!isContinuationRunning()) {
            arUtil.rollback();
           
            Path scope = output.getScope();            
           
            try {                         
              try {
                log.debug("Routing request through the continuation.");
                childService._getService().action(path, input, output);
    View Full Code Here

    Examples of org.brixcms.Path

            if (url.getSegments().get(0).equals("webdav") || url.getSegments().get(0).equals("jcrwebdav")) {
              return null;
            }
          }

          Path path = new Path("/" + url.getPath());

          // root path handling
          if (path.isRoot()) {
            if (handleHomePage) {
              final BrixNode node = getNodeForUriPath(path);
              return SitePlugin.get().getNodePluginForNode(node)
                  .respond(new BrixNodeModel(node), new BrixPageParameters(request.getRequestParameters()));
            } else {
              return null;
            }
          }

          IRequestHandler handler = null;
          try {
            while (handler == null) {
              final BrixNode node = getNodeForUriPath(path);
              if (node != null) {
                SiteNodePlugin plugin = SitePlugin.get().getNodePluginForNode(node);
                if (plugin instanceof AbstractSitePagePlugin) {
                  handler = SitePlugin.get().getNodePluginForNode(node)
                      .respond(new BrixNodeModel(node), createBrixPageParams(request.getUrl(), path));
                } else {
                  handler = SitePlugin.get().getNodePluginForNode(node)
                      .respond(new BrixNodeModel(node), new BrixPageParameters(request.getRequestParameters()));
                }
              }
              if (handler != null || path.toString().equals(".")) {
                break;
              }
              path = path.parent();
              if (path.isRoot()) {
                break;
              }
            }
          } catch (JcrException e) {
            logger.warn("JcrException caught due to incorrect url", e);
    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.