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.bleujin.framework.valid.validator.Path

        assertEquals(true, new Password(b, SVALIE).isValid()) ;
      }

      public void testPath() throws Exception {
        b.setSvalue("c:\\dd.htm") ;
        assertEquals(true, new Path(b, SVALIE).isValid()) ;

        b.setSvalue("\\1.htm") ;
        assertEquals(false, new Path(b, SVALIE).isValid()) ;

        b.setSvalue("d:\\dcdddd\\xx.bbx") ;
        assertEquals(true, new Path(b, SVALIE).isValid()) ;

        b.setSvalue("c:\\dccd*") ;
        assertEquals(false, new Path(b, SVALIE).isValid()) ;
      }
    View Full Code Here

    Examples of com.bradmcevoy.common.Path

        this.ssoSessionProvider = ssoSessionProvider;
      }


      public Resource getResource(String host, String url) {
        Path p = Path.path(url);
        String firstComp = p.getFirst();
        Object oUserTag = null;
        if( firstComp != null ) {
          oUserTag = ssoSessionProvider.getUserTag(firstComp);
        }
       
        if (oUserTag == null) {
          log.trace("not a SSO path");
          return resourceFactory.getResource(host, url);
        } else {
          log.trace("is an SSO path");
          Path strippedPath = p.getStripFirst();
          HttpManager.request().getAttributes().put("_sso_user", oUserTag);
          return resourceFactory.getResource(host, strippedPath.toString());
        }
      }
    View Full Code Here

    Examples of com.caucho.vfs.Path

      protected Class<?> loadClass(String name, boolean resolve)
        throws ClassNotFoundException
      {
        String className = name.replace('.', '/') + ".class";

        Path path = _resinJar.lookup(className);

        int length = (int) path.getLength();

        if (length > 0
            && (className.startsWith("com/caucho/bootjni")
                || className.equals("com/caucho/vfs/JniFileStream.class")
                || className.equals("com/caucho/vfs/JniServerSocketImpl.class"))) {
          byte []buffer = new byte[length];

          try {
            ReadStream is = null;
            try {
              is = path.openRead();

              is.readAll(buffer, 0, buffer.length);

              Class<?> cl = defineClass(name, buffer, 0, buffer.length,
                                     (CodeSource) null);
    View Full Code Here

    Examples of com.cedarsoft.commons.struct.Path

        StructureTreeWalker walker = new BreadthFirstStructureTreeWalker();
        walker.walk( root, new StructureTreeWalker.WalkerCallBack() {
          @Override
          public void nodeReached( @NotNull StructPart node, int level ) {
            Path path = Path.buildPath( node ); //pop the root
            if ( !rootVisible ) {
              path = path.popped();
            }

            File dir = getDir( baseDir, path );
            dir.mkdir();
    View Full Code Here

    Examples of com.dotcms.repackage.com.bradmcevoy.common.Path

        public com.ettrema.httpclient.File uploadFile(File f, ProgressListener listener) throws FileNotFoundException, IOException, HttpException, NotAuthorizedException, ConflictException, BadRequestException, NotFoundException {
            return uploadFile(f.getName(), f, listener);
        }

        public com.ettrema.httpclient.File uploadFile(String newName, File f, ProgressListener listener) throws FileNotFoundException, IOException, HttpException, NotAuthorizedException, ConflictException, BadRequestException, NotFoundException {
            Path newPath = path().child(newName);
            children(); // ensure children are loaded
            int resultCode = host().doPut(newPath, f, listener);
            LogUtils.trace(log, "uploadFile", newPath, " result", resultCode);
            Utils.processResultCode(resultCode, newPath.toString());
            com.ettrema.httpclient.File child = new com.ettrema.httpclient.File(this, newName, null, f.length());
            flush();
            notifyOnChildAdded(child);
            return child;
        }
    View Full Code Here

    Examples of com.dotcms.repackage.com.caucho.vfs.Path

        return v;
      }
     
      public Object eval(String source, int lineNo, int columnNo, Object oscript) throws BSFException {
        String scriptText = oscript.toString();
        Path path;
        PHPEvalWrapper wrapper = new PHPEvalWrapper();
        if(source.endsWith(".php")){
          String filePath = source.substring(source.indexOf('/'),source.length());
          path = buildRootPath(source).lookup(filePath);
          if(UtilMethods.isSet(scriptText)){
    View Full Code Here

    Examples of com.ebuddy.cassandra.Path

         * Convert strings to paths and remove the start of the paths that match the inputPath.
         */
        private Map<Path,Object> getTerminalPathMap(Path inputPath, Map<String,Object> columnsMap) {
            Map<Path,Object> pathMap = new HashMap<Path,Object>(columnsMap.size());
            for (Map.Entry<String,Object> entry : columnsMap.entrySet()) {
                Path path = DefaultPath.fromEncodedPathString(entry.getKey());
                if (!path.startsWith(inputPath)) {
                    throw new IllegalStateException("unexpected path found in database:" + path);
                }
                path = path.tail(inputPath.size());
                pathMap.put(path, entry.getValue());
            }
            return pathMap;
        }
    View Full Code Here

    Examples of com.evelopers.unimod.glayout.graph.containers.Path

            }

            ListIterator lip = paths.listIterator();

            while (lip.hasNext()) {
                Path path       = (Path) lip.next();
                SimpleVertex sv = new SimpleVertex();
                associated.addVertex(sv);
                path.setProperty(this, sv);
            }

            lip = paths.listIterator();

            while (lip.hasNext()) {
                Path path        = (Path) lip.next();
                ListIterator lic = path.getEdges()
                                       .listIterator();
                List lfaces = new ArrayList();
                List rfaces = new ArrayList();

                while (lic.hasNext()) {
                    SimpleEdge edge = (SimpleEdge) lic.next();

                    if (lfaces.indexOf(edge.getLeft()) == -1) {
                        lfaces.add(edge.getLeft());
                    }

                    if (rfaces.indexOf(edge.getRight()) == -1) {
                        rfaces.add(edge.getRight());
                    }
                }

                Iterator itl = lfaces.iterator();

                while (itl.hasNext()) {
                    Face lface       = (Face) itl.next();
                    SimpleVertex src = lface.getVertexProperty(this);
                    SimpleVertex dst = path.getVertexProperty(this);
                    SimpleEdge se    = new SimpleEdge(src, dst);
                    associated.addEdge(se);
                }

                Iterator itr = rfaces.iterator();

                while (itr.hasNext()) {
                    Face rface       = (Face) itr.next();
                    SimpleVertex src = path.getVertexProperty(this);
                    SimpleVertex dst = rface.getVertexProperty(this);
                    SimpleEdge se    = new SimpleEdge(src, dst);
                    associated.addEdge(se);
                }
            }
    View Full Code Here

    Examples of com.google.gwt.editor.client.Editor.Path

            + ".asEditor()");
      }

      public static EditorAccess via(JField field) {
        String path = field.getName();
        Path pathAnnotation = field.getAnnotation(Editor.Path.class);
        if (pathAnnotation != null) {
          path = pathAnnotation.value();
        } else if (path.endsWith(EDITOR_SUFFIX)) {
          path = path.substring(0, path.length() - EDITOR_SUFFIX.length());
        }

        return new EditorAccess(path, field.getType().isClassOrInterface(),
    View Full Code Here

    Examples of com.google.storage.onestore.v3.OnestoreEntity.Path

    */
    class KeyTranslator {

      public static Key createFromPb(Reference reference) {
        Key parentKey = null;
        Path path = reference.getPath();
        List<Element> elements = path.elements();
        if (elements.isEmpty()) {
          throw new IllegalArgumentException("Invalid Key PB: no elements.");
        }

        AppIdNamespace appIdNamespace = new AppIdNamespace(reference.getApp(),
    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.