|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.auth.Holder<T>
public class Holder<T>
A holder of a piece of data.
| Constructor Summary | |
|---|---|
Holder()
Creates a new holder which does not require its data to be set during authentication. |
|
Holder(I18NBoundMessage message)
Creates a new holder. |
|
| Method Summary | |
|---|---|
I18NBoundMessage |
getMessage()
Returns the receiver's optional data-not-set message. |
T |
getValue()
Returns the receiver's data. |
boolean |
isSet()
Checks whether the receiver's data is set. |
void |
setValue(T value)
Sets the receiver's data to the given value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Holder(I18NBoundMessage message)
message - The data-not-set message. It may be null if the
holder's data is optional and may remain unset.public Holder()
| Method Detail |
|---|
public void setValue(T value)
value - The value, which may be null to unset the
receiver's data.public T getValue()
public boolean isSet()
public I18NBoundMessage getMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||