|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ocl.options.BasicOption<T>
public class BasicOption<T>
Useful implementation of the Option interface for OCL parsing options.
| Constructor Summary | |
|---|---|
BasicOption(String key,
T defaultValue)
Initializes me with my key and default value. |
|
| Method Summary | |
|---|---|
T |
getDefaultValue()
Obtains the option's default value. |
String |
getKey()
Obtains my string key, which may be used for persistence in a preference store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicOption(String key,
T defaultValue)
key - identifies medefaultValue - my default value| Method Detail |
|---|
public final String getKey()
Option
getKey in interface Option<T>nullpublic final T getDefaultValue()
Option
getDefaultValue in interface Option<T>null
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||