public class SoloMapComponentReplacePolicy extends java.lang.Object implements SoloMapComponentPolicy
Constructor and Description |
---|
SoloMapComponentReplacePolicy() |
Modifier and Type | Method and Description |
---|---|
boolean |
canAdd(java.beans.beancontext.BeanContextSupport bc,
java.lang.Object obj)
Ask whether an object can be added to the to the context.
|
public boolean canAdd(java.beans.beancontext.BeanContextSupport bc, java.lang.Object obj) throws MultipleSoloMapComponentException
SoloMapComponentPolicy
canAdd
in interface SoloMapComponentPolicy
bc
- the context to add toobj
- the object to addMultipleSoloMapComponentException
- describing the
conflict if there is one and the object can't be added.Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details