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 jp.javelindev.wicket.parameter.annotation.Path

                List<PathInfo> pathList = new ArrayList<PathInfo>(annotations.size());
                List<Element> elementList = new ArrayList<Element>();
                for (TypeElement type : annotations) {
                    Set<? extends Element> elements = roundEnv.getElementsAnnotatedWith(type);
                    for (Element target : elements) {
                        Path ann = target.getAnnotation(Path.class);
                        if (target.getKind().isClass()) {
                            TypeElement targetAsTypeElement = (TypeElement) target;
                            pathList.add(new PathInfo(ann, targetAsTypeElement.getQualifiedName().toString()));
                            elementList.add(target);
                        }
    View Full Code Here

    Examples of juzu.Path

          Class<?> clazz = loader.loadClass(fqn);
          Field f = clazz.getField("DESCRIPTOR");
          TemplateDescriptor descriptor = (TemplateDescriptor)f.get(null);
          templates.add(descriptor);
          juzu.impl.common.Path.Absolute path = (juzu.impl.common.Path.Absolute)juzu.impl.common.Path.parse(descriptor.getPath());
          Path qualifier;
          if (pkg.isPrefix(path.getName())) {
            juzu.impl.common.Path.Relative relativePath = juzu.impl.common.Path.relative(path.getName().subName(pkg.size()), path.getExt());
            qualifier = new PathLiteral(relativePath.getCanonical());
          } else {
            qualifier = new PathLiteral(path.getCanonical());
    View Full Code Here

    Examples of juzu.impl.common.Path

      public void processAnnotationAdded(ApplicationMetaModel application, AnnotationKey key, AnnotationState added) {
        if (key.getType().toString().equals(juzu.Path.class.getName())) {
          if (key.getElement() instanceof ElementHandle.Field) {
            ElementHandle.Field variableElt = (ElementHandle.Field)key.getElement();
            TemplateContainerMetaModel templates = application.getChild(TemplateContainerMetaModel.KEY);
            Path addedPath = Path.parse((String)added.get("value"));
            Path.Absolute absAdded = templates.resolvePath(addedPath);
            application.processingContext.info("Adding template ref " + variableElt.getTypeName() + "#" + variableElt.getName() + " " + absAdded);
            templates.add(variableElt, absAdded);
          }
          else {
    View Full Code Here

    Examples of name.pachler.nio.file.Path

        public void stopTrack(File path, IFilesystemChangesListener listener) {
            Assert.isNotNull(path);
            Assert.isNotNull(listener);

            Path watchedPath = Paths.get(FileUtils.getFileAbsolutePath(path));

            if (log != null) {
                log.append("STOP Track: ").appendObject(path).append("Listener: ").appendObject(listener).append('\n');
            }
    View Full Code Here

    Examples of net.paoding.rose.web.annotation.Path

                }
            }
            final Class<?> clazz = beanDefinition.getBeanClass();
            final String controllerName = StringUtils.removeEnd(ClassUtils
                    .getShortNameAsProperty(clazz), controllerSuffix);
            Path reqMappingAnnotation = clazz.getAnnotation(Path.class);
            if (reqMappingAnnotation != null) {
                controllerPaths = reqMappingAnnotation.value();
            }
            if (controllerPaths != null) {
                // 如果controllerPaths.length==0,表示没有任何path可以映射到这个controller了
                for (int i = 0; i < controllerPaths.length; i++) {
                    if ("#".equals(controllerPaths[i])) {
    View Full Code Here

    Examples of net.sf.jsptest.utils.Path

            assertTrue("Failed to compile .java file to " + classFile.getAbsolutePath(), classFile
                    .exists());
        }

        private String[] getClassPath() {
            Path cp = new Path();
            cp.addSystemProperty("java.class.path");
            cp.addContainer(javax.servlet.jsp.tagext.JspTag.class);
            cp.addContainer(javax.servlet.jsp.jstl.core.LoopTag.class);
            cp.addContainer(javax.servlet.http.HttpServlet.class);
            cp.addContainer(org.apache.taglibs.standard.Version.class);
            cp.addContainer(org.apache.jasper.JspC.class);
            cp.addContainer(org.apache.jasper.compiler.Compiler.class);
            cp.addContainer(org.apache.jasper.runtime.HttpJspBase.class);
            cp.add(new File("target", "test-classes").getAbsolutePath());
            cp.add(new File("target", "classes").getAbsolutePath());
            return cp.toStringArray();
        }
    View Full Code Here

    Examples of net.sourceforge.marathon.util.Path

        }

        protected Process launchVM(JavaRuntimeProfile jprofile, ILogger logViewLogger) throws IOException {
            String[] cmdElements = createCommand(jprofile);
            logger.info("Command: " + Arrays.asList(cmdElements));
            Path extendedClasspath = getExtendedClassPath(jprofile);
            ProcessBuilder processBuilder = new ProcessBuilder(cmdElements);
            Map<String, String> environ = processBuilder.environment();
            logger.info("Classpath: " + extendedClasspath);
            environ.put("CLASSPATH", extendedClasspath.toString());
            StringBuilder msg = new StringBuilder();
            msg.append("Command:\n").append(processBuilder.command().toString()).append("\n\n");
            msg.append("CLASSPATH set to:    \n").append(extendedClasspath.toString()).append("\n");
            logViewLogger.info("Launcher", "Launching Application", msg.toString());
            return processBuilder.directory(jprofile.getWorkingDirectory()).start();
        }
    View Full Code Here

    Examples of nodebox.graphics.Path

            // original angle
            oa = (Double) getValue(angleName);
            double[] xy = Geometry.coordinates(cx, cy, handleLength, oa);
            float x = (float) xy[0];
            float y = (float) xy[1];
            Path p = new Path();
            p.ellipse(cx, cy, handleLength * 2, handleLength * 2);
            Rect handleRect = createHitRectangle(x, y);
            float a = (float) Geometry.angle(cx, cy, pt.x, pt.y);
            xy = Geometry.coordinates(cx, cy, handleLength, a);
            float x1 = (float) xy[0];
            float y1 = (float) xy[1];
    View Full Code Here

    Examples of org.aisearch.data.Path

      }

      private List<XMLArtefactOperation> search(INode startNode,
          IGoalTest goalTest, IQueueInserter queueInserter) {
        UninformedSearch search = new UninformedSearch(goalTest, queueInserter);
        Path solution = search.search(startNode);
        if (solution == null)
          return null;

        List<XMLArtefactOperation> operations = new ArrayList<XMLArtefactOperation>();
        while (solution != null) {
          MetaArtefactOperation operation = ((Node) solution.getLastEdge()
              .getTargetNode()).getOperation();
          if (operation == null)
            break;
          operations.add(0, new XMLArtefactOperation(operation.getId()));
          solution = solution.getPrePath();
        }

        return operations;
      }
    View Full Code Here

    Examples of org.alfresco.service.cmr.repository.Path

      }

      @SuppressWarnings("unchecked")
      private String getPathFromSpaceRef(NodeRef ref, boolean children) {
        Path path = serviceRegistry.getNodeService().getPath(ref);
        NamespaceService ns = serviceRegistry.getNamespaceService();
        StringBuilder buf = new StringBuilder(64);
        for (int i = 0; i < path.size(); i++) {
          String elementString = "";
          Path.Element element = path.get(i);
          if (element instanceof Path.ChildAssocElement) {
            ChildAssociationRef elementRef = ((Path.ChildAssocElement) element).getRef();
            if (elementRef.getParentRef() != null) {
              Collection prefixes = ns.getPrefixes(elementRef.getQName().getNamespaceURI());
              if (prefixes.size() > 0) {
    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.