com.francetelecom.admindm.model
Class ParameterData

java.lang.Object
  extended by java.util.Observable
      extended by com.francetelecom.admindm.model.ParameterData
All Implemented Interfaces:
IParameterData, java.util.Observer

public final class ParameterData
extends java.util.Observable
implements IParameterData, java.util.Observer

The Class ParameterData.


Constructor Summary
ParameterData()
          Instantiates a new parameter data.
 
Method Summary
 void addEvent(EventStruct eventStruct)
          Adds the event.
 void addOrUpdateParameter(Parameter param, java.lang.String updater)
          Adds the or update parameter.
 void addOutgoingRequest(RPCMethod rpcMethod)
          Adds the outgoing request.
 Parameter createOrRetrieveParameter(java.lang.String key)
          Creates the or retrieve parameter.
 void deleteEvent(EventStruct eventStruct)
          Delete event.
 void deleteParam(Parameter param)
          Delete param.
 java.util.List extractParameterList(java.lang.String searchName)
          Extract parameter list.
 java.util.List extractParameterList(java.lang.String[] parameterNames)
          Extract parameter list.
 ICom getCom()
          Gets the com.
 DeviceIdStruct getDeviceId()
          Gets the device id.
 java.util.Iterator getEventIterator()
          Gets the event iterator.
 java.lang.Object[] getEventsArray()
          Gets the events array.
 java.util.List getLsOutgoingRequest()
          Gets the list of outgoing request.
 Parameter getParameter(java.lang.String value)
          Gets the parameter.
 java.util.Iterator getParameterIterator()
          Gets the parameter iterator.
 java.lang.String getParameterKey()
          Gets the parameter key.
 java.lang.Object[] getParametersArray()
          Gets the parameters array.
 IPersist getPersist()
          Gets the persist.
 java.lang.String getRoot()
          Gets the root of the data model.
 java.util.Set getSetParamChanged()
          Gets the sets the param changed.
 boolean isModelLoaded()
          Checks if is model loaded.
 void removeOutgoingRequest(RPCMethod rpcMethod)
          Removes the outgoing request.
protected  void restoreEvents()
          Restore events.
 void setCom(ICom pCom)
          Sets the com.
 void setEventFile(java.io.File pEventFile)
          Sets the event file.
 void setModelLoaded(boolean pIsModelLoaded)
          Sets the model loaded.
 void setParameterKey(java.lang.String pParameterKey)
          Sets the parameter key.
 void setPersist(IPersist persist)
          Sets the persist.
 void setRoot(java.lang.String pRoot)
          Sets the root.
protected  void storeEvent()
          Store data will persist the list of Event.
 java.lang.String toString()
          To string (very useful for debug).
 void update(java.util.Observable arg0, java.lang.Object arg1)
          Update.
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.francetelecom.admindm.model.IParameterData
addObserver
 

Constructor Detail

ParameterData

public ParameterData()
Instantiates a new parameter data.

Method Detail

getPersist

public IPersist getPersist()
Gets the persist.

Returns:
the persist

setPersist

public void setPersist(IPersist persist)
Sets the persist.

Parameters:
persist - the new persist

setEventFile

public void setEventFile(java.io.File pEventFile)
Sets the event file.

Parameters:
pEventFile - the event file

getLsOutgoingRequest

public java.util.List getLsOutgoingRequest()
Gets the list of outgoing request.

Specified by:
getLsOutgoingRequest in interface IParameterData
Returns:
the list of outgoing request

getParameterIterator

public java.util.Iterator getParameterIterator()
Gets the parameter iterator.

Specified by:
getParameterIterator in interface IParameterData
Returns:
the parameter iterator

isModelLoaded

public boolean isModelLoaded()
Checks if is model loaded.

Specified by:
isModelLoaded in interface IParameterData
Returns:
true, if checks if is model loaded

setModelLoaded

public void setModelLoaded(boolean pIsModelLoaded)
Sets the model loaded.

Specified by:
setModelLoaded in interface IParameterData
Parameters:
pIsModelLoaded - the is model loaded

getParameter

public Parameter getParameter(java.lang.String value)
Gets the parameter.

Specified by:
getParameter in interface IParameterData
Parameters:
value - the value
Returns:
the parameter

createOrRetrieveParameter

public Parameter createOrRetrieveParameter(java.lang.String key)
                                    throws Fault
Creates the or retrieve parameter.

Specified by:
createOrRetrieveParameter in interface IParameterData
Parameters:
key - the key
Returns:
the parameter
Throws:
Fault - the fault

addOrUpdateParameter

public void addOrUpdateParameter(Parameter param,
                                 java.lang.String updater)
                          throws Fault
Adds the or update parameter.

Specified by:
addOrUpdateParameter in interface IParameterData
Parameters:
param - the param
updater - the updater
Throws:
Fault - the fault

extractParameterList

public java.util.List extractParameterList(java.lang.String searchName)
                                    throws Fault
Extract parameter list.

Specified by:
extractParameterList in interface IParameterData
Parameters:
searchName - the names
Returns:
the list
Throws:
Fault - the fault

extractParameterList

public java.util.List extractParameterList(java.lang.String[] parameterNames)
                                    throws Fault
Extract parameter list.

Specified by:
extractParameterList in interface IParameterData
Parameters:
parameterNames - the parameter names
Returns:
the list
Throws:
Fault - the fault

deleteParam

public void deleteParam(Parameter param)
Delete param.

Specified by:
deleteParam in interface IParameterData
Parameters:
param - the param

addEvent

public void addEvent(EventStruct eventStruct)
Adds the event.

Specified by:
addEvent in interface IParameterData
Parameters:
eventStruct - the event struct

restoreEvents

protected void restoreEvents()
Restore events.


storeEvent

protected void storeEvent()
Store data will persist the list of Event.


deleteEvent

public void deleteEvent(EventStruct eventStruct)
Delete event.

Specified by:
deleteEvent in interface IParameterData
Parameters:
eventStruct - the event struct

getParametersArray

public java.lang.Object[] getParametersArray()
Gets the parameters array.

Specified by:
getParametersArray in interface IParameterData
Returns:
the parameters array

getDeviceId

public DeviceIdStruct getDeviceId()
Gets the device id.

Specified by:
getDeviceId in interface IParameterData
Returns:
the device id

getEventIterator

public java.util.Iterator getEventIterator()
Gets the event iterator.

Returns:
the event iterator

setParameterKey

public void setParameterKey(java.lang.String pParameterKey)
Sets the parameter key.

Specified by:
setParameterKey in interface IParameterData
Parameters:
pParameterKey - the parameter key

getParameterKey

public java.lang.String getParameterKey()
Gets the parameter key.

Specified by:
getParameterKey in interface IParameterData
Returns:
the parameter key

addOutgoingRequest

public void addOutgoingRequest(RPCMethod rpcMethod)
Adds the outgoing request.

Specified by:
addOutgoingRequest in interface IParameterData
Parameters:
rpcMethod - the rpc method

getCom

public ICom getCom()
Gets the com.

Specified by:
getCom in interface IParameterData
Returns:
the com

setCom

public void setCom(ICom pCom)
Sets the com.

Specified by:
setCom in interface IParameterData
Parameters:
pCom - the com

removeOutgoingRequest

public void removeOutgoingRequest(RPCMethod rpcMethod)
Removes the outgoing request.

Specified by:
removeOutgoingRequest in interface IParameterData
Parameters:
rpcMethod - the rpc method

getEventsArray

public java.lang.Object[] getEventsArray()
Gets the events array.

Specified by:
getEventsArray in interface IParameterData
Returns:
the events array
See Also:
IParameterData.getEventsArray()

getRoot

public java.lang.String getRoot()
Gets the root of the data model.

Specified by:
getRoot in interface IParameterData
Returns:
the root

setRoot

public void setRoot(java.lang.String pRoot)
Sets the root.

Specified by:
setRoot in interface IParameterData
Parameters:
pRoot - the root

update

public void update(java.util.Observable arg0,
                   java.lang.Object arg1)
Update.

Specified by:
update in interface java.util.Observer
Parameters:
arg0 - the arg0
arg1 - the arg1
See Also:
Observer.update(java.util.Observable, java.lang.Object)

toString

public java.lang.String toString()
To string (very useful for debug).

Overrides:
toString in class java.lang.Object
Returns:
the string
See Also:
Object.toString()

getSetParamChanged

public java.util.Set getSetParamChanged()
Description copied from interface: IParameterData
Gets the sets the param changed.

Specified by:
getSetParamChanged in interface IParameterData
Returns:
the sets the param changed


Copyright © 2011 FranceTelecom. All Rights Reserved.