public class Identifier extends NamedType implements java.io.Serializable, java.lang.Comparable
hec.RemoteWrapper,
RmiFile,
HecFile,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
boolean |
_directory
The boolean flag indicating if the file contained in the Identifier
is a Directory.
|
HecFile |
_file
The HecFile contained in the Identifier
|
java.lang.String |
_path
The path String contained in the Identifier
|
java.lang.String |
_stringClass
A String describing a Class.
|
java.lang.Class |
_type
Deprecated.
Replaced by _stringClass
The Class contained in the Identifier
|
_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT| Constructor and Description |
|---|
Identifier()
The default constructor.
|
Identifier(Identifier argId)
Creates a new Identifier based on the default constructor.
|
Identifier(java.lang.String path)
Creates a new Identifier based on the default constructor.
|
Identifier(java.lang.String path,
HecFile file)
Creates a new Identifier based on the default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object obj) |
void |
copy(Identifier argId)
Copies all of the argument Identifer's values to this Identifer.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClassName()
Returns the Identifier's String stringClass
|
HecFile |
getFile()
Returns the Identfier's HecFile.
|
java.lang.String |
getPath()
Returns a String describing the Identifier's path
|
java.lang.Class |
getType()
Deprecated.
Replaced by getClassName()
Returns the Identifier's Class
|
int |
hashCode() |
void |
initToFile(java.io.File file) |
static java.lang.Object |
instantiateRmiFile(Identifier id,
java.lang.String extension,
java.lang.Object[] constructorArgs) |
boolean |
isDirectory() |
boolean |
isHidden() |
boolean |
isReadOnly() |
long |
lastModified()
returns the last modified time of the file or if no file the _lastModified member
|
long |
length()
returns the length of the file or if no file the _length member
|
java.lang.String |
paramString() |
void |
setClassName(java.lang.String type)
Sets the Identifier's String stringClass to the argument String
|
void |
setFile(HecFile file)
Sets the Identifier's HecFile to the argument HecFile.
|
void |
setHidden(boolean b) |
void |
setIsDirectory(boolean isDirectory) |
void |
setLastModified(long lastModified) |
void |
setLength(long length) |
void |
setPath(java.lang.String path)
Sets the Identifier's path String to the argument path Strin
|
void |
setReadOnly(boolean b) |
void |
setType(java.lang.Class type)
Deprecated.
Replaced by setClassName()
Sets the Identifier's Class to the argument Class
|
java.lang.String |
toString()
Returns the Identifier's name.
|
addModifiableListener, clone, getDescription, getDisplayName, getFieldObject, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, removeModifiableListener, rename, set, setDescription, setFieldObject, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, update, useRecursiveModifiedTestpublic java.lang.String _path
@Deprecated public java.lang.Class _type
public java.lang.String _stringClass
public HecFile _file
public boolean _directory
public Identifier()
public Identifier(java.lang.String path)
public Identifier(java.lang.String path,
HecFile file)
public Identifier(Identifier argId)
public static java.lang.Object instantiateRmiFile(Identifier id, java.lang.String extension, java.lang.Object[] constructorArgs)
public void copy(Identifier argId)
public void setFile(HecFile file)
file - public void setPath(java.lang.String path)
pathg - public java.lang.String getPath()
public HecFile getFile()
public java.lang.String toString()
public java.lang.String paramString()
@Deprecated public void setType(java.lang.Class type)
@Deprecated public java.lang.Class getType()
public void setClassName(java.lang.String type)
public java.lang.String getClassName()
public long length()
public long lastModified()
public void setLength(long length)
public void setLastModified(long lastModified)
public void setReadOnly(boolean b)
public boolean isReadOnly()
public void setHidden(boolean b)
public boolean isHidden()
public void setIsDirectory(boolean isDirectory)
public boolean isDirectory()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(java.lang.Object obj)
public void initToFile(java.io.File file)