Method from javax.swing.text.html.parser.Entity Detail: |
public char[] getData() {
return data;
}
|
public String getName() {
return name;
}
Gets the name of the entity. |
public String getString() {
return new String(data, 0, data.length);
}
Returns the data as a String . |
public int getType() {
return type & 0xFFFF;
}
Gets the type of the entity. |
public boolean isGeneral() {
return (type & GENERAL) != 0;
}
Returns true if it is a general entity. |
public boolean isParameter() {
return (type & PARAMETER) != 0;
}
Returns true if it is a parameter entity. |
public static int name2type(String nm) {
Integer i = entityTypes.get(nm);
return (i == null) ? CDATA : i.intValue();
}
Converts 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". |