|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.resources.ResourceAttributes
public class ResourceAttributes
This class represents platform specific attributes of files. Any attributes can be added, but only the attributes that are supported by the platform will be used. These methods do not set the attributes in the file system.
This class is not intended to be subclassed. This class may be instantiated.
IResource.getResourceAttributes(),
IResource.setResourceAttributes(ResourceAttributes)| Constructor Summary | |
|---|---|
ResourceAttributes()
Creates a new instance of ResourceAttributes. |
|
| Method Summary | |
|---|---|
static ResourceAttributes |
fromFile(File file)
Creates a new resource attributes instance with attributes taken from the specified file in the file system. |
boolean |
isArchive()
Returns whether this ResourceAttributes object is marked archive. |
boolean |
isExecutable()
Returns whether this ResourceAttributes object is marked executable. |
boolean |
isHidden()
Returns whether this ResourceAttributes object is marked hidden. |
boolean |
isReadOnly()
Returns whether this ResourceAttributes object is marked read only. |
void |
setArchive(boolean archive)
Sets or unsets whether this ResourceAttributes object is marked archive. |
void |
setExecutable(boolean executable)
Sets or unsets whether this ResourceAttributes object is marked executable. |
void |
setHidden(boolean hidden)
Sets or unsets whether this ResourceAttributes object is marked hidden |
void |
setReadOnly(boolean readOnly)
Sets or unsets whether this ResourceAttributes object is marked read only. |
String |
toString()
Returns a string representation of the attributes, suitable for debugging purposes only. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceAttributes()
ResourceAttributes.
| Method Detail |
|---|
public static ResourceAttributes fromFile(File file)
file - The file to get attributes from
public boolean isArchive()
true if this resource is marked archive,
false otherwisesetArchive(boolean)public boolean isExecutable()
true if this resource is marked executable,
false otherwisesetExecutable(boolean)public boolean isHidden()
true if this resource is marked hidden,
false otherwisesetHidden(boolean)public boolean isReadOnly()
true if this resource is marked as read only,
false otherwisesetReadOnly(boolean)public void setArchive(boolean archive)
archive - true to set it to be archive,
false to unsetisArchive()public void setExecutable(boolean executable)
executable - true to set it to be executable,
false to unsetisExecutable()public void setHidden(boolean hidden)
hidden - true to set it to be marked hidden,
false to unsetisHidden()public void setReadOnly(boolean readOnly)
readOnly - true to set it to be marked read only,
false to unsetisReadOnly()public String toString()
toString in class Object
|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.