/*
 * Copyright (c) 2016 Open Baton (http://www.openbaton.org)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package org.openbaton.catalogue.nfvo;

import java.io.Serializable;
import java.util.Collection;

/** Created by tce on 13.08.15. */
public class PluginMessage implements Serializable {

  private String methodName;
  private Class interfaceClass;
  private Collection<Serializable> parameters;
  private String selector;

  public String getMethodName() {
    return methodName;
  }

  public void setMethodName(String methodName) {
    this.methodName = methodName;
  }

  public Collection<Serializable> getParameters() {
    return parameters;
  }

  public void setParameters(Collection<Serializable> parameters) {
    this.parameters = parameters;
  }

  @Override
  public String toString() {
    return "PluginMessage{"
        + "methodName='"
        + methodName
        + '\''
        + ", interfaceClass="
        + interfaceClass.getSimpleName()
        + ", parameters="
        + parameters
        + '}';
  }

  public Class getInterfaceClass() {
    return interfaceClass;
  }

  public void setInterfaceClass(Class interfaceClass) {
    this.interfaceClass = interfaceClass;
  }

  public String getSelector() {
    return selector;
  }

  public void setSelector(String selector) {
    this.selector = selector;
  }
}

@@ -1451,16 +1451,42 @@
        +
+ (interfaceClass != null ?
  interfa
@@ -1508,16 +1508,26 @@
 leName()
+ : %22null%22)
 %0A       

fix null pointer on tosctring