railo.commons.io.res.type.ram
Class RamResourceCore

java.lang.Object
  extended by railo.commons.io.res.type.ram.RamResourceCore
All Implemented Interfaces:
Serializable

public final class RamResourceCore
extends Object
implements Serializable

Core of a Ram Resource, holds the concrete data for a existing resource

See Also:
Serialized Form

Field Summary
static int TYPE_DIRECTORY
          Directory Resource
static int TYPE_FILE
          Directory Resource
 
Constructor Summary
RamResourceCore(RamResourceCore parent, int type, String name)
          Konstruktor
 
Method Summary
 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.
 
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
Directory Resource

See Also:
Constant Field Values

TYPE_FILE

public static final int TYPE_FILE
Directory Resource

See Also:
Constant Field Values
Constructor Detail

RamResourceCore

public RamResourceCore(RamResourceCore parent,
                       int type,
                       String name)
Konstruktor

Parameters:
parent -
type -
name -
caseSensitive -
Method Detail

getLastModified

public long getLastModified()
Gibt den Feldnamen lastModified zurueck.

Returns:
lastModified

setLastModified

public void setLastModified(long lastModified)
Setzt den Feldnamen lastModified.

Parameters:
lastModified - lastModified

getChildNames

public String[] getChildNames()
Gibt den Feldnamen children zurueck.

Returns:
children

setChildren

public void setChildren(List children)
Setzt den Feldnamen children.

Parameters:
children - children

getData

public byte[] getData()
Gibt den Feldnamen data zurueck.

Returns:
data

setData

public void setData(byte[] data,
                    boolean append)
Setzt den Feldnamen data.

Parameters:
data - data
append -

getName

public String getName()
Gibt den Feldnamen name zurueck.

Returns:
name

setName

public void setName(String name)
Setzt den Feldnamen name.

Parameters:
name - name

getType

public int getType()
Gibt den Feldnamen type zurueck.

Returns:
type

setType

public void setType(int type)
Setzt den Feldnamen type.

Parameters:
type - type

addChild

public void addChild(RamResourceCore child)

getChild

public RamResourceCore getChild(String name,
                                boolean caseSensitive)
returns a child that match given name

Parameters:
name -
Returns:
matching child

getParent

public RamResourceCore getParent()
returns the parent if this core

Returns:
parent core or null if no parent available

removeChild

public void removeChild(RamResourceCore core)
remove given child from this core

Parameters:
core -

getMode

public int getMode()
Returns:
the mode

setMode

public void setMode(int mode)
Parameters:
mode - the mode to set

getAttributes

public int getAttributes()

setAttributes

public void setAttributes(int attributes)

remove

public void remove()


Copyright © 2012 Railo