public final class RamResourceCore extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_DIRECTORY
Directory Resource
|
static int |
TYPE_FILE
Directory Resource
|
Constructor and Description |
---|
RamResourceCore(RamResourceCore parent,
int type,
String name)
Konstruktor
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(RamResourceCore child) |
int |
getAttributes() |
RamResourceCore |
getChild(String name,
boolean caseSensitive)
returns a child that match given name
|
String[] |
getChildNames()
Gibt den Feldnamen children zurueck.
|
byte[] |
getData()
Gibt den Feldnamen data zurueck.
|
long |
getLastModified()
Gibt den Feldnamen lastModified zurueck.
|
int |
getMode() |
String |
getName()
Gibt den Feldnamen name zurueck.
|
RamResourceCore |
getParent()
returns the parent if this core
|
int |
getType()
Gibt den Feldnamen type zurueck.
|
void |
remove() |
void |
removeChild(RamResourceCore core)
remove given child from this core
|
void |
setAttributes(int attributes) |
void |
setChildren(List children)
Setzt den Feldnamen children.
|
void |
setData(byte[] data,
boolean append)
Setzt den Feldnamen data.
|
void |
setLastModified(long lastModified)
Setzt den Feldnamen lastModified.
|
void |
setMode(int mode) |
void |
setName(String name)
Setzt den Feldnamen name.
|
void |
setType(int type)
Setzt den Feldnamen type.
|
public static final int TYPE_DIRECTORY
public static final int TYPE_FILE
public RamResourceCore(RamResourceCore parent, int type, String name)
parent
- type
- name
- caseSensitive
- public long getLastModified()
public void setLastModified(long lastModified)
lastModified
- lastModifiedpublic String[] getChildNames()
public void setChildren(List children)
children
- childrenpublic byte[] getData()
public void setData(byte[] data, boolean append)
data
- dataappend
- public int getType()
public void setType(int type)
type
- typepublic void addChild(RamResourceCore child)
public RamResourceCore getChild(String name, boolean caseSensitive)
name
- public RamResourceCore getParent()
public void removeChild(RamResourceCore core)
core
- public int getMode()
public void setMode(int mode)
mode
- the mode to setpublic int getAttributes()
public void setAttributes(int attributes)
public void remove()
Copyright © 2015 Lucee