|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.subsystems.impl.RemoteFileImpl
com.ibm.etools.systems.universalfilesubsys.impl.UniversalFileImpl
Represents a hierarchical file object in any windows or unix like hierarchical file system
Nested Class Summary | |
---|---|
class |
UniversalFileImpl.AttributesListener
|
class |
UniversalFileImpl.CanWriteListener
|
class |
UniversalFileImpl.StatusListener
|
Field Summary | |
---|---|
protected boolean |
attcanWriteRetrieved
|
protected boolean |
attClassificationRetrieved
|
protected boolean |
attrsRetrieved
|
protected String |
comment
|
protected long |
compressedSize
|
protected String |
compressionMethod
|
protected double |
compressionRatio
|
static String |
copyright
|
protected boolean |
existsRetrieved
|
protected long |
expandedSize
|
protected boolean |
isBeingUpdated
|
protected char |
sep
|
Fields inherited from class com.ibm.etools.systems.subsystems.impl.RemoteFileImpl |
---|
_isStale, BINARY_FALSE, BINARY_TRUE, cacheAbsolutePath, canonicalPath, canRead, canWrite, classification, containingArchiveFullName, contents, context, debugMode, DIRECTORY_FALSE, DIRECTORY_TRUE, exists, fullyQualifiedName, isCached, isContainer, isDirectory, isHidden, isRoot, isVirtualFile, isVirtualFolder, label, lastModified, length, nameOnly, parentFile, pathOnly, properties, propertyStates, remoteObj, ROOT_FALSE, ROOT_TRUE, rootOnly, showReadOnly |
Fields inherited from interface com.ibm.etools.systems.subsystems.IRemoteFile |
---|
CONNECTION_DELIMITER, ISROOT_NO, ISROOT_YES |
Constructor Summary | |
---|---|
UniversalFileImpl(IRemoteFileContext context,
DataElement dataElementObj,
boolean isRoot)
Constructor. |
|
UniversalFileImpl(IRemoteFileContext context,
DataElement dataElementObj,
boolean isRoot,
boolean exists)
Constructor. |
|
UniversalFileImpl(IRemoteFileContext context,
DataElement dataElementObj,
boolean isRoot,
boolean exists,
boolean isDir)
Constructor. |
Method Summary | |
---|---|
boolean |
canRead()
Returns true if the application can read this file. |
boolean |
canWrite()
Returns true if the application can write to this file. |
int |
compareTo(Object other)
Compare one remote file to another. |
void |
dispose()
|
Object |
getAdapter(Class key)
This is the method required by the IAdaptable interface. |
protected void |
getAttributes()
The Properties of the file/folder is returned from the miner in a StringTokenizer. |
protected void |
getcanWrite()
|
String |
getClassification()
Returns the classification of this file. |
String |
getComment()
|
long |
getCompressedSize()
|
String |
getCompressionMethod()
|
double |
getCompressionRatio()
|
long |
getExpandedSize()
|
String |
getLabel()
Get the display name for this file. |
long |
getLastModified()
Returns the time (in milliseconds since epoch) this file was last modified. |
Date |
getLastModifiedDate()
Return the last modified time as a Date object. |
long |
getLength()
Returns the length, in bytes, of this file. |
String |
getName()
Get unqualified file name. |
String |
getParent()
Get fully qualified path and name of folder containing this file or folder. |
String |
getParentName()
Get the unqualified name of the parent directory containing this file or folder. |
String |
getParentNoRoot()
Get fully qualified path and name of folder containing this file or folder, minus the root. |
String |
getRoot()
Get the root part of the name. |
protected String |
getRootPart(String s)
Get the rootPart - this is system dependent. |
protected void |
init(IRemoteFileContext context,
DataElement dataElementObj,
boolean isRoot,
boolean exists,
boolean isDir)
Initialization. |
protected boolean |
internalExists(DataElement deObj)
|
boolean |
isBeingUpdated()
|
static boolean |
isDataElementDirectory(DataElement deObj)
|
boolean |
isHidden()
Returns true if this is a hidden file. |
boolean |
isRoot()
Returns true if this represents a root folder (eg: c:\\ or /). |
boolean |
isStale()
Indicates whether the cached object is stale |
void |
markStale(boolean isStale)
Get the DataElement for this object |
protected boolean |
nameIsRoot(String name)
|
void |
setFile(Object dataElementObj)
Set the DataElement for this object |
void |
setIsBeingUpdated(boolean flag)
|
void |
setIsDirectory(boolean flag)
Explicitly indicate whether this is a directory or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemoteFile |
---|
exists, getAbsolutePath, getAbsolutePathPlusConnection, getAllFilterStrings, getCanonicalPath, getExtension, getFile, getFileWrapper, getFilterString, getLineSeparator, getParentRemoteFile, getParentRemoteFileSubSystem, getSeparator, getSeparatorChar, getSystemConnection, isAncestorOf, isArchive, isBinary, isDescendantOf, isDirectory, isExecutable, isFile, isLink, isText, isVirtual, setFilterString, showBriefPropertySet, showReadOnlyProperty |
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemoteContainer |
---|
copyContentsTo, getContents, hasContents, replaceContent, setContents |
Methods inherited from interface com.ibm.etools.systems.model.ISystemContainer |
---|
getContents, hasContents |
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemotePropertyHolder |
---|
getProperties, getProperty, isPropertyStale, markAllPropertiesStale, markPropertyStale, setProperties, setProperty |
Field Detail |
public static final String copyright
protected boolean attrsRetrieved
protected boolean attClassificationRetrieved
protected boolean existsRetrieved
protected boolean attcanWriteRetrieved
protected boolean isBeingUpdated
protected char sep
protected String comment
protected long compressedSize
protected String compressionMethod
protected double compressionRatio
protected long expandedSize
Constructor Detail |
public UniversalFileImpl(IRemoteFileContext context, DataElement dataElementObj, boolean isRoot)
public UniversalFileImpl(IRemoteFileContext context, DataElement dataElementObj, boolean isRoot, boolean exists)
public UniversalFileImpl(IRemoteFileContext context, DataElement dataElementObj, boolean isRoot, boolean exists, boolean isDir)
Method Detail |
public boolean isBeingUpdated()
public void setIsBeingUpdated(boolean flag)
protected void init(IRemoteFileContext context, DataElement dataElementObj, boolean isRoot, boolean exists, boolean isDir)
protected boolean nameIsRoot(String name)
public static boolean isDataElementDirectory(DataElement deObj)
protected boolean internalExists(DataElement deObj)
protected String getRootPart(String s)
public void setFile(Object dataElementObj)
setFile
in interface IRemoteFileMutable
setFile
in class RemoteFileImpl
public void setIsDirectory(boolean flag)
public void markStale(boolean isStale)
markStale
in interface ISystemContainer
markStale
in class RemoteFileImpl
ISystemContainer.markStale(boolean)
protected void getAttributes()
The StringTokenizer contains properties of the object in the following order
protected void getcanWrite()
public boolean isHidden()
isHidden
in interface IRemoteFile
isHidden
in class RemoteFileImpl
public boolean canRead()
canRead
in interface IRemoteFile
canRead
in class RemoteFileImpl
public boolean canWrite()
canWrite
in interface IRemoteFile
canWrite
in class RemoteFileImpl
public Date getLastModifiedDate()
IRemoteFile
getLastModifiedDate
in interface IRemoteFile
getLastModifiedDate
in class RemoteFileImpl
IRemoteFile.getLastModifiedDate()
public long getLastModified()
IRemoteFile
getLastModified
in interface IRemoteFile
getLastModified
in class RemoteFileImpl
IRemoteFile.getLastModified()
public long getLength()
IRemoteFile
getLength
in interface IRemoteFile
getLength
in class RemoteFileImpl
IRemoteFile.getLength()
public Object getAdapter(Class key)
RemoteFileImpl
By default this returns Platform.getAdapterManager().getAdapter(this, adapterType); This in turn results in the default subsystem adapter SystemViewSubSystemAdapter, in package com.ibm.etools.systems.core.ui.view.
getAdapter
in interface IAdaptable
getAdapter
in class RemoteFileImpl
public void dispose()
public String getComment()
getComment
in interface IRemoteFile
getComment
in class RemoteFileImpl
public long getCompressedSize()
getCompressedSize
in interface IRemoteFile
getCompressedSize
in class RemoteFileImpl
public String getCompressionMethod()
getCompressionMethod
in interface IRemoteFile
getCompressionMethod
in class RemoteFileImpl
public double getCompressionRatio()
getCompressionRatio
in interface IRemoteFile
getCompressionRatio
in class RemoteFileImpl
public String getClassification()
IRemoteFile
getClassification
in interface IRemoteFile
getClassification
in class RemoteFileImpl
public long getExpandedSize()
getExpandedSize
in interface IRemoteFile
getExpandedSize
in class RemoteFileImpl
public String getName()
IRemoteFile
getName
in interface IRemoteFile
getName
in class RemoteFileImpl
IRemoteFile.getName()
public String getLabel()
IRemoteFile
getLabel
in interface IRemoteFile
getLabel
in class RemoteFileImpl
IRemoteFile.getLabel()
public String getRoot()
IRemoteFile
c:\folder1\folder2\file1.ext
results in c:\
/folder1/folder2/file1.ext
results in /
getRoot
in interface IRemoteFile
getRoot
in class RemoteFileImpl
IRemoteFile.getRoot()
public boolean isRoot()
IRemoteFile
isRoot
in interface IRemoteFile
isRoot
in class RemoteFileImpl
IRemoteFile.isRoot()
public int compareTo(Object other) throws ClassCastException
IRemoteFile
compareTo
in interface IRemoteFile
compareTo
in class RemoteFileImpl
ClassCastException
public String getParent()
IRemoteFile
If this object represent only a root drive, this returns null;
Example: c:\folder1\folder2\file1.ext
results in c:\folder1\folder2
getParent
in interface IRemoteFile
getParent
in class RemoteFileImpl
IRemoteFile.getParent()
public String getParentName()
IRemoteFile
Example: c:\folder1\folder2\file1.ext
results in folder2
getParentName
in interface IRemoteFile
getParentName
in class RemoteFileImpl
IRemoteFile.getParentName()
public String getParentNoRoot()
IRemoteFile
If this object represent only a root drive, this returns null;
Example: c:\folder1\folder2\file1.ext
results in folder1\folder2
getParentNoRoot
in interface IRemoteFile
getParentNoRoot
in class RemoteFileImpl
IRemoteFile.getParentNoRoot()
public boolean isStale()
ISystemContainer
isStale
in interface ISystemContainer
isStale
in class RemoteFileImpl
ISystemContainer.isStale()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |