|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Track class encapsulates all information about a single music track.
Method Summary | |
void |
addAttributeValue(Attribute attribute,
AttributeValue value)
Adds an AttributeValue to an existing Attribute on this Track. |
void |
clearAttribute(Attribute attribute)
Removes all of the values for this track from the passed Attribute |
AttributeValue |
getAttributeValue(Attribute attribute)
Gets the first AttributeValue belonging to the passed attribute |
AttributeValue |
getAttributeValue(java.lang.String attributename)
Gets the first AttributeValue belonging to the Attribute referred to by the passed String. |
java.util.Collection |
getAttributeValues(Attribute attribute)
Retrieve all of the AttributeValue objects corresponding to the given Attribute. |
long |
getId()
Return the database ID of this Track |
java.util.Collection |
getKnownAttributes()
Retrieve a Collection of all Attribute objects which this track has. |
java.util.Date |
getUpdatedDate()
Return the last time that this Track was updated in the database. |
java.net.URL |
getURL()
Return the URL of the Track's location |
void |
replaceAttributeValues(Attribute attribute,
AttributeValue value)
Replace all of the current attribute values with the one passed |
void |
setUpdatedDate(java.util.Date updatedDate)
Set the time that this Track was updated. |
Method Detail |
public java.util.Collection getAttributeValues(Attribute attribute)
attribute
- The Attribute for which the values are to be retrieved
public java.util.Collection getKnownAttributes()
public void clearAttribute(Attribute attribute)
attribute
- The Attribute to remove the values ofpublic void replaceAttributeValues(Attribute attribute, AttributeValue value)
attribute
- The Attribute to have its values changedvalue
- The AttributeValue to become the new valuepublic void addAttributeValue(Attribute attribute, AttributeValue value)
attribute
- The Attribute to whom the value is to be addedvalue
- The AttributeValue to addpublic java.net.URL getURL()
public long getId()
public java.util.Date getUpdatedDate()
public void setUpdatedDate(java.util.Date updatedDate)
updatedDate
- The updated Date to attach to the track.public AttributeValue getAttributeValue(Attribute attribute)
attribute
- The Attribute whose values we are retrievingpublic AttributeValue getAttributeValue(java.lang.String attributename)
attributename
- The name of the Attribute whose first value is to be
retrieved.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |