|
SageTV Platform V7.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsage.media.rss.CharacterReference
class CharacterReference
Structure to hold a character and it's equivalent entity reference kernel. For the character reference © the character would be '©' and the kernel would be "copy", for example.
Character references are described at http://www.w3.org/TR/REC-html40/charset.html#entities Supports the Ordered interface so it's easy to create a list sorted by kernel, to perform binary searches on.
| Field Summary | |
|---|---|
protected int |
mCharacter
The character value as an integer. |
protected java.lang.String |
mKernel
This entity reference kernel. |
| Constructor Summary | |
|---|---|
CharacterReference(java.lang.String kernel,
int character)
Construct a CharacterReference with the character and kernel given. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object that)
Compare one reference to another. |
int |
getCharacter()
Get the character needing translation. |
java.lang.String |
getKernel()
Get this CharacterReference's kernel. |
(package private) void |
setCharacter(int character)
Set the character. |
(package private) void |
setKernel(java.lang.String kernel)
Set this CharacterReference's kernel. |
java.lang.String |
toString()
Visualize this character reference as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int mCharacter
protected java.lang.String mKernel
| Constructor Detail |
|---|
public CharacterReference(java.lang.String kernel,
int character)
CharacterReference with the character and kernel given.
kernel - The kernel in the equivalent character entity reference.character - The character needing encoding.| Method Detail |
|---|
public java.lang.String getKernel()
void setKernel(java.lang.String kernel)
kernel - The kernel in the equivalent character entity reference.public int getCharacter()
void setCharacter(int character)
character - The character needing translation.public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object that)
compareTo in interface java.lang.Comparableorg.htmlparser.util.sort.Ordered
|
SageTV Platform V7.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||