public interface URCapProgramNode extends ProgramNode
ProgramNodeContribution.| Modifier and Type | Method and Description |
|---|---|
boolean |
canGetAs(Class<?> urCapProgramNodeInterface)
This method returns true if a subsequent call to
getAs(Class) using the same parameter will be successful. |
<T> T |
getAs(Class<T> urCapProgramNodeInterface)
The URCap program node contribution (i.e.
|
boolean canGetAs(Class<?> urCapProgramNodeInterface)
getAs(Class) using the same parameter will be successful.urCapProgramNodeInterface - the interface the program node implements, not null.<T> T getAs(Class<T> urCapProgramNodeInterface)
ProgramNodeContribution)
can optionally implement additional interfaces providing access to various information and/or methods.
If such an interface is implemented, the getAs(Class) method can be used to retrieve the program node as said interface.
Do not use ProgramNodeContribution (or an extension/implementation thereof) nor Object as argument,
otherwise an IllegalArgumentException is thrown.T - The (generic) type parameter for the interface.urCapProgramNodeInterface - the interface the program node implements, not null.ClassCastException - If the program node does not implement the interface a class cast exception will be thrown.IllegalArgumentException - If the type parameter is an implementation/extension of ProgramNodeContribution or Object.Copyright © 2018. All rights reserved.