org.kie.commons.java.nio.fs.jgit
Class JGitPathImpl
java.lang.Object
org.kie.commons.java.nio.base.AbstractPath<JGitFileSystem>
org.kie.commons.java.nio.fs.jgit.JGitPathImpl
- All Implemented Interfaces:
- Comparable<org.kie.commons.java.nio.file.Path>, Iterable<org.kie.commons.java.nio.file.Path>, org.kie.commons.java.nio.base.AttrHolder, org.kie.commons.java.nio.base.SegmentedPath, org.kie.commons.java.nio.file.Path, org.kie.commons.java.nio.file.Watchable
public class JGitPathImpl
- extends org.kie.commons.java.nio.base.AbstractPath<JGitFileSystem>
- implements org.kie.commons.java.nio.base.SegmentedPath
| Nested classes/interfaces inherited from class org.kie.commons.java.nio.base.AbstractPath |
org.kie.commons.java.nio.base.AbstractPath.RootInfo |
| Fields inherited from class org.kie.commons.java.nio.base.AbstractPath |
attrsStorage, DEFAULT_WINDOWS_DRIVER, file, fs, host, isAbsolute, isNormalized, isRealPath, isRoot, offsets, path, toStringFormat, usesWindowsFormat, WINDOWS_DRIVER |
|
Method Summary |
static JGitPathImpl |
create(JGitFileSystem fs,
String path,
String host,
boolean isRealPath)
|
static JGitPathImpl |
create(JGitFileSystem fs,
String path,
String host,
org.eclipse.jgit.lib.ObjectId id,
boolean isRealPath)
|
static JGitPathImpl |
createFSDirect(JGitFileSystem fs)
|
static JGitPathImpl |
createRoot(JGitFileSystem fs,
String path,
String host,
boolean isRealPath)
|
protected String |
defaultDirectory()
|
String |
getPath()
|
String |
getRefTree()
|
String |
getSegmentId()
|
boolean |
isRegularFile()
|
protected org.kie.commons.java.nio.file.Path |
newPath(JGitFileSystem fs,
String substring,
String host,
boolean isRealPath,
boolean isNormalized)
|
protected org.kie.commons.java.nio.file.Path |
newRoot(JGitFileSystem fs,
String substring,
String host,
boolean realPath)
|
protected org.kie.commons.java.nio.base.AbstractPath.RootInfo |
setupRoot(JGitFileSystem fs,
String pathx,
String host,
boolean isRoot)
|
File |
toFile()
|
| Methods inherited from class org.kie.commons.java.nio.base.AbstractPath |
addAttrView, clearCache, compareTo, endsWith, endsWith, equals, getAttrStorage, getAttrView, getAttrView, getFileName, getFileSystem, getHost, getName, getNameCount, getParent, getRoot, hashCode, isAbsolute, isRealPath, iterator, normalize, register, register, relativize, resolve, resolve, resolveSibling, resolveSibling, startsWith, startsWith, subpath, toAbsolutePath, toRealPath, toString, toString, toUri |
DEFAULT_REF_TREE
public static final String DEFAULT_REF_TREE
- See Also:
- Constant Field Values
setupRoot
protected org.kie.commons.java.nio.base.AbstractPath.RootInfo setupRoot(JGitFileSystem fs,
String pathx,
String host,
boolean isRoot)
- Specified by:
setupRoot in class org.kie.commons.java.nio.base.AbstractPath<JGitFileSystem>
defaultDirectory
protected String defaultDirectory()
- Specified by:
defaultDirectory in class org.kie.commons.java.nio.base.AbstractPath<JGitFileSystem>
newRoot
protected org.kie.commons.java.nio.file.Path newRoot(JGitFileSystem fs,
String substring,
String host,
boolean realPath)
- Specified by:
newRoot in class org.kie.commons.java.nio.base.AbstractPath<JGitFileSystem>
newPath
protected org.kie.commons.java.nio.file.Path newPath(JGitFileSystem fs,
String substring,
String host,
boolean isRealPath,
boolean isNormalized)
- Specified by:
newPath in class org.kie.commons.java.nio.base.AbstractPath<JGitFileSystem>
create
public static JGitPathImpl create(JGitFileSystem fs,
String path,
String host,
org.eclipse.jgit.lib.ObjectId id,
boolean isRealPath)
create
public static JGitPathImpl create(JGitFileSystem fs,
String path,
String host,
boolean isRealPath)
createRoot
public static JGitPathImpl createRoot(JGitFileSystem fs,
String path,
String host,
boolean isRealPath)
createFSDirect
public static JGitPathImpl createFSDirect(JGitFileSystem fs)
toFile
public File toFile()
throws UnsupportedOperationException
- Specified by:
toFile in interface org.kie.commons.java.nio.file.Path
- Throws:
UnsupportedOperationException
getRefTree
public String getRefTree()
getPath
public String getPath()
isRegularFile
public boolean isRegularFile()
throws IllegalAccessError,
SecurityException
- Throws:
IllegalAccessError
SecurityException
getSegmentId
public String getSegmentId()
- Specified by:
getSegmentId in interface org.kie.commons.java.nio.base.SegmentedPath
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.