|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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 WithIdMIF
public void setId(long id)
setId
in interface WithIdMIF
id
- the identifier of the object to be set.public ChannelIF getChannel()
getChannel
in interface WithChannelMIF
public void setChannel(ChannelIF parentChannel)
setChannel
in interface WithChannelMIF
parentChannel
- the channel, this object is related topublic String getTitle()
getTitle
in interface WithTitleMIF
public void setTitle(String aTitle)
setTitle
in interface WithTitleMIF
aTitle
- the title of the object to be setpublic String getDescription()
getDescription
in interface WithDescriptionMIF
public void setDescription(String aDescription)
setDescription
in interface WithDescriptionMIF
aDescription
- the description of the object to be setpublic boolean getUnRead()
getUnRead
in interface WithUnreadMIF
public void setUnRead(boolean val)
setUnRead
in interface WithUnreadMIF
val
- boolean to indicate whether this item is unread or not.public String getLinkString()
public void setLinkString(String linkStr)
public URL getLink()
getLink
in interface WithLinkMIF
public void setLink(URL aLink)
setLink
in interface WithLinkMIF
aLink
- the URL where the request action should be sent topublic Collection getCategories()
WithCategoriesMIF
getCategories
in interface WithCategoriesMIF
public void setCategories(Collection<CategoryIF> aCategories)
setCategories
in interface WithCategoriesMIF
public void addCategory(CategoryIF category)
addCategory
in interface WithCategoriesMIF
public void removeCategory(CategoryIF category)
removeCategory
in interface WithCategoriesMIF
public String getCreator()
getCreator
in interface WithCreatorMIF
public void setCreator(String aCreator)
setCreator
in interface WithCreatorMIF
aCreator
- the creator of the object to be setpublic String getSubject()
getSubject
in interface ItemIF
public void setSubject(String aSubject)
setSubject
in interface ItemIF
public Date getDate()
getDate
in interface ItemIF
public void setDate(Date aDate)
setDate
in interface ItemIF
public Date getFound()
getFound
in interface ItemIF
public void setFound(Date foundDate)
setFound
in interface ItemIF
public ItemGuidIF getGuid()
getGuid
in interface ItemIF
public void setGuid(ItemGuidIF guid)
setGuid
in interface ItemIF
public String getCommentsString()
public void setCommentsString(String commentsStr)
public URL getComments()
getComments
in interface ItemIF
public void setComments(URL comments)
setComments
in interface ItemIF
public ItemSourceIF getSource()
getSource
in interface ItemIF
public void setSource(ItemSourceIF aSource)
setSource
in interface ItemIF
public ItemEnclosureIF getEnclosure()
getEnclosure
in interface ItemIF
public void setEnclosure(ItemEnclosureIF anEnclosure)
setEnclosure
in interface ItemIF
public String getElementValue(String path)
WithElementsAndAttributesMIF
getElementValue
in interface WithElementsAndAttributesMIF
path
- 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 WithElementsAndAttributesMIF
path
- 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 WithElementsAndAttributesMIF
path
- 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 WithElementsAndAttributesMIF
path
- 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 Object
public boolean equals(Object o)
equals
in class Object
o
- 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 |