|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjects.Record
de.mguennewig.pobjects.filesystem.FileRecord
public class FileRecord
A (read-only) wrapper around a File to map it into pobjects.
This underlying File can not be manipulated with pobjects,
it is just for read-only purposes.
| Field Summary | |
|---|---|
static Field |
ATTR_MODIFIED
|
static Field |
ATTR_NAME
|
static Field |
ATTR_PARENT
|
static Field |
ATTR_SIZE
|
static Field |
ATTR_TYPE
|
static TimeStampType |
ATYPE_MODIFIED
|
static StringType |
ATYPE_NAME
|
static StringType |
ATYPE_PARENT
|
static NumericType |
ATYPE_SIZE
|
static StringType |
ATYPE_TYPE
|
static ClassDecl |
CDECL_FILE_RECORD
|
static java.lang.String |
TYPE_DIRECTORY
|
static java.lang.String |
TYPE_FILE
|
static java.lang.String |
TYPE_INVALID
The file name contains non-ASCII characters, which Java does not handle correctly. |
static java.lang.String |
TYPE_SPECIAL
|
| Constructor Summary | |
|---|---|
FileRecord(java.io.File file)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
get(int f)
Get value of field with index index. |
ClassDecl |
getClassDecl()
|
java.io.File |
getFile()
|
java.math.BigInteger |
getModified()
|
java.lang.String |
getName()
|
java.lang.String |
getParent()
|
java.math.BigInteger |
getSize()
|
TableExpr |
getTableExpr()
Returns the metadata declaration for this Record. |
java.lang.String |
getType()
|
void |
set(int f,
java.lang.Object value)
Set value of field with index index. |
| Methods inherited from class de.mguennewig.pobjects.Record |
|---|
format, get, set |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TYPE_INVALID
public static final java.lang.String TYPE_DIRECTORY
public static final java.lang.String TYPE_FILE
public static final java.lang.String TYPE_SPECIAL
public static final StringType ATYPE_PARENT
public static final Field ATTR_PARENT
public static final StringType ATYPE_NAME
public static final Field ATTR_NAME
public static final NumericType ATYPE_SIZE
public static final Field ATTR_SIZE
public static final StringType ATYPE_TYPE
public static final Field ATTR_TYPE
public static final TimeStampType ATYPE_MODIFIED
public static final Field ATTR_MODIFIED
public static final ClassDecl CDECL_FILE_RECORD
| Constructor Detail |
|---|
public FileRecord(java.io.File file)
| Method Detail |
|---|
public final ClassDecl getClassDecl()
PObject.getClassDecl()public TableExpr getTableExpr()
Record.
getTableExpr in class Recordpublic final java.io.File getFile()
public final java.lang.String getParent()
public final java.lang.String getName()
public final java.math.BigInteger getSize()
public final java.lang.String getType()
public final java.math.BigInteger getModified()
public java.lang.Object get(int f)
index.
This method is primarily intended for use by procedures that work on
meta level of de.mguennewig.pobjects. It differs from the per
field getXXX() methods in that it does not load the object's
data if it is not in memory. If unsure whether the object's state has been
internalized, then any call to this method must be preceded by a
call to PObject.loadIfReference().
get in class Record
public final void set(int f,
java.lang.Object value)
index.
This method is primarily intended for use by procedures that work on
meta level of de.mguennewig.pobjects. It differs from the per
field setXXX() methods in that it does not load the object's
data if it is not in memory. If unsure whether the object's state has been
internalized, then any call to this method must be preceded by a
call to PObject.loadIfReference().
set in class Recordjava.lang.IllegalArgumentException - as this object can not be modified
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||