src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTree.java

changeset 1358
fc123bdeddb8
parent 962
0ff2bbd38f10
child 1359
25e14ad23cef
equal deleted inserted replaced
1357:c75be5bc5283 1358:fc123bdeddb8
1 /* 1 /*
2 * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
421 } 421 }
422 422
423 /** 423 /**
424 * Generates a META tag with the http-equiv, content and charset attributes. 424 * Generates a META tag with the http-equiv, content and charset attributes.
425 * 425 *
426 * @param http-equiv http equiv attribute for the META tag 426 * @param httpEquiv http equiv attribute for the META tag
427 * @param content type of content 427 * @param content type of content
428 * @param charset character set used 428 * @param charSet character set used
429 * @return an HtmlTree object for the META tag 429 * @return an HtmlTree object for the META tag
430 */ 430 */
431 public static HtmlTree META(String httpEquiv, String content, String charSet) { 431 public static HtmlTree META(String httpEquiv, String content, String charSet) {
432 HtmlTree htmltree = new HtmlTree(HtmlTag.META); 432 HtmlTree htmltree = new HtmlTree(HtmlTag.META);
433 htmltree.addAttr(HtmlAttr.HTTP_EQUIV, nullCheck(httpEquiv)); 433 htmltree.addAttr(HtmlAttr.HTTP_EQUIV, nullCheck(httpEquiv));

mercurial