|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.kernel.exception.BasicException.Parameter
public static class BasicException.Parameter
The Parameter class represents a name-value pair. The name and value hold internally are always of type string.
| Field Summary | |
|---|---|
static String |
EXCEPTION_CLASS
Name of the parameter representing the excption's java class. |
static String |
EXCEPTION_SOURCE
Name of the parameter representing the excption's source set by {link @see BasicException#setSource(java.lang.Object) setSource()} |
| Constructor Summary | |
|---|---|
BasicException.Parameter(String name,
boolean value)
Creates a Parameter object. |
|
BasicException.Parameter(String name,
byte value)
Creates a Parameter object. |
|
BasicException.Parameter(String name,
char value)
Creates a Parameter object. |
|
BasicException.Parameter(String name,
double value)
Creates a Parameter object. |
|
BasicException.Parameter(String name,
float value)
Creates a Parameter object. |
|
BasicException.Parameter(String name,
int value)
Creates a Parameter object. |
|
BasicException.Parameter(String name,
long value)
Creates a Parameter object. |
|
BasicException.Parameter(String name,
long duration,
java.util.concurrent.TimeUnit unit)
Creates a Parameter object. |
|
BasicException.Parameter(String name,
Object value)
Creates a Parameter object. |
|
BasicException.Parameter(String name,
short value)
Creates a Parameter object. |
|
| Method Summary | |
|---|---|
static BasicException.Parameter[] |
add(BasicException.Parameter[] first,
BasicException.Parameter[] second)
Add an Parameter array to another Parameter array |
boolean |
equals(Object object)
Indicates whether some other object is "equal to" this one. |
String |
getName()
Returns the property name |
String |
getValue()
Returns the property value |
int |
hashCode()
Returns a hash code value for the object. |
String |
toString()
Returns a string representation of the Parameter object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String EXCEPTION_CLASS
public static final String EXCEPTION_SOURCE
| Constructor Detail |
|---|
public BasicException.Parameter(String name,
Object value)
Parameter object. The constructor converts the passed
value to a String object.
null objects are preserved in that the accessor getValue
returns a null object.
The constructor accepts various value types as
name - The property's name.value - The property's value converted internally to a
String.
public BasicException.Parameter(String name,
long value)
Parameter object.
name - The property's name.value - The property's value converted internally to a
String.
public BasicException.Parameter(String name,
int value)
Parameter object.
name - The property's name.value - The property's value converted internally to a
String.
public BasicException.Parameter(String name,
short value)
Parameter object.
name - The property's name.value - The property's value converted internally to a
String.
public BasicException.Parameter(String name,
byte value)
Parameter object.
name - The property's name.value - The property's value converted internally to a
String.
public BasicException.Parameter(String name,
char value)
Parameter object.
name - The property's name.value - The property's value converted internally to a
String.
public BasicException.Parameter(String name,
boolean value)
Parameter object.
name - The property's name.value - The property's value converted internally to a
String.
public BasicException.Parameter(String name,
long duration,
java.util.concurrent.TimeUnit unit)
Parameter object.
name - The parameter's name.duration - The parameter's duration value.unit - The parameter's time unit.
public BasicException.Parameter(String name,
double value)
Parameter object.
name - The property's name.value - The property's value converted internally to a
String.
public BasicException.Parameter(String name,
float value)
Parameter object.
name - The property's name.value - The property's value converted internally to a
String.| Method Detail |
|---|
public final String getName()
public final String getValue()
public boolean equals(Object object)
equals in class Objectobject - the reference object with which to compare.
public String toString()
Parameter object.
Format: "
public int hashCode()
hashCode in class Object
public static BasicException.Parameter[] add(BasicException.Parameter[] first,
BasicException.Parameter[] second)
first - second - Add this array to the array named 'first'
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||