public class TimecodeList extends java.lang.Object
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <timeCodeList> <timeCode> <to>1290.491582942743</to> <from>683.2344459775517</from> </timeCode> </timeCodeList>
Timecode
Constructor and Description |
---|
TimecodeList() |
Modifier and Type | Method and Description |
---|---|
void |
addTimecode(Timecode timecode)
Add new timecode.
|
static java.util.List<java.lang.String> |
getSolrTimecodes(TimecodeList timecodes) |
java.util.List<Timecode> |
getTimecodes() |
static boolean |
isEmpty(TimecodeList timecodes) |
static boolean |
isValid(TimecodeList timecodes) |
static TimecodeList |
populateTimecodes(java.util.List<java.lang.String> solrTimecodes) |
void |
setTimecodes(java.util.List<Timecode> timecodes) |
public TimecodeList()
public java.util.List<Timecode> getTimecodes()
setTimecodes(List)
public void setTimecodes(java.util.List<Timecode> timecodes)
timecodes
- the timecodes to setgetTimecodes()
public static boolean isValid(TimecodeList timecodes)
timecodes
- public static boolean isEmpty(TimecodeList timecodes)
timecodes
- public static TimecodeList populateTimecodes(java.util.List<java.lang.String> solrTimecodes) throws java.lang.IllegalArgumentException
solrTimecodes
- if null or empty, this does nothingjava.lang.IllegalArgumentException
- on bad datapublic static java.util.List<java.lang.String> getSolrTimecodes(TimecodeList timecodes) throws java.lang.IllegalArgumentException
timecodes
- if null or empty this does nothingjava.lang.IllegalArgumentException
- on missing valuespublic void addTimecode(Timecode timecode)
timecode
- Copyright © 2015 Tampere University of Technology, Pori Department.