|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.DrbDefaultNodesChangeProducer
fr.gael.drb.DrbAbstractNode
fr.gael.drb.impl.DrbNodeImpl
fr.gael.drb.impl.spi.DrbNodeSpi
fr.gael.drb.impl.file.File
public final class File
File or Directory of a local file system. This implementation breaks down the local file system into file and directories. It is useful to browse the local file system as a file manager. The file nodes have no specific attribute.
Thread safe strategy: This class is thread safe. The strategy to prevent access collisions between two or more treads, all the writting accesses to the ressources (i.e. attributes of this class) that may be changed by a thread are synchronised. Only the accesses occurring after the constructor are affected by this rule.
| Field Summary |
|---|
| Fields inherited from class fr.gael.drb.impl.spi.DrbNodeSpi |
|---|
baseNode |
| Fields inherited from interface fr.gael.drb.DrbItem |
|---|
ATTRIBUTE_ITEM, NODE_ITEM, UNDEFINED_ITEM, VALUE_ITEM |
| Constructor Summary | |
|---|---|
protected |
File(File file)
Builds a File instance. |
|
File(File file,
File[] children,
File[] parent_children)
Deprecated. This constructor shall not be used. |
protected |
File(FileNode file_node)
Builds a File instance. |
| Method Summary | |
|---|---|
DrbNode |
createNewFile(String file_name)
Deprecated. As of DRB 2.0, added createNode |
DrbNode |
createNode(String name)
Create a node with the specified name. |
protected fr.gael.drb.impl.spi.DrbNodeSpi |
DrbNodeSpi(DrbNode base_node,
DrbNode parent)
Builds a getInstance from a base node and a parent TODO : this operation shall raise an exception in case of null parameter. |
| Methods inherited from class fr.gael.drb.impl.spi.DrbNodeSpi |
|---|
addNodesChangeListener, allowsMultiOccurrence, appendChild, close, equals, getAttribute, getAttributes, getChildAt, getChildren, getChildrenCount, getContent, getFirstChild, getImpl, getIndex, getLastChild, getName, getNamedChild, getNamespaceBindings, getNamespaceURI, getNextSibling, getParent, getPath, getPreviousSibling, getSubImplChildren, getSubImplFactory, getValue, getValueType, getXPathName, hasChild, hasImpl, insertChild, removeChild, removeNodesChangeListener, rename, replaceChild, setAttributes, setNamespaceURI, setSchema, setValue |
| Methods inherited from class fr.gael.drb.impl.DrbNodeImpl |
|---|
createAttribute, flush, getProvider |
| Methods inherited from class fr.gael.drb.DrbAbstractNode |
|---|
appendReference, getItemType, getOccurrence, getRoot, getXPathName, setNamespaceBindings, toString |
| Methods inherited from class fr.gael.drb.DrbDefaultNodesChangeProducer |
|---|
getListenerList, nodesChanged, nodesInserted, nodesRemoved, setListenerList, structureChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public File(File file,
File[] children,
File[] parent_children)
file - The Java File to be wrapped.children - The list of children if already known or null.parent_children - The children of the parent if already known or
null.protected File(File file)
file - The Java File to be wrapped.protected File(FileNode file_node)
file_node - The File node to be wrapped.| Method Detail |
|---|
protected fr.gael.drb.impl.spi.DrbNodeSpi DrbNodeSpi(DrbNode base_node,
DrbNode parent)
base_node - The node to be wrapped. This parameter shall never be
null.
public DrbNode createNode(String name)
throws NullPointerException,
UnsupportedOperationException
createNode in class DrbNodeImplname - The expected name of the node.
NullPointerException - This exception is raised when the name
provided in parameter is null.
UnsupportedOperationException - This exception is raised when the
implementation is not able to create a node.
public DrbNode createNewFile(String file_name)
throws NullPointerException,
UnsupportedOperationException,
IOException,
SecurityException
Events: This operation fires a node change event. The node affected by the change is the added node and the source is the current node. The called operation is the nodesInserted() of the listeners.
file_name - The expected name of the file.
NullPointerException - This exception is raised when the name
provided in parameter is null.
UnsupportedOperationException - This exception is raised when the
current node is node a directory.
IOException - This exception is raised when the new file cannot be
created in the current directory.
SecurityException - This exception is raised when a security manager
exists and its SecurityManager.checkWrite
(java.io.FileDescriptor) method denies write access to the file
be created in the current directory.createNode(java.lang.String)
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||