public class QueryReferenceIdEventArgs extends Object implements IEventArgs
QueryReferenceId
or QueryReferenceId events.
Event handling code should inspect the Value property and decide whether to set the ReferenceId
and/or ReferenceType property in order to handle the event.
EMPTY| Constructor and Description |
|---|
QueryReferenceIdEventArgs(IWriteContext context,
Object value)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
IWriteContext |
getContext()
The current write context that can be used by the event handler for additional information.
|
String |
getReferenceId()
The reference id that should be evaluated by the event handler.
|
GraphMLReferenceType |
getReferenceType()
Determines the type of the reference being queried.
|
Object |
getValue()
The reference value that is encapsulated by this instance.
|
boolean |
isHandled()
Returns whether the last event handler invocation has actually handled the event.
|
void |
setReferenceId(String value)
The reference id that should be evaluated by the event handler.
|
void |
setReferenceType(GraphMLReferenceType value)
Determines the type of the reference being queried.
|
public QueryReferenceIdEventArgs(IWriteContext context, Object value)
The Handled property is set to false, the ReferenceId is set to
null.
context - The current write context that can be used by the event handler for additional information.value - The referenced object instance.public final IWriteContext getContext()
public final String getReferenceId()
Setting this property to a String that is not null and not empty automatically sets Handled
to true.
isHandled(),
setReferenceId(String)public final GraphMLReferenceType getReferenceType()
Setting this property automatically sets Handled to true. By default this property is GraphMLReferenceType.EXTERNAL
so Values that are given a ReferenceId are treated as external references
that are not serialized to the GraphML. Setting this property to GraphMLReferenceType.INTERNAL and specifying a
ReferenceId will make the reference mechanism use the provided reference but will cause it
to serialize the value to the GraphML, nevertheless.
getReferenceId(),
isHandled(),
setReferenceType(GraphMLReferenceType)public final Object getValue()
public final boolean isHandled()
This property is set implicitly by ReferenceId.
getReferenceId()public final void setReferenceId(String value)
Setting this property to a String that is not null and not empty automatically sets Handled
to true.
value - The ReferenceId to set.isHandled(),
getReferenceId()public final void setReferenceType(GraphMLReferenceType value)
Setting this property automatically sets Handled to true. By default this property is GraphMLReferenceType.EXTERNAL
so Values that are given a ReferenceId are treated as external references
that are not serialized to the GraphML. Setting this property to GraphMLReferenceType.INTERNAL and specifying a
ReferenceId will make the reference mechanism use the provided reference but will cause it
to serialize the value to the GraphML, nevertheless.
value - The ReferenceType to set.getReferenceId(),
isHandled(),
getReferenceType()