Class ConnectionFileName
java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileName
org.pentaho.di.connections.vfs.provider.ConnectionFileName
- All Implemented Interfaces:
Comparable<org.apache.commons.vfs2.FileName>,org.apache.commons.vfs2.FileName
public class ConnectionFileName
extends org.apache.commons.vfs2.provider.AbstractFileName
-
Field Summary
Fields inherited from interface org.apache.commons.vfs2.FileName
EMPTY_ARRAY, ROOT_PATH, SEPARATOR, SEPARATOR_CHAR -
Constructor Summary
ConstructorsConstructorDescriptionConnectionFileName(String connection) ConnectionFileName(String connection, String absPath, org.apache.commons.vfs2.FileType type) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendRootUri(StringBuilder buffer, boolean addPassword) createChildName(String name, org.apache.commons.vfs2.FileType type) createName(String absPath, org.apache.commons.vfs2.FileType type) protected StringbooleanGets the connection name.protected ConnectionFileNameUtilsinthashCode()booleanIndicates if the file name is that of a connection root, e.g.booleanIndicates if the file name is that of the PVFS root, "pvfs://".voidsetConnection(String connection) Sets the connection name.Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileName
checkName, compareTo, getBaseName, getDepth, getExtension, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getScheme, getType, getURI, getUriTrailer, isAncestor, isDescendent, isDescendent, isFile, toString
-
Constructor Details
-
ConnectionFileName
-
ConnectionFileName
-
-
Method Details
-
createName
- Specified by:
createNamein classorg.apache.commons.vfs2.provider.AbstractFileName
-
createChildName
-
getConnectionFileNameUtils
-
appendRootUri
- Specified by:
appendRootUriin classorg.apache.commons.vfs2.provider.AbstractFileName
-
getRootURI
- Specified by:
getRootURIin interfaceorg.apache.commons.vfs2.FileName- Overrides:
getRootURIin classorg.apache.commons.vfs2.provider.AbstractFileName
-
createURI
- Overrides:
createURIin classorg.apache.commons.vfs2.provider.AbstractFileName
-
getFriendlyURI
- Specified by:
getFriendlyURIin interfaceorg.apache.commons.vfs2.FileName- Overrides:
getFriendlyURIin classorg.apache.commons.vfs2.provider.AbstractFileName
-
getConnection
Gets the connection name.- Returns:
- The connection name.
-
isPvfsRoot
public boolean isPvfsRoot()Indicates if the file name is that of the PVFS root, "pvfs://".- Returns:
trueif so;false, otherwise.
-
isConnectionRoot
public boolean isConnectionRoot()Indicates if the file name is that of a connection root, e.g. "pvfs://connection-name/".- Returns:
trueif so;false, otherwise.
-
setConnection
Sets the connection name.- Parameters:
connection- The connection name.
-
equals
- Overrides:
equalsin classorg.apache.commons.vfs2.provider.AbstractFileName
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apache.commons.vfs2.provider.AbstractFileName
-