org.musicontroller.core
Class Link
java.lang.Object
org.musicontroller.core.Link
public class Link
- extends java.lang.Object
Constructor Summary |
Link()
|
Link(java.lang.String url)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Link
public Link()
Link
public Link(java.lang.String url)
getChanged
public java.util.Date getChanged()
setChanged
public void setChanged(java.util.Date changed)
getId
public long getId()
setId
public void setId(long id)
getInserted
public java.util.Date getInserted()
setInserted
public void setInserted(java.util.Date inserted)
getUrl
public java.lang.String getUrl()
setUrl
public void setUrl(java.lang.String url)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getFile
public java.io.File getFile()
- Directly returns the File this Link links to. However, if this Link links
to an object that is not on the filesystem, the returned File is
unusable!
- Returns:
- The File this Link links.
setMusicDirProvider
public void setMusicDirProvider(MusicDirProvider musicDirProvider)
- Sets the MusicDirProvider. This provider is used in the getFile method
to contruct a valid filesystem object.
- Parameters:
musicDirProvider
- The MusicDirProvider to use.
getMusicDirProvider
public MusicDirProvider getMusicDirProvider()
- Returns the MusicDirProvider.
- Returns:
- The MusicDirProvider.
Copyright © 2010 A.J.V.. All Rights Reserved.