< prev index next >

src/java.desktop/share/classes/javax/swing/text/html/parser/Entity.java

Print this page

        

*** 69,79 **** this.data = data; } /** * Gets the name of the entity. ! * @return the name of the entity, as a <code>String</code> */ public String getName() { return name; } --- 69,79 ---- this.data = data; } /** * Gets the name of the entity. ! * @return the name of the entity, as a {@code String} */ public String getName() { return name; }
*** 84,119 **** public int getType() { return type & 0xFFFF; } /** ! * Returns <code>true</code> if it is a parameter entity. ! * @return <code>true</code> if it is a parameter entity */ public boolean isParameter() { return (type & PARAMETER) != 0; } /** ! * Returns <code>true</code> if it is a general entity. ! * @return <code>true</code> if it is a general entity */ public boolean isGeneral() { return (type & GENERAL) != 0; } /** ! * Returns the <code>data</code>. ! * @return the <code>data</code> */ public char getData()[] { return data; } /** ! * Returns the data as a <code>String</code>. ! * @return the data as a <code>String</code> */ public String getString() { return new String(data, 0, data.length); } --- 84,119 ---- public int getType() { return type & 0xFFFF; } /** ! * Returns {@code true} if it is a parameter entity. ! * @return {@code true} if it is a parameter entity */ public boolean isParameter() { return (type & PARAMETER) != 0; } /** ! * Returns {@code true} if it is a general entity. ! * @return {@code true} if it is a general entity */ public boolean isGeneral() { return (type & GENERAL) != 0; } /** ! * Returns the {@code data}. ! * @return the {@code data} */ public char getData()[] { return data; } /** ! * Returns the data as a {@code String}. ! * @return the data as a {@code String} */ public String getString() { return new String(data, 0, data.length); }
*** 131,141 **** entityTypes.put("MD", Integer.valueOf(MD)); entityTypes.put("SYSTEM", Integer.valueOf(SYSTEM)); } /** ! * Converts <code>nm</code> string to the corresponding * entity type. If the string does not have a corresponding * entity type, returns the type corresponding to "CDATA". * Valid entity types are: "PUBLIC", "CDATA", "SDATA", "PI", * "STARTTAG", "ENDTAG", "MS", "MD", "SYSTEM". * --- 131,141 ---- entityTypes.put("MD", Integer.valueOf(MD)); entityTypes.put("SYSTEM", Integer.valueOf(SYSTEM)); } /** ! * Converts {@code nm} string to the corresponding * entity type. If the string does not have a corresponding * entity type, returns the type corresponding to "CDATA". * Valid entity types are: "PUBLIC", "CDATA", "SDATA", "PI", * "STARTTAG", "ENDTAG", "MS", "MD", "SYSTEM". *
< prev index next >