SageTV Platform
V9.0

sage.media.rss
Class CharacterReferenceEx

java.lang.Object
  extended by sage.media.rss.CharacterReference
      extended by sage.media.rss.CharacterReferenceEx
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable

 class CharacterReferenceEx
extends CharacterReference

Extended character entity reference. Handles kernels within other strings, just for lookup purposes.


Field Summary
protected  int mEnd
          The ending point in the string.
protected  int mStart
          The starting point in the string.
 
Fields inherited from class sage.media.rss.CharacterReference
mCharacter, mKernel
 
Constructor Summary
CharacterReferenceEx()
          Zero args constructor.
 
Method Summary
 int compare(java.lang.Object that)
          Compare one reference to another.
 java.lang.String getKernel()
          Get this CharacterReference's kernel.
 void setEnd(int end)
          Set the supposed ending point.
 void setStart(int start)
          Set the starting point of the kernel.
 
Methods inherited from class sage.media.rss.CharacterReference
compareTo, getCharacter, setCharacter, setKernel, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mStart

protected int mStart
The starting point in the string.


mEnd

protected int mEnd
The ending point in the string.

Constructor Detail

CharacterReferenceEx

public CharacterReferenceEx()
Zero args constructor. This object is only ever used after setting the kernel, start and end.

Method Detail

setStart

public void setStart(int start)
Set the starting point of the kernel.


setEnd

public void setEnd(int end)
Set the supposed ending point. This only specifies an upper bound on the kernel length.


getKernel

public java.lang.String getKernel()
Get this CharacterReference's kernel.

Overrides:
getKernel in class CharacterReference
Returns:
The kernel in the equivalent character entity reference.

compare

public int compare(java.lang.Object that)
Compare one reference to another.


SageTV Platform
V9.0

SageTV is a trademark or registered trademark of Google, Inc. in the US and other countries.
Copyright 2000-2015 The SageTV Authors. All Rights Reserved.