com.francetelecom.admindm.model
Class Parameter

java.lang.Object
  extended by java.util.Observable
      extended by com.francetelecom.admindm.model.Parameter

public final class Parameter
extends java.util.Observable

The Class Parameter.

Author:
Olivier Beyler - OrangeLabs -

Constructor Summary
Parameter()
           
 
Method Summary
 void addCheck(CheckCallBack check)
          Adds the check.
 void check(java.lang.Object pValue)
          Check.
 void clearChanged()
          clear change tag.
 java.lang.String[] getAccessList()
          Gets the access list.
 java.lang.Object getBackValue()
          Gets the back value.
protected static java.lang.Object getBOOLEAN(java.lang.String key, java.lang.String value)
          Gets the bOOLEAN.
protected static java.lang.Long getDATE(java.lang.String key, java.lang.String value)
          Gets the dATE.
 Factory getFactory()
          Gets the factory.
protected static java.lang.Object getINT(java.lang.String key, java.lang.String value)
          Gets the iNT.
protected static java.lang.Object getLONG(java.lang.String key, java.lang.String value)
          Gets the lONG.
 java.util.List getLsCheckCallBack()
          Gets the list of check call back.
 java.lang.String getName()
          Gets the name.
 int getNotification()
          Gets the notification.
 IPersist getPersist()
          Gets the persist.
 int getState()
          Gets the state.
 int getStorageMode()
          Gets the storage mode.
 java.lang.String getTextValue(java.lang.String sessionId)
          Gets the text value.
 int getType()
          Gets the type.
protected static java.lang.Object getUINT(java.lang.String key, java.lang.String value)
          Gets the uINT.
 int getUpdateMode()
          Gets the update mode.
 java.lang.Object getValue()
          Gets the value.
 java.lang.Object getValue(java.lang.String sessionId)
          Gets the value.
static java.lang.Object getValue(java.lang.String key, java.lang.String value, int type)
          Gets the value.
 boolean isActiveNotificationDenied()
          Checks if is active notification denied.
 boolean isHidden()
          Checks if is hidden.
 boolean isImmediateChanges()
          Checks if is immediate changes.
 boolean isMandatoryNotification()
          Checks if is mandatory notification.
 boolean isWritable()
          Checks if is writable.
 void setAccessList(java.lang.String[] pAccessList)
          Sets the access list.
 void setActiveNotificationDenied(boolean pActiveNotificationDenied)
          Sets the active notification denied.
 void setBackValue(java.lang.Object pBackValue)
          Sets the back value.
 void setDirectValue(java.lang.Object pValue)
          Sets the value without use of setter.
 void setFactory(Factory pFactory)
          Sets the factory.
 void setGetter(Getter pGetter)
          Sets the getter.
 void setHidden(boolean hidden)
          Sets the hidden.
 void setImmediateChanges(boolean pImmediateChanges)
          Sets the immediate changes.
 void setMandatoryNotification(boolean pMandatoryNotification)
          Sets the mandatory notification.
 void setName(java.lang.String pName)
          Sets the name.
 void setNotification(int pNotification)
          Sets the notification.
 void setPersist(IPersist pPersist)
          Sets the persist.
 void setSetter(Setter pSetter)
          Sets the setter.
 void setState(int pState)
          Sets the state.
 void setStorageMode(int pStorageMode)
          Sets the storage mode.
 void setType(int pType)
          Sets the type.
 void setUpdateMode(int pUpdateMode)
          Sets the update mode.
 void setValue(java.lang.Object pValue)
          Sets the value.
 void setValueWithout(java.lang.Object pValue)
          Sets the value without saving.
 void setWritable(boolean pWritable)
          Sets the writable.
 java.lang.String toString()
          toString.
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Parameter

public Parameter()
Method Detail

getLsCheckCallBack

public java.util.List getLsCheckCallBack()
Gets the list of check call back.

Returns:
the list of check call back

setSetter

public void setSetter(Setter pSetter)
Sets the setter.

Parameters:
pSetter - the setter

setGetter

public void setGetter(Getter pGetter)
Sets the getter.

Parameters:
pGetter - the getter

getPersist

public IPersist getPersist()
Gets the persist.

Returns:
the persist

setPersist

public void setPersist(IPersist pPersist)
Sets the persist.

Parameters:
pPersist - the new persist

toString

public java.lang.String toString()
toString.

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

clearChanged

public void clearChanged()
clear change tag.

Overrides:
clearChanged in class java.util.Observable
See Also:
Observable.clearChanged()

getTextValue

public java.lang.String getTextValue(java.lang.String sessionId)
Gets the text value.

Parameters:
sessionId - the session id
Returns:
the text value

getName

public java.lang.String getName()
Gets the name.

Returns:
the name

setName

public void setName(java.lang.String pName)
             throws Fault
Sets the name.

Parameters:
pName - the new name
Throws:
Fault - the fault

getType

public int getType()
Gets the type.

Returns:
the type

setType

public void setType(int pType)
Sets the type.

Parameters:
pType - the new type

getStorageMode

public int getStorageMode()
Gets the storage mode.

Returns:
the storage mode

setStorageMode

public void setStorageMode(int pStorageMode)
Sets the storage mode.

Parameters:
pStorageMode - the new storage mode

isWritable

public boolean isWritable()
Checks if is writable.

Returns:
true, if is writable

setWritable

public void setWritable(boolean pWritable)
Sets the writable.

Parameters:
pWritable - the new writable

isImmediateChanges

public boolean isImmediateChanges()
Checks if is immediate changes.

Returns:
true, if is immediate changes

setImmediateChanges

public void setImmediateChanges(boolean pImmediateChanges)
Sets the immediate changes.

Parameters:
pImmediateChanges - the new immediate changes

getAccessList

public java.lang.String[] getAccessList()
Gets the access list.

Returns:
the access list

setAccessList

public void setAccessList(java.lang.String[] pAccessList)
Sets the access list.

Parameters:
pAccessList - the new access list

getNotification

public int getNotification()
Gets the notification.

Returns:
the notification

setNotification

public void setNotification(int pNotification)
Sets the notification.

Parameters:
pNotification - the new notification

isMandatoryNotification

public boolean isMandatoryNotification()
Checks if is mandatory notification.

Returns:
true, if is mandatory notification

setMandatoryNotification

public void setMandatoryNotification(boolean pMandatoryNotification)
Sets the mandatory notification.

Parameters:
pMandatoryNotification - the new mandatory notification

isActiveNotificationDenied

public boolean isActiveNotificationDenied()
Checks if is active notification denied.

Returns:
true, if is active notification denied

setActiveNotificationDenied

public void setActiveNotificationDenied(boolean pActiveNotificationDenied)
Sets the active notification denied.

Parameters:
pActiveNotificationDenied - the active notification denied

getUpdateMode

public int getUpdateMode()
Gets the update mode.

Returns:
the update mode

setUpdateMode

public void setUpdateMode(int pUpdateMode)
Sets the update mode.

Parameters:
pUpdateMode - the new update mode

getState

public int getState()
Gets the state.

Returns:
the state

setState

public void setState(int pState)
Sets the state.

Parameters:
pState - the new state

getBackValue

public java.lang.Object getBackValue()
Gets the back value.

Returns:
the back value

setBackValue

public void setBackValue(java.lang.Object pBackValue)
Sets the back value.

Parameters:
pBackValue - the new back value

getValue

public java.lang.Object getValue()
Gets the value.

Returns:
the value

getValue

public java.lang.Object getValue(java.lang.String sessionId)
Gets the value.

Parameters:
sessionId - the session id
Returns:
the value

setValue

public void setValue(java.lang.Object pValue)
              throws Fault
Sets the value.

Parameters:
pValue - the new value
Throws:
Fault - the fault

setDirectValue

public void setDirectValue(java.lang.Object pValue)
Sets the value without use of setter.

Parameters:
pValue - the new value

setValueWithout

public void setValueWithout(java.lang.Object pValue)
Sets the value without saving.

Parameters:
pValue - the new value

getValue

public static java.lang.Object getValue(java.lang.String key,
                                        java.lang.String value,
                                        int type)
                                 throws Fault
Gets the value.

Parameters:
value - the value
type - the type
key - the key
Returns:
the value
Throws:
Fault - the fault

getDATE

protected static java.lang.Long getDATE(java.lang.String key,
                                        java.lang.String value)
Gets the dATE.

Parameters:
value - the value
key - the key
Returns:
the dATE
Throws:
java.text.ParseException

getBOOLEAN

protected static java.lang.Object getBOOLEAN(java.lang.String key,
                                             java.lang.String value)
                                      throws Fault
Gets the bOOLEAN.

Parameters:
key - the key
value - the value
Returns:
the bOOLEAN
Throws:
Fault - the fault

getINT

protected static java.lang.Object getINT(java.lang.String key,
                                         java.lang.String value)
                                  throws Fault
Gets the iNT.

Parameters:
key - the key
value - the value
Returns:
the iNT
Throws:
Fault - the fault

getLONG

protected static java.lang.Object getLONG(java.lang.String key,
                                          java.lang.String value)
                                   throws Fault
Gets the lONG.

Parameters:
key - the key
value - the value
Returns:
the lONG
Throws:
Fault - the fault

getUINT

protected static java.lang.Object getUINT(java.lang.String key,
                                          java.lang.String value)
                                   throws Fault
Gets the uINT.

Parameters:
key - the key
value - the value
Returns:
the uINT
Throws:
Fault - the fault

check

public void check(java.lang.Object pValue)
           throws Fault
Check.

Parameters:
pValue - the value
Throws:
Fault - the fault

addCheck

public void addCheck(CheckCallBack check)
Adds the check.

Parameters:
check - the check

getFactory

public Factory getFactory()
Gets the factory.

Returns:
the factory

setFactory

public void setFactory(Factory pFactory)
Sets the factory.

Parameters:
pFactory - the new factory

setHidden

public void setHidden(boolean hidden)
Sets the hidden.

Parameters:
hidden - the new hidden

isHidden

public boolean isHidden()
Checks if is hidden.

Returns:
true, if is hidden


Copyright © 2011 FranceTelecom. All Rights Reserved.