org.codehaus.plexus.components.io.attributes
Class FileAttributes

java.lang.Object
  extended by org.codehaus.plexus.components.io.attributes.FileAttributes
All Implemented Interfaces:
PlexusIoResourceAttributes

public class FileAttributes
extends java.lang.Object
implements PlexusIoResourceAttributes


Field Summary
protected static int INDEX_GROUP_EXECUTE
           
protected static int INDEX_GROUP_READ
           
protected static int INDEX_GROUP_WRITE
           
protected static int INDEX_OWNER_EXECUTE
           
protected static int INDEX_OWNER_READ
           
protected static int INDEX_OWNER_WRITE
           
protected static int INDEX_WORLD_EXECUTE
           
protected static int INDEX_WORLD_READ
           
protected static int INDEX_WORLD_WRITE
           
protected static char VALUE_DISABLED_MODE
           
protected static char VALUE_EXECUTABLE_MODE
           
protected static char VALUE_READABLE_MODE
           
protected static char VALUE_WRITABLE_MODE
           
 
Constructor Summary
FileAttributes()
           
FileAttributes(int userId, java.lang.String userName, int groupId, java.lang.String groupName, char[] mode)
           
 
Method Summary
 java.lang.Integer getGroupId()
          Gets the unix group id.
 java.lang.String getGroupName()
           
protected  char[] getLsModeParts()
           
 int getOctalMode()
           
 java.lang.String getOctalModeString()
           
 java.lang.Integer getUserId()
          Gets the unix user id.
 java.lang.String getUserName()
           
 boolean isGroupExecutable()
           
 boolean isGroupReadable()
           
 boolean isGroupWritable()
           
 boolean isOwnerExecutable()
           
 boolean isOwnerReadable()
           
 boolean isOwnerWritable()
           
 boolean isWorldExecutable()
           
 boolean isWorldReadable()
           
 boolean isWorldWritable()
           
 PlexusIoResourceAttributes setGroupExecutable(boolean flag)
           
 PlexusIoResourceAttributes setGroupId(java.lang.Integer gid)
           
 PlexusIoResourceAttributes setGroupName(java.lang.String name)
           
 PlexusIoResourceAttributes setGroupReadable(boolean flag)
           
 PlexusIoResourceAttributes setGroupWritable(boolean flag)
           
 PlexusIoResourceAttributes setLsModeline(java.lang.String modeLine)
           
protected  void setLsModeParts(char[] mode)
           
 PlexusIoResourceAttributes setOctalMode(int mode)
           
 PlexusIoResourceAttributes setOctalModeString(java.lang.String mode)
           
 PlexusIoResourceAttributes setOwnerExecutable(boolean flag)
           
 PlexusIoResourceAttributes setOwnerReadable(boolean flag)
           
 PlexusIoResourceAttributes setOwnerWritable(boolean flag)
           
 PlexusIoResourceAttributes setUserId(java.lang.Integer uid)
           
 PlexusIoResourceAttributes setUserName(java.lang.String name)
           
 PlexusIoResourceAttributes setWorldExecutable(boolean flag)
           
 PlexusIoResourceAttributes setWorldReadable(boolean flag)
           
 PlexusIoResourceAttributes setWorldWritable(boolean flag)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALUE_DISABLED_MODE

protected static final char VALUE_DISABLED_MODE
See Also:
Constant Field Values

VALUE_WRITABLE_MODE

protected static final char VALUE_WRITABLE_MODE
See Also:
Constant Field Values

VALUE_READABLE_MODE

protected static final char VALUE_READABLE_MODE
See Also:
Constant Field Values

VALUE_EXECUTABLE_MODE

protected static final char VALUE_EXECUTABLE_MODE
See Also:
Constant Field Values

INDEX_WORLD_EXECUTE

protected static final int INDEX_WORLD_EXECUTE
See Also:
Constant Field Values

INDEX_WORLD_WRITE

protected static final int INDEX_WORLD_WRITE
See Also:
Constant Field Values

INDEX_WORLD_READ

protected static final int INDEX_WORLD_READ
See Also:
Constant Field Values

INDEX_GROUP_EXECUTE

protected static final int INDEX_GROUP_EXECUTE
See Also:
Constant Field Values

INDEX_GROUP_WRITE

protected static final int INDEX_GROUP_WRITE
See Also:
Constant Field Values

INDEX_GROUP_READ

protected static final int INDEX_GROUP_READ
See Also:
Constant Field Values

INDEX_OWNER_EXECUTE

protected static final int INDEX_OWNER_EXECUTE
See Also:
Constant Field Values

INDEX_OWNER_WRITE

protected static final int INDEX_OWNER_WRITE
See Also:
Constant Field Values

INDEX_OWNER_READ

protected static final int INDEX_OWNER_READ
See Also:
Constant Field Values
Constructor Detail

FileAttributes

public FileAttributes(int userId,
                      java.lang.String userName,
                      int groupId,
                      java.lang.String groupName,
                      char[] mode)

FileAttributes

public FileAttributes()
Method Detail

getLsModeParts

protected char[] getLsModeParts()

setLsModeParts

protected void setLsModeParts(char[] mode)

getGroupId

public java.lang.Integer getGroupId()
Description copied from interface: PlexusIoResourceAttributes
Gets the unix group id.

Specified by:
getGroupId in interface PlexusIoResourceAttributes
Returns:
The unix group id, may be null ("not set"), even on unix

getGroupName

public java.lang.String getGroupName()
Specified by:
getGroupName in interface PlexusIoResourceAttributes

getUserId

public java.lang.Integer getUserId()
Description copied from interface: PlexusIoResourceAttributes
Gets the unix user id.

Specified by:
getUserId in interface PlexusIoResourceAttributes
Returns:
The unix user id, may be null ("not set"), even on unix

getUserName

public java.lang.String getUserName()
Specified by:
getUserName in interface PlexusIoResourceAttributes

isGroupExecutable

public boolean isGroupExecutable()
Specified by:
isGroupExecutable in interface PlexusIoResourceAttributes

isGroupReadable

public boolean isGroupReadable()
Specified by:
isGroupReadable in interface PlexusIoResourceAttributes

isGroupWritable

public boolean isGroupWritable()
Specified by:
isGroupWritable in interface PlexusIoResourceAttributes

isOwnerExecutable

public boolean isOwnerExecutable()
Specified by:
isOwnerExecutable in interface PlexusIoResourceAttributes

isOwnerReadable

public boolean isOwnerReadable()
Specified by:
isOwnerReadable in interface PlexusIoResourceAttributes

isOwnerWritable

public boolean isOwnerWritable()
Specified by:
isOwnerWritable in interface PlexusIoResourceAttributes

isWorldExecutable

public boolean isWorldExecutable()
Specified by:
isWorldExecutable in interface PlexusIoResourceAttributes

isWorldReadable

public boolean isWorldReadable()
Specified by:
isWorldReadable in interface PlexusIoResourceAttributes

isWorldWritable

public boolean isWorldWritable()
Specified by:
isWorldWritable in interface PlexusIoResourceAttributes

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getOctalMode

public int getOctalMode()
Specified by:
getOctalMode in interface PlexusIoResourceAttributes

getOctalModeString

public java.lang.String getOctalModeString()
Specified by:
getOctalModeString in interface PlexusIoResourceAttributes

setGroupExecutable

public PlexusIoResourceAttributes setGroupExecutable(boolean flag)
Specified by:
setGroupExecutable in interface PlexusIoResourceAttributes

setGroupId

public PlexusIoResourceAttributes setGroupId(java.lang.Integer gid)
Specified by:
setGroupId in interface PlexusIoResourceAttributes

setGroupName

public PlexusIoResourceAttributes setGroupName(java.lang.String name)
Specified by:
setGroupName in interface PlexusIoResourceAttributes

setGroupReadable

public PlexusIoResourceAttributes setGroupReadable(boolean flag)
Specified by:
setGroupReadable in interface PlexusIoResourceAttributes

setGroupWritable

public PlexusIoResourceAttributes setGroupWritable(boolean flag)
Specified by:
setGroupWritable in interface PlexusIoResourceAttributes

setOwnerExecutable

public PlexusIoResourceAttributes setOwnerExecutable(boolean flag)
Specified by:
setOwnerExecutable in interface PlexusIoResourceAttributes

setOwnerReadable

public PlexusIoResourceAttributes setOwnerReadable(boolean flag)
Specified by:
setOwnerReadable in interface PlexusIoResourceAttributes

setOwnerWritable

public PlexusIoResourceAttributes setOwnerWritable(boolean flag)
Specified by:
setOwnerWritable in interface PlexusIoResourceAttributes

setUserId

public PlexusIoResourceAttributes setUserId(java.lang.Integer uid)
Specified by:
setUserId in interface PlexusIoResourceAttributes

setUserName

public PlexusIoResourceAttributes setUserName(java.lang.String name)
Specified by:
setUserName in interface PlexusIoResourceAttributes

setWorldExecutable

public PlexusIoResourceAttributes setWorldExecutable(boolean flag)
Specified by:
setWorldExecutable in interface PlexusIoResourceAttributes

setWorldReadable

public PlexusIoResourceAttributes setWorldReadable(boolean flag)
Specified by:
setWorldReadable in interface PlexusIoResourceAttributes

setWorldWritable

public PlexusIoResourceAttributes setWorldWritable(boolean flag)
Specified by:
setWorldWritable in interface PlexusIoResourceAttributes

setLsModeline

public PlexusIoResourceAttributes setLsModeline(java.lang.String modeLine)

setOctalMode

public PlexusIoResourceAttributes setOctalMode(int mode)
Specified by:
setOctalMode in interface PlexusIoResourceAttributes

setOctalModeString

public PlexusIoResourceAttributes setOctalModeString(java.lang.String mode)
Specified by:
setOctalModeString in interface PlexusIoResourceAttributes


Copyright © 2001-2011 Codehaus. All Rights Reserved.