|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.farng.mp3.filename.AbstractFilenameComposite org.farng.mp3.filename.FilenameToken
This composite subclass is the leaf of the tree. It contains the actual strings found in the filename.
Constructor Summary | |
FilenameToken()
Creates a new FilenameToken object. |
|
FilenameToken(FilenameToken copyObject)
Creates a new FilenameToken object. |
Method Summary | |
java.lang.String |
composeFilename()
Reconstruct the filename that is represented by this composite. |
ID3v2_4 |
createId3Tag()
|
java.lang.Class |
getId3v2FrameBodyClass()
Returns the ID3v2 frame body that this token represents |
java.lang.String |
getToken()
Return the token that this class contains |
java.util.Iterator |
iterator()
Returns an iterator through each FilenameToken in this composite in the correct order for the file
name. |
void |
matchAgainstKeyword(java.lang.Class matchId3v2FrameBodyClass)
Match all elements of this composite against the keywords for this class type found in TagOptionSingleton . |
void |
matchAgainstTag(AbstractMP3Tag matchTag)
Match all elements of this composite against the given tag. |
void |
setFrame(AbstractID3v2Frame frame)
|
void |
setId3v2FrameBodyClass(java.lang.Class id3v2FrameBodyClass)
Sets the ID3v2 frame body that this token represents |
void |
setToken(java.lang.String token)
Sets the token that this class contains |
java.lang.String |
toString()
Returns a string containing debug information about this class |
Methods inherited from class org.farng.mp3.filename.AbstractFilenameComposite |
getOriginalToken, setOriginalToken |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FilenameToken()
public FilenameToken(FilenameToken copyObject)
Method Detail |
public void setFrame(AbstractID3v2Frame frame)
setFrame
in class AbstractFilenameComposite
public void setId3v2FrameBodyClass(java.lang.Class id3v2FrameBodyClass)
id3v2FrameBodyClass
- the ID3v2 frame body that this token representspublic java.lang.Class getId3v2FrameBodyClass()
public void setToken(java.lang.String token)
token
- the token that this class containspublic java.lang.String getToken()
public java.lang.String composeFilename()
composeFilename
in class AbstractFilenameComposite
public ID3v2_4 createId3Tag()
createId3Tag
in class AbstractFilenameComposite
public java.util.Iterator iterator()
FilenameToken
in this composite in the correct order for the file
name.
iterator
in class AbstractFilenameComposite
FilenameToken
in this compositepublic void matchAgainstKeyword(java.lang.Class matchId3v2FrameBodyClass)
TagOptionSingleton
. If the FilenameToken
matches the keyword, the token's class is
set.
matchAgainstKeyword
in class AbstractFilenameComposite
matchId3v2FrameBodyClass
- Class of keywords to match against.public void matchAgainstTag(AbstractMP3Tag matchTag)
matchTag
matches any
element of this tag's composite, then this tag's composite leaf node's class is set.
matchAgainstTag
in class AbstractFilenameComposite
matchTag
- Tag to match againstpublic java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |