public final class GraphHolder extends Object
IObject
belongs.
hasToken()
, tokenMatches(Token)
,
and setToken(Token, Token)
are final so that subclasses
cannot intercept tokens.Constructor and Description |
---|
GraphHolder() |
Modifier and Type | Method and Description |
---|---|
IObject |
getReplacement()
a replacement is a managed entity instance which has the same
primary key as this instance.
|
boolean |
hasToken()
tests if this
GraphHolder contains a Token reference. |
void |
setReplacement(IObject replacement)
used mostly by
ome.api.IUpdate . |
void |
setToken(Token previousToken,
Token newToken)
|
boolean |
tokenMatches(Token token)
|
public IObject getReplacement()
public void setReplacement(IObject replacement)
ome.api.IUpdate
. Improper use of this method may
cause erratic behavior.replacement
- public final boolean hasToken()
GraphHolder
contains a Token
reference.public final boolean tokenMatches(Token token)
Token
for the IObject
represented by this
GraphHolder
. This can be seen to approximate "ownership" of this
Object within the JVM.public final void setToken(Token previousToken, Token newToken)
Token
for this GraphHolder
but only if you posses
the current Token
. The first call to
setToken(Token, Token)
will succeed when token
is null.previousToken
- newToken
-
Version: 5.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.