/*
 * Copyright 2011 Splunk, Inc.
 *
 * 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 com.splunk;

public class ScriptInput extends Input {
    ScriptInput(Service service, String path) {
        super(service, path);
    }

    public String getGroup() {
        return getString("group", null);
    }

    public String getHost() {
        return getString("host", null);
    }

    public String getIndex() {
        return getString("index");
    }

    public int getInterval() {
        return getInteger("interval");
    }

    public InputKind getKind() {
        return InputKind.Script;
    }

    public int getRcvBuf() {
        return getInteger("_rcvbuf");
    }
}

@@ -615,377 +615,1164 @@
 k;%0A%0A
-public class ScriptInput extends Input %7B%0A    ScriptInput(Service service, String path) %7B%0A        super(service, path);%0A    %7D%0A%0A    public String getGroup() %7B%0A        return getString(%22group%22, null);%0A    %7D%0A%0A    public String getHost() %7B%0A        return getString(%22host%22, null);%0A    %7D%0A%0A    public String getIndex() %7B%0A        return getString(%22index%22);%0A    %7D%0A%0A    public int
+/**%0A * Representation of the Script input subclass.%0A */%0Apublic class ScriptInput extends Input %7B%0A%0A    /**%0A     * Class Constructor.%0A     *%0A     * @param service The connected service instance.%0A     * @param path The Script input endpoint.%0A     */%0A    ScriptInput(Service service, String path) %7B%0A        super(service, path);%0A    %7D%0A%0A    /**%0A     * Returns this script input's group.%0A     *%0A     * @return This script input's group.%0A     */%0A    public String getGroup() %7B%0A        return getString(%22group%22, null);%0A    %7D%0A%0A    /**%0A     * Returns this script input's source host, or null if not specified.%0A     *%0A     * @return This TCP input's source host.%0A     */%0A    public String getHost() %7B%0A        return getString(%22host%22, null);%0A    %7D%0A%0A    /**%0A     * Returns this script input's index name.%0A     *%0A     * @return This script input's index name.%0A     */%0A    public String getIndex() %7B%0A        return getString(%22index%22);%0A    %7D%0A%0A    /**%0A     * Returns this script input's execution frequency in seconds, or a cron%0A     * schedule.%0A     *%0A     * @return This scripts input's execution frequency in seconds, or a cron%0A     * schedule.%0A     */%0A    public String
  get
@@ -1802,23 +1802,22 @@
 turn get
-Integer
+String
 (%22interv
@@ -1837,76 +1837,306 @@
     
-public InputKind getKind() %7B%0A        return InputKind.Script;%0A    %7D%0A
+/**%0A     * Returns the script input kind.%0A     *%0A     * @return The script input kind.%0A     */%0A    public InputKind getKind() %7B%0A        return InputKind.Script;%0A    %7D%0A%0A    /**%0A     * Returns this script input's _rcvbuf attribute.%0A     *%0A     * @return This script input's _rcvbuf attribute.%0A     */
 %0A   

Add script input javadoc