/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: WebHelperCreator.java,v 1.5 2008/09/09 18:15:41 veiming Exp $
*
*/
public class WebHelperCreator {
/**
* Generates CLI Definition class.
*
* @param argv Array of annotated class names.
*/
}
try {
} catch(Exception e) {
e.printStackTrace();
}
}
throws Exception {
"import com.gargoylesoftware.htmlunit.html.HtmlForm;\n");
"import com.gargoylesoftware.htmlunit.html.HtmlCheckBoxInput;\n");
"import com.gargoylesoftware.htmlunit.html.HtmlHiddenInput;\n");
"import com.gargoylesoftware.htmlunit.html.HtmlPage;\n");
"import com.gargoylesoftware.htmlunit.html.HtmlSelect;\n");
"import com.gargoylesoftware.htmlunit.html.HtmlTextArea;\n");
"import com.gargoylesoftware.htmlunit.html.HtmlTextInput;\n");
.append("p.getWebResponse().getContentAsString();\n");
.append("<!-- CLI Exit Code: \");\n");
.append("-->\", start);\n");
.append("content.substring(start+20, end-1);\n");
) {
throw new Exception("Incorrect Definition, " +
}
info.mandatoryOptions());
info.optionalOptions());
info.optionAliases());
) {
Macro.class);
}
}
}
}
}
}
/**
* Returns a list of string by adding string in an array to it.
*
* @param array Array of String.
* @return a list of string.
*/
}
}
return list;
}
/**
* Adds string in an array to a list.
*
* @param list List of string where new string are to be added.
* @param array Array of String.
*/
}
}
}
}