|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<ScriptLineCounter.FileFormats>
org.ath.converters.ScriptLineCounter.FileFormats
public static enum ScriptLineCounter.FileFormats
Enumeration of the file formats supported. Return static methods for the Regular Expressions used to classify the file-content,
and normal methods for other parameters.
Auto-detect is the first 'format' and doesn't have a specific format, just for display purposes.
| Enum Constant Summary | |
|---|---|
Format0
|
|
Format1
|
|
Format2
|
|
Format3
|
|
Format4
|
|
Format5
|
|
Format6
|
|
| Method Summary | |
|---|---|
java.lang.String |
getCharSplitRegex()
The regex to split a group of characters |
static java.lang.String |
getDenyRegex(ScriptLineCounter.FileFormats ff)
The regex to deny a character |
static java.lang.String |
getLineRegex(ScriptLineCounter.FileFormats ff)
The regular expression the recognize a proper line |
int |
getMinimalMatch()
Minimal percentage of lines that must match to be recognized. |
static java.lang.String |
getPrescanRegex(ScriptLineCounter.FileFormats ff)
The regex to perform a pre-scan for collecting valid character names |
static java.lang.String |
getReactsRegex(ScriptLineCounter.FileFormats ff)
|
static java.lang.String |
getRemoveRegex(ScriptLineCounter.FileFormats ff)
The regex to remove from a character name |
static java.lang.String |
getSplitRegex(ScriptLineCounter.FileFormats ff)
The regex to split a line |
int |
getVoiceOverGroup()
Define the matcher group index to fetch the character name instead of the VoiceOver generic name |
java.lang.String |
getVoiceOverRegex()
Get the regex to detect a voice-over, then use getVoiceOverGroup to get the matcher Group index |
boolean |
isAMatcher()
Is this FileFormat a matcher or a dummy? |
boolean |
isCountWithEmpty()
Count dialogues if a blank line is after the character name |
boolean |
isMultiLine()
Can dialogue be multiple lines? |
boolean |
isSeparateLineCounter()
Is this FileFormat optionally counting separate lines? |
boolean |
isSplitMatch()
Should use line split to check for match |
java.lang.String |
toString()
|
static ScriptLineCounter.FileFormats |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ScriptLineCounter.FileFormats[] |
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, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ScriptLineCounter.FileFormats Format0
public static final ScriptLineCounter.FileFormats Format1
public static final ScriptLineCounter.FileFormats Format2
public static final ScriptLineCounter.FileFormats Format3
public static final ScriptLineCounter.FileFormats Format4
public static final ScriptLineCounter.FileFormats Format5
public static final ScriptLineCounter.FileFormats Format6
| Method Detail |
|---|
public static ScriptLineCounter.FileFormats[] values()
for (ScriptLineCounter.FileFormats c : ScriptLineCounter.FileFormats.values()) System.out.println(c);
public static ScriptLineCounter.FileFormats 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 toString()
toString in class java.lang.Enum<ScriptLineCounter.FileFormats>public static java.lang.String getLineRegex(ScriptLineCounter.FileFormats ff)
ff - the FileFormat
public static java.lang.String getReactsRegex(ScriptLineCounter.FileFormats ff)
public static java.lang.String getSplitRegex(ScriptLineCounter.FileFormats ff)
ff - requested file-format
public static java.lang.String getDenyRegex(ScriptLineCounter.FileFormats ff)
ff - requested file-format
public java.lang.String getCharSplitRegex()
public static java.lang.String getRemoveRegex(ScriptLineCounter.FileFormats ff)
ff - requested file-format
public static java.lang.String getPrescanRegex(ScriptLineCounter.FileFormats ff)
ff - requested file-format
public java.lang.String getVoiceOverRegex()
public int getVoiceOverGroup()
public boolean isAMatcher()
public boolean isSeparateLineCounter()
public boolean isMultiLine()
public boolean isSplitMatch()
public int getMinimalMatch()
public boolean isCountWithEmpty()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||