|
Lizzy v1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object christophedelory.playlist.wpl.Argument
public class Argument
Contains one portion of a condition string.
A condition string typically has a condition portion and a value portion.
For example, in the condition string "Artist Equals Joe", the condition portion is "Equals" and the value portion is "Joe".
When the name attribute of a fragment element is a media item characteristic such as Album Artist, or Genre,
the fragment element must contain two argument elements: one that specifies a condition and another that specifies a value.
The following table shows two possible values for the name attribute and how argument elements are used to specify conditions and values:
Attribute value | Description |
---|---|
Condition | The content of the argument element is the condition portion of a condition string. For example, in the condition string "Artist Equals Joe", the condition portion is "Equals". The condition portion of a condition string must be one of the following: Equals, Does Not Equal, Contains, Does Not Contain, Is Less Than, Is Greater Than, Is, Is Not, Is Before, Is Later Than, Is More Recent Than, Above, Below, Ascending, Descending, Random, Is At Least, Is No More Than. |
Value | The content of the argument element is the value portion of a condition string.
For example, in the condition string "Artist Equals Joe", the value portion is "Joe".
Example: <fragment name = "Artist"> <argument name = "Condition">Equals</argument> <argument name = "Value">Joe</argument> </fragment> |
Attribute value | Description |
---|---|
Format | When the name attribute of the fragment element is "Limit Total Size To", the content of the argument element must be one of the following:
Kilobytes, Megabytes, or Gigabytes.
When the name attribute of the fragment element is "Limit Total Duration To", the content of the argument element must be one of the following: Seconds, Minutes, Hours, or Days. |
Number | The content of the argument element is a number that limits the size or duration of the playlist.
Examples: <fragment name = "Limit Total Size To"> <argument name = "Format">Megabytes</argument> <argument name = "Number">5</argument> </fragment> <fragment name = "Limit Total Duration To"> <argument name = "Format">Minutes</argument> <argument name = "Number">20</argument> </fragment> |
Attribute value | Description |
---|---|
Number | The content of the argument element is a number that limits the number of items in a playlist.
Example: <fragment name = "Limit Number of Items"> <argument name = "Number">15</argument> </fragment> |
Constructor Summary | |
---|---|
Argument()
|
Method Summary | |
---|---|
String |
getContent()
Returns the content of this argument. |
String |
getName()
Returns the name of one portion of the condition string. |
void |
setContent(String content)
Initializes the content of this argument. |
void |
setName(String name)
Initializes the name of one portion of the condition string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Argument()
Method Detail |
---|
public String getName()
null
.setName(java.lang.String)
public void setName(String name)
name
- the argument name. Shall not be null
.
NullPointerException
- if name
is null
.getName()
public String getContent()
null
.setContent(java.lang.String)
public void setContent(String content)
content
- the argument's content. Shall not be null
.
NullPointerException
- if content
is null
.getContent()
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |