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 E
getObject()
Returns the underlying value (the one provided to the constructor).String
getValueDescriptor()
Return the String representation of the underlying value.Object
resolveValue(LaunchContext context)
Returns the wrapped value as-is.String
toString()
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:
getValueDescriptor
in 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:
resolveValue
in 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:
toString
in classObject
- Returns:
- the value descriptor.
- See Also:
getValueDescriptor()
-
-