Example #1
0
 public void visit(CasaConnection connection) {
   // Ensure the connection is not already deleted.
   String state = connection.getState();
   if (connection.isInDocumentModel() && !CasaConnectionState.DELETED.getState().equals(state)) {
     mModel.removeConnection(connection);
   }
 }
Example #2
0
 public void visit(CasaPort port) {
   mModel.removeCasaPort(port);
 }
Example #3
0
 public void visit(CasaServiceEngineServiceUnit su) {
   mModel.removeServiceEngineServiceUnit(su);
 }
Example #4
0
 public void visit(CasaProvides provides) {
   // Ensure the endpoint is not already deleted.
   if (provides.isInDocumentModel()) {
     mModel.removeExternalEndpoint(provides);
   }
 }