Data Request Broker
2-3-release

fr.gael.drb.impl.file
Class FileProvider

java.lang.Object
  extended by fr.gael.drb.impl.DrbProvider
      extended by fr.gael.drb.impl.file.FileProvider

public final class FileProvider
extends DrbProvider

File provider.


Constructor Summary
protected FileProvider(FileNode file_node)
          Build a file provider with the file
 
Method Summary
protected  void attachParent(FileProvider parent)
          This method attach the parend file
 void commit()
          This method commit the provider
 String getIdentifier()
          This method get the identifier
 String getName()
          This method gets the name
 Object getProperty(String name)
          This method get the value of the file name
 void setProperty(String name, Object value)
          This method sets the properties of the file which have the name in params
 
Methods inherited from class fr.gael.drb.impl.DrbProvider
hasFeature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileProvider

protected FileProvider(FileNode file_node)
Build a file provider with the file

Parameters:
file_node - the file node
Method Detail

getName

public String getName()
This method gets the name

Specified by:
getName in class DrbProvider
Returns:
String the file name

getIdentifier

public String getIdentifier()
This method get the identifier

Specified by:
getIdentifier in class DrbProvider
Returns:
String the identifier

setProperty

public void setProperty(String name,
                        Object value)
                 throws IllegalArgumentException
This method sets the properties of the file which have the name in params

Overrides:
setProperty in class DrbProvider
Parameters:
name - the name of the file
value - the object value
Throws:
IllegalArgumentException - This exception is raised when the property name is not supported

getProperty

public Object getProperty(String name)
This method get the value of the file name

Overrides:
getProperty in class DrbProvider
Parameters:
name - the name of the file
Returns:
Object the value of this file

commit

public void commit()
This method commit the provider

Specified by:
commit in class DrbProvider

attachParent

protected void attachParent(FileProvider parent)
This method attach the parend file

Parameters:
parent - the file parent provider

Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .