|
jlscp v0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.linuxsampler.lscp.AbstractInstrument
org.linuxsampler.lscp.DbInstrumentInfo
public class DbInstrumentInfo
Provides information about a database instrument.
Constructor Summary | |
---|---|
DbInstrumentInfo(java.lang.String[] resultSet)
Creates a new instance of DbInstrumentInfo . |
Method Summary | |
---|---|
java.lang.String |
getArtists()
Lists the artist names. |
java.util.Date |
getDateCreated()
Returns the date when the instrument is created. |
java.util.Date |
getDateModified()
Returns the date when the instrument is last modified. |
java.lang.String |
getDirectoryPath()
Returns the absolute path name of the directory containing this instrument. |
java.lang.String |
getEngine()
Gets the name of the sampler engine to be used to load the instrument. |
java.lang.String |
getFormatedSize()
Gets a user friendly representation of the instruments size. |
java.lang.String |
getInstrumentPath()
Returns the absolute path name of this instrument or null if the directory path for this instrument is not set. |
java.lang.String |
getKeywords()
Provides a list of keywords that refer to the instrument. |
java.lang.String |
getProduct()
Returns the product title of the instrument. |
boolean |
getShowAbsolutePath()
Determines whether the toString()
method should return the instrument name or
the absolute path name of the instrument. |
long |
getSize()
Returns the size of the instrument in bytes. |
boolean |
isDrum()
Determines whether the instrument is a drumkit or a chromatic instrument. |
boolean |
parse(java.lang.String s)
Parses a line of text. |
void |
setDirectoryPath(java.lang.String dir)
Sets the absolute path name of the directory containing this instrument. |
void |
setShowAbsolutePath(boolean b)
Sets whether the toString() method
should return the absolute path name of the instrument. |
java.lang.String |
toString()
Returns the name or the absolute path name of the instrument as specified by getShowAbsolutePath() . |
Methods inherited from class org.linuxsampler.lscp.AbstractInstrument |
---|
getDescription, getFilePath, getFormatFamily, getFormatVersion, getInstrumentIndex, getKeyMapping, getKeyswitchMapping, getName, setFilePath, setInstrumentIndex, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DbInstrumentInfo(java.lang.String[] resultSet) throws LscpException
DbInstrumentInfo
.
resultSet
- An array with information categories about a DB instrument.
LscpException
Method Detail |
---|
public java.lang.String getDirectoryPath()
public void setDirectoryPath(java.lang.String dir)
public java.lang.String getInstrumentPath()
null
if the directory path for this instrument is not set.
public java.util.Date getDateCreated()
public java.util.Date getDateModified()
public long getSize()
public java.lang.String getFormatedSize()
public boolean isDrum()
public java.lang.String getProduct()
public java.lang.String getArtists()
public java.lang.String getKeywords()
public java.lang.String getEngine()
Instrument
getEngine
in interface Instrument
public boolean parse(java.lang.String s) throws LscpException
parse
in interface Parseable
parse
in class AbstractInstrument
s
- The string to be parsed.
true
if the line has been processed, false
otherwise.
LscpException
- If some error occurs.public boolean getShowAbsolutePath()
toString()
method should return the instrument name or
the absolute path name of the instrument.
The default value is false
.
public void setShowAbsolutePath(boolean b)
toString()
method
should return the absolute path name of the instrument.
b
- If true
the toString()
method will return the absolute path name of the
instrument instead of the instrument name.public java.lang.String toString()
getShowAbsolutePath()
.
toString
in class java.lang.Object
setShowAbsolutePath(boolean)
|
jlscp v0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |