|
|||||||||||
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.FilenameDelimiter org.farng.mp3.filename.FilenameParenthesis
This composite subclass is for parenthesis elements. It is different from the delimiter because it has three children. The middle child includes the items contained within the parenthesis themselves.
Constructor Summary | |
FilenameParenthesis()
Creates a new FilenameParenthesis object. |
|
FilenameParenthesis(FilenameParenthesis copyObject)
Creates a new FilenameParenthesis object. |
Method Summary | |
java.lang.String |
composeFilename()
Reconstruct the filename that is represented by this composite. |
ID3v2_4 |
createId3Tag()
|
AbstractFilenameComposite |
getMiddleComposite()
Returnsthe composite that goes between the parenthesis |
java.lang.String |
getOpenDelimiter()
Returns the opening parenthesis |
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 id3v2FrameBodyClass)
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 |
setMiddleComposite(AbstractFilenameComposite middleComposite)
Sets the composite that goes between the parenthesis |
void |
setOpenDelimiter(java.lang.String openDelimiter)
Sets the opening parenthesis |
Methods inherited from class org.farng.mp3.filename.FilenameDelimiter |
getAfterComposite, getBeforeComposite, getDelimiter, setAfterComposite, setBeforeComposite, setDelimiter |
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, toString, wait, wait, wait |
Constructor Detail |
public FilenameParenthesis()
public FilenameParenthesis(FilenameParenthesis copyObject)
Method Detail |
public void setFrame(AbstractID3v2Frame frame)
setFrame
in class FilenameDelimiter
public void setMiddleComposite(AbstractFilenameComposite middleComposite)
middleComposite
- the composite that goes between the parenthesispublic AbstractFilenameComposite getMiddleComposite()
public void setOpenDelimiter(java.lang.String openDelimiter)
openDelimiter
- the opening parenthesispublic java.lang.String getOpenDelimiter()
public java.lang.String composeFilename()
composeFilename
in class FilenameDelimiter
public ID3v2_4 createId3Tag()
createId3Tag
in class FilenameDelimiter
public java.util.Iterator iterator()
FilenameToken
in this composite in the correct order for the file
name.
iterator
in class FilenameDelimiter
FilenameToken
in this compositepublic void matchAgainstKeyword(java.lang.Class id3v2FrameBodyClass)
TagOptionSingleton
. If the FilenameToken
matches the keyword, the token's class is
set.
matchAgainstKeyword
in class FilenameDelimiter
id3v2FrameBodyClass
- 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 FilenameDelimiter
matchTag
- Tag to match against
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |