< prev index next >
src/java.desktop/share/classes/javax/swing/text/html/parser/Entity.java
Print this page
@@ -69,11 +69,11 @@
this.data = data;
}
/**
* Gets the name of the entity.
- * @return the name of the entity, as a <code>String</code>
+ * @return the name of the entity, as a {@code String}
*/
public String getName() {
return name;
}
@@ -84,36 +84,36 @@
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
+ * 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</code> if it is a general entity.
- * @return <code>true</code> if it is a general entity
+ * 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</code>.
- * @return the <code>data</code>
+ * Returns the {@code data}.
+ * @return the {@code data}
*/
public char getData()[] {
return data;
}
/**
- * Returns the data as a <code>String</code>.
- * @return the data as a <code>String</code>
+ * 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,11 +131,11 @@
entityTypes.put("MD", Integer.valueOf(MD));
entityTypes.put("SYSTEM", Integer.valueOf(SYSTEM));
}
/**
- * Converts <code>nm</code> string to the corresponding
+ * 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 >