Package com.sodius.mdw.server.launch
Class ObjectArgument<E>
- java.lang.Object
-
- com.sodius.mdw.server.launch.ObjectArgument<E>
-
-
Constructor Summary
Constructors Constructor Description ObjectArgument(E value)Instantiates an argument that wraps the specified value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EgetObject()Returns the underlying value (the one provided to the constructor).StringgetValueDescriptor()Return the String representation of the underlying value.ObjectresolveValue(LaunchContext context)Returns the wrapped value as-is.StringtoString()Returns the value descriptor.
-
-
-
Constructor Detail
-
ObjectArgument
public ObjectArgument(E value)
Instantiates an argument that wraps the specified value.- Parameters:
value- the value wrapped in this argument.
-
-
Method Detail
-
getObject
public final E getObject()
Returns the underlying value (the one provided to the constructor).- Returns:
- the underlying value.
-
getValueDescriptor
public String getValueDescriptor()
Return the String representation of the underlying value.- Specified by:
getValueDescriptorin interfaceArgument- Returns:
- the String representation of the underlying value.
-
resolveValue
public Object resolveValue(LaunchContext context) throws CoreException
Returns the wrapped value as-is.- Specified by:
resolveValuein interfaceArgument- Parameters:
context- the launch context- Returns:
- the wrapped value as-is.
- Throws:
CoreException- if resolving the value fails.
-
toString
public String toString()
Returns the value descriptor.- Overrides:
toStringin classObject- Returns:
- the value descriptor.
- See Also:
getValueDescriptor()
-
-