|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbbc.rd.tvanytime.ContentReference
public class ContentReference
ContentReference: Represents a TV-Anytime CRID NOTE: Doesn't seem to work within a hashtable as a key, even though hashCode() method has been implemented. Solution is to use CRID.getCRID() (i.e. a string) as the key.
| Constructor Summary | |
|---|---|
ContentReference()
Constructor for objects of type ContentReference |
|
ContentReference(java.lang.String crid)
Constructor for objects of type ContentReference with required fields. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones itself. |
boolean |
equals(java.lang.Object obj)
Are these CRIDs equal? |
java.lang.String |
getAuthority()
Get the authority part of this CRID |
java.lang.String |
getCRID()
Get the whole of the CRID |
java.lang.String |
getData()
Get the data part of this CRID |
int |
hashCode()
Used in Hashtable. |
void |
setCRID(java.lang.String crid)
Set the CRID Tests for validity of "crid://" portion of crid, and throws a TVAnytimeException if invalid. |
java.lang.String |
toString()
Returns string representation of this object. |
java.lang.String |
toString(int indent)
Returns string representation of this object. |
java.lang.String |
toXML()
Returns XML representation of this object. |
java.lang.String |
toXML(int indent)
Returns XML representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContentReference()
public ContentReference(java.lang.String crid)
throws TVAnytimeException
crid - string representation of the CRID (e.g. "crid://bbc.co.uk/21837")
TVAnytimeException - thrown when crid starts with invalid pattern| Method Detail |
|---|
public java.lang.String getAuthority()
public java.lang.String getData()
public java.lang.String getCRID()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectcrid - The possibly null ContentReference to be compared
public int hashCode()
hashCode in class java.lang.Object
public void setCRID(java.lang.String crid)
throws TVAnytimeException
crid - the CRID as a String
TVAnytimeExceptionpublic java.lang.String toXML()
public java.lang.String toXML(int indent)
indent - number of tabs to put before the string.
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(int indent)
indent - number of tabs to put before the string.
public java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||