|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.nava.informa.impl.hibernate.Item
public class Item
Hibernate implementation of the ItemIF interface.
| Constructor Summary | |
|---|---|
Item()
|
|
Item(ChannelIF channel,
String title,
String description,
URL link)
|
|
Item(org.jdom.Element itemElement,
ChannelIF channel,
String title,
String description,
URL link)
|
|
Item(org.jdom.Element itemElement,
String title,
String description,
URL link)
|
|
Item(String title,
String description,
URL link)
|
|
| Method Summary | |
|---|---|
void |
addCategory(CategoryIF category)
|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
String |
getAttributeValue(String path,
String attribute)
Returns the value of the attribute of the Channel's child element reached by the given path. |
String[] |
getAttributeValues(String path,
String[] attributes)
Returns the values of the specified attributes of the Channel's child element reached by the given path. |
Collection |
getCategories()
Gets the assigned category objects for this channel. |
ChannelIF |
getChannel()
|
URL |
getComments()
|
String |
getCommentsString()
|
String |
getCreator()
|
Date |
getDate()
|
String |
getDescription()
|
String |
getElementValue(String path)
Returns the value of the Channel's child element reached by the given path. |
String[] |
getElementValues(String path,
String[] elements)
Returns the values of the specified sub-elements of the Channel's child reached by the given path. |
ItemEnclosureIF |
getEnclosure()
|
Date |
getFound()
|
ItemGuidIF |
getGuid()
|
long |
getId()
|
URL |
getLink()
|
String |
getLinkString()
|
ItemSourceIF |
getSource()
|
String |
getSubject()
|
String |
getTitle()
|
boolean |
getUnRead()
|
int |
hashCode()
Returns a hash code value for the object. |
void |
removeCategory(CategoryIF category)
|
void |
setCategories(Collection<CategoryIF> aCategories)
|
void |
setChannel(ChannelIF parentChannel)
|
void |
setComments(URL comments)
|
void |
setCommentsString(String commentsStr)
|
void |
setCreator(String aCreator)
|
void |
setDate(Date aDate)
|
void |
setDescription(String aDescription)
|
void |
setEnclosure(ItemEnclosureIF anEnclosure)
|
void |
setFound(Date foundDate)
|
void |
setGuid(ItemGuidIF guid)
|
void |
setId(long id)
|
void |
setLink(URL aLink)
|
void |
setLinkString(String linkStr)
|
void |
setSource(ItemSourceIF aSource)
|
void |
setSubject(String aSubject)
|
void |
setTitle(String aTitle)
|
void |
setUnRead(boolean val)
|
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Item()
public Item(String title,
String description,
URL link)
public Item(ChannelIF channel,
String title,
String description,
URL link)
public Item(org.jdom.Element itemElement,
String title,
String description,
URL link)
public Item(org.jdom.Element itemElement,
ChannelIF channel,
String title,
String description,
URL link)
| Method Detail |
|---|
public long getId()
getId in interface WithIdMIFpublic void setId(long id)
setId in interface WithIdMIFid - the identifier of the object to be set.public ChannelIF getChannel()
getChannel in interface WithChannelMIFpublic void setChannel(ChannelIF parentChannel)
setChannel in interface WithChannelMIFparentChannel - the channel, this object is related topublic String getTitle()
getTitle in interface WithTitleMIFpublic void setTitle(String aTitle)
setTitle in interface WithTitleMIFaTitle - the title of the object to be setpublic String getDescription()
getDescription in interface WithDescriptionMIFpublic void setDescription(String aDescription)
setDescription in interface WithDescriptionMIFaDescription - the description of the object to be setpublic boolean getUnRead()
getUnRead in interface WithUnreadMIFpublic void setUnRead(boolean val)
setUnRead in interface WithUnreadMIFval - boolean to indicate whether this item is unread or not.public String getLinkString()
public void setLinkString(String linkStr)
public URL getLink()
getLink in interface WithLinkMIFpublic void setLink(URL aLink)
setLink in interface WithLinkMIFaLink - the URL where the request action should be sent topublic Collection getCategories()
WithCategoriesMIF
getCategories in interface WithCategoriesMIFpublic void setCategories(Collection<CategoryIF> aCategories)
setCategories in interface WithCategoriesMIFpublic void addCategory(CategoryIF category)
addCategory in interface WithCategoriesMIFpublic void removeCategory(CategoryIF category)
removeCategory in interface WithCategoriesMIFpublic String getCreator()
getCreator in interface WithCreatorMIFpublic void setCreator(String aCreator)
setCreator in interface WithCreatorMIFaCreator - the creator of the object to be setpublic String getSubject()
getSubject in interface ItemIFpublic void setSubject(String aSubject)
setSubject in interface ItemIFpublic Date getDate()
getDate in interface ItemIFpublic void setDate(Date aDate)
setDate in interface ItemIFpublic Date getFound()
getFound in interface ItemIFpublic void setFound(Date foundDate)
setFound in interface ItemIFpublic ItemGuidIF getGuid()
getGuid in interface ItemIFpublic void setGuid(ItemGuidIF guid)
setGuid in interface ItemIFpublic String getCommentsString()
public void setCommentsString(String commentsStr)
public URL getComments()
getComments in interface ItemIFpublic void setComments(URL comments)
setComments in interface ItemIFpublic ItemSourceIF getSource()
getSource in interface ItemIFpublic void setSource(ItemSourceIF aSource)
setSource in interface ItemIFpublic ItemEnclosureIF getEnclosure()
getEnclosure in interface ItemIFpublic void setEnclosure(ItemEnclosureIF anEnclosure)
setEnclosure in interface ItemIFpublic String getElementValue(String path)
WithElementsAndAttributesMIF
getElementValue in interface WithElementsAndAttributesMIFpath - a path to the child. Paths are specified as element names, separated by a "/".
Namespaces are allowed. e.g. "aaa:bbb/ccc:ddd/eee".
null if path is null.
public String[] getElementValues(String path,
String[] elements)
WithElementsAndAttributesMIF
getElementValues in interface WithElementsAndAttributesMIFpath - a path to the child. Paths are specified as element names, separated by a "/".
Namespaces are allowed. e.g. "aaa:bbb/ccc:ddd/eee".elements - An array of element names. May contain namespace specifiers.
path is null, returns the specified sub-elements for the Channel.
If elements is null, returns null.
public String getAttributeValue(String path,
String attribute)
WithElementsAndAttributesMIF
getAttributeValue in interface WithElementsAndAttributesMIFpath - a path to the root of the elements. Paths are specified as element names, separated by a "/".attribute - the attribute. May contain a namespace specifier e.g. "rdf:resource".
path is null, returns the specified attribute for the Channel.
If attribute is null, returns null.
public String[] getAttributeValues(String path,
String[] attributes)
WithElementsAndAttributesMIF
getAttributeValues in interface WithElementsAndAttributesMIFpath - a path to the child. Paths are specified as element names, separated by a "/".
Namespaces are allowed. e.g. "aaa:bbb/ccc:ddd/eee".attributes - An array of element names. May contain namespace specifiers.
path is null, returns the specified attributes for the Channel.
If attributes is null, returns null.public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objecto - the reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.
NOTE: Please keep this code in sync with de.nava.informa.impl.hibernate.Item.equals().hashCode()public int hashCode()
java.util.Hashtable.
NOTE: Please keep this code in sync with de.nava.informa.impl.basic.Item.hashCode().
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||