railo.commons.io.res.type.datasource
Class Attr

java.lang.Object
  extended by railo.commons.io.res.type.datasource.Attr

public class Attr
extends Object


Field Summary
static int TYPE_DIRECTORY
           
static int TYPE_FILE
           
static int TYPE_LINK
           
static int TYPE_UNDEFINED
           
 
Constructor Summary
Attr(int id, String name, String parent, boolean exists, int type, int size, long lastModified, short mode, short attributes, int data)
           
 
Method Summary
 boolean exists()
           
 short getAttributes()
           
 int getData()
           
 int getId()
           
 long getLastModified()
           
 short getMode()
           
 String getName()
           
 String getParent()
           
 int getType()
           
 boolean isDirectory()
           
 boolean isFile()
           
static Attr notExists(String name, String parent)
           
 int size()
           
 long timestamp()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_DIRECTORY

public static final int TYPE_DIRECTORY
See Also:
Constant Field Values

TYPE_FILE

public static final int TYPE_FILE
See Also:
Constant Field Values

TYPE_LINK

public static final int TYPE_LINK
See Also:
Constant Field Values

TYPE_UNDEFINED

public static final int TYPE_UNDEFINED
See Also:
Constant Field Values
Constructor Detail

Attr

public Attr(int id,
            String name,
            String parent,
            boolean exists,
            int type,
            int size,
            long lastModified,
            short mode,
            short attributes,
            int data)
Method Detail

getData

public int getData()
Returns:
the data

notExists

public static Attr notExists(String name,
                             String parent)

getLastModified

public long getLastModified()
Returns:
the lastModified

getId

public int getId()
Returns:
the id

getName

public String getName()
Returns:
the name

getParent

public String getParent()
Returns:
the parent

getMode

public short getMode()
Returns:
the mode

getAttributes

public short getAttributes()
Returns:
the attributes

exists

public boolean exists()

isFile

public boolean isFile()

isDirectory

public boolean isDirectory()

size

public int size()

timestamp

public long timestamp()

getType

public int getType()
Returns:
the type


Copyright © 2012 Railo