1868 private static final String I18NProperty = "i18n";
1869
1870 static {
1871 contentAttributeSet = new SimpleAttributeSet();
1872 ((MutableAttributeSet)contentAttributeSet).
1873 addAttribute(StyleConstants.NameAttribute,
1874 HTML.Tag.CONTENT);
1875 NEWLINE = new char[1];
1876 NEWLINE[0] = '\n';
1877 }
1878
1879
1880 /**
1881 * An iterator to iterate over a particular type of
1882 * tag. The iterator is not thread safe. If reliable
1883 * access to the document is not already ensured by
1884 * the context under which the iterator is being used,
1885 * its use should be performed under the protection of
1886 * Document.render.
1887 */
1888 public static abstract class Iterator {
1889
1890 /**
1891 * Return the attributes for this tag.
1892 * @return the <code>AttributeSet</code> for this tag, or
1893 * <code>null</code> if none can be found
1894 */
1895 public abstract AttributeSet getAttributes();
1896
1897 /**
1898 * Returns the start of the range for which the current occurrence of
1899 * the tag is defined and has the same attributes.
1900 *
1901 * @return the start of the range, or -1 if it can't be found
1902 */
1903 public abstract int getStartOffset();
1904
1905 /**
1906 * Returns the end of the range for which the current occurrence of
1907 * the tag is defined and has the same attributes.
1908 *
|
1868 private static final String I18NProperty = "i18n";
1869
1870 static {
1871 contentAttributeSet = new SimpleAttributeSet();
1872 ((MutableAttributeSet)contentAttributeSet).
1873 addAttribute(StyleConstants.NameAttribute,
1874 HTML.Tag.CONTENT);
1875 NEWLINE = new char[1];
1876 NEWLINE[0] = '\n';
1877 }
1878
1879
1880 /**
1881 * An iterator to iterate over a particular type of
1882 * tag. The iterator is not thread safe. If reliable
1883 * access to the document is not already ensured by
1884 * the context under which the iterator is being used,
1885 * its use should be performed under the protection of
1886 * Document.render.
1887 */
1888 public abstract static class Iterator {
1889
1890 /**
1891 * Return the attributes for this tag.
1892 * @return the <code>AttributeSet</code> for this tag, or
1893 * <code>null</code> if none can be found
1894 */
1895 public abstract AttributeSet getAttributes();
1896
1897 /**
1898 * Returns the start of the range for which the current occurrence of
1899 * the tag is defined and has the same attributes.
1900 *
1901 * @return the start of the range, or -1 if it can't be found
1902 */
1903 public abstract int getStartOffset();
1904
1905 /**
1906 * Returns the end of the range for which the current occurrence of
1907 * the tag is defined and has the same attributes.
1908 *
|