|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.web_visage.ichat.FailSafeParameterAccessor
public class FailSafeParameterAccessor
Accessor implementation for a fail-safe parameter reading.
Allows the client to read any parameter without raising any exception. In case when a parameter isn't accessable or malformed, returns it's most probabale or default value.
Constructor Summary | |
---|---|
FailSafeParameterAccessor(java.lang.String[] aRawParameters)
Constructor. |
Method Summary | |
---|---|
int |
readInt(int anIdx)
Returns an int paramter by the given index. |
EnumStatus |
readStatus(int anIdx)
Returns a status parameter by the given index. |
java.lang.String |
readString(int anIdx)
Returns a string parameter by the given index. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FailSafeParameterAccessor(java.lang.String[] aRawParameters)
aRawParameters
- Method Detail |
---|
public java.lang.String readString(int anIdx)
IChatParameterAccessor
readString
in interface IChatParameterAccessor
anIdx
- -
parameter's index
IChatParameterAccessor.readString(int)
public EnumStatus readStatus(int anIdx)
IChatParameterAccessor
readStatus
in interface IChatParameterAccessor
anIdx
- -
parameter's index
IChatParameterAccessor.readStatus(int)
public int readInt(int anIdx)
IChatParameterAccessor
readInt
in interface IChatParameterAccessor
anIdx
- -
parameter's index
IChatParameterAccessor.readInt(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |