public class BridgeFacets extends Object
Constructor and Description |
---|
BridgeFacets(FarObject<?> farObject,
BridgeFactory bridgeFactory,
Map<Integer,Object> helpers)
Creates a new
BridgeFacets object. |
Modifier and Type | Method and Description |
---|---|
BridgeFactory |
getBridgeFactory()
Returns the
BridgeFactory associated with this bridge instance. |
FarObject<?> |
getFarObject()
Returns the far object of this bridge instance
|
<T> T |
getHelper(Class<T> type) |
Object |
getHelper(int i)
Returns the specified helper instance.
|
Object |
getNearObject()
Returns the near object of this bridge instance.
|
boolean |
hasNearObject()
Returns an indication that tells whether the near object of this bridge instance is already fixated.
|
void |
setNearObject(Object nearObject)
Sets the near object to the given instance.
|
public BridgeFacets(FarObject<?> farObject, BridgeFactory bridgeFactory, Map<Integer,Object> helpers)
BridgeFacets
object. The near object is lazily created when necessary.farObject
- The far object for this bridge instancebridgeFactory
- The bridge factory that can create the near objecthelpers
- The helpers to includepublic void setNearObject(Object nearObject)
nearObject
- The given near objectpublic Object getNearObject()
public boolean hasNearObject()
true
if the near object of this bridge instance is already fixated; false
otherwisepublic FarObject<?> getFarObject()
public Object getHelper(int i)
i
- The index of the helper instancepublic <T> T getHelper(Class<T> type)
public BridgeFactory getBridgeFactory()
BridgeFactory
associated with this bridge instance.BridgeFactory
associated with this bridge instanceCopyright © 2013. All Rights Reserved.