/*
* Created on 2004/11/14
* Author aki@www.xucker.jpn.org
* License Apache2.0 or Common Public License
*/
package org.jpn.xucker.subplayer;
import java.util.List;
import java.util.Vector;
import org.apache.commons.lang.builder.EqualsBuilder;
/**
*
*
*/
public class SubPlayFileXmlObject {
private String firstSubFilePath="";
private String secondSubFilePath="";
private String firstWavFilePath="";
//private String secondWavFilePath;
private List markList=new Vector();
public void addMark(Mark mark){
markList.add(mark);
}
public void setMarks(Mark[] marks){
markList.removeAll(markList);
for (int i = 0; i < marks.length; i++) {
markList.add(marks[i]);
}
}
public Mark[] getMarks(){
return (Mark[])markList.toArray(new Mark[markList.size()]);
}
public int hashCode(){
return super.hashCode();
}
public boolean equals(Object object){
return EqualsBuilder.reflectionEquals(this, object);
/*
if(!(object instanceof SubPlayFileXmlObject)){
return false;
}
SubPlayFileXmlObject rhs = (SubPlayFileXmlObject) object;
return new EqualsBuilder()
.appendSuper(super.equals(SubPlayFileXmlObject))
.append(field1, rhs.field1)
.append(field2, rhs.field2)
.append(field3, rhs.field3)
.isEquals();
*/
}
public String getFirstSubFilePath() {
return firstSubFilePath;
}
public void setFirstSubFilePath(String firstSubFilePath) {
this.firstSubFilePath = firstSubFilePath;
}
public String getFirstWavFilePath() {
return firstWavFilePath;
}
public void setFirstWavFilePath(String firstWavFilePath) {
this.firstWavFilePath = firstWavFilePath;
}
public String getSecondSubFilePath() {
return secondSubFilePath;
}
public void setSecondSubFilePath(String secondSubFilePath) {
this.secondSubFilePath = secondSubFilePath;
}
/*
public String getSecondWavFilePath() {
return secondWavFilePath;
}
public void setSecondWavFilePath(String secondWavFilePath) {
this.secondWavFilePath = secondWavFilePath;
}*/
}
|