|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Token>
org.stanwood.media.actions.rename.Token
public enum Token
This enum contains all the tokens that are allowed in a pattern
Enum Constant Summary | |
---|---|
EPISODE
the token for "episode number" |
|
EXT
the token for "extension" |
|
HIGH_DEFINITION
The token for high definition |
|
ID
the token for "show Id" |
|
IMAGE
the token for the show or film image URL |
|
PART
the token for "part number" |
|
PERCENT
add a % char |
|
SEASON
the token for "season number" |
|
SHOW_NAME
the token for "show name" |
|
SUMMARY
the token for the show or film short summary |
|
TITLE
the token for "episode or film title" |
|
WIDESCREEN
The token for wide screen |
|
YEAR
the token for the "year" |
Method Summary | |
---|---|
static Token |
fromFull(java.lang.String s)
Used to get the token from it's full name |
static Token |
fromToken(char c)
Used to get the token from a character |
java.lang.String |
getFull()
Get the full token name |
java.lang.String |
getPattern()
Get the regexp pattern that matches the token |
char |
getToken()
Get the token character |
ValueType |
getType()
Get the type of the token |
static Token |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Token[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Token SHOW_NAME
public static final Token EPISODE
public static final Token SEASON
public static final Token EXT
public static final Token TITLE
public static final Token PERCENT
public static final Token ID
public static final Token PART
public static final Token YEAR
public static final Token IMAGE
public static final Token SUMMARY
public static final Token HIGH_DEFINITION
public static final Token WIDESCREEN
Method Detail |
---|
public static Token[] values()
for (Token c : Token.values()) System.out.println(c);
public static Token valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getFull()
public char getToken()
public java.lang.String getPattern()
public ValueType getType()
public static Token fromToken(char c)
c
- The token character
public static Token fromFull(java.lang.String s)
s
- The full name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |