public class TargetStringInstruction extends Object implements Instruction
InstructionExecutor
to navigate to a given target which is represented as a
String. Typically the target String would be a URI or some other well-defined identifier.
However, no restrictions are enforced. It could be any String. The instruction doesn't peform any
validity or security checks.
A typical execution result might be to treat the target String as a URL and use a browser to navigate to that destination. Another option might be to simply display the target String in a UI, leaving further action to the user.
Constructor and Description |
---|
TargetStringInstruction(String target)
Creates a new instance.
|
public static final String TYPE
public TargetStringInstruction(String target)
target
- the target String to navigate to. Must not be null
.public String getType()
getType
in interface Instruction
public String getTarget()
Copyright © 2024 levigo holding gmbh. All rights reserved.