/*
 * Copyright 2015 The OpenDCT Authors. All Rights Reserved
 *
 * 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 opendct.config.options;

public interface DeviceOptions {

    /**
     * Get all options available for this class.
     *
     * @return Returns an array of all options available within this class.
     */
    public DeviceOption[] getOptions();

    /**
     * Set all options submitted into this class.
     *
     * @param deviceOptions The options to be set.
     * @throws DeviceOptionException The first option to encounter an error will be returned in this
     *                               exception.
     */
    public void setOptions(DeviceOption... deviceOptions) throws DeviceOptionException;

}

@@ -651,16 +651,59 @@
 tions;%0A%0A
+import opendct.nanohttpd.pojo.JsonOption;%0A%0A
 public i
@@ -1217,22 +1217,20 @@
 Options(
-Device
+Json
 Option..

Change set options to a different class to ensure that it cannot be accidentally used in place of the real internal property.