Change-Id: If6d422a937a549c9f68b8c523553179924ac2d7a Former-commit-id:b5d8d071de
[formerlyb0f729ceb2
] [formerlyb5d8d071de
[formerlyb0f729ceb2
] [formerly7b95887a24
[formerly a3bfc9f4014a417205c27bbd73fc07556df007bc]]] Former-commit-id:7b95887a24
Former-commit-id:cc74f57e1b
[formerly9c3805b762
] Former-commit-id:1e45b28479
133 lines
3.1 KiB
Java
133 lines
3.1 KiB
Java
package com.raytheon.viz.hydro.resource;
|
|
|
|
import java.util.List;
|
|
|
|
import javax.xml.bind.annotation.XmlAccessType;
|
|
import javax.xml.bind.annotation.XmlAccessorType;
|
|
import javax.xml.bind.annotation.XmlElement;
|
|
import javax.xml.bind.annotation.XmlRootElement;
|
|
|
|
import com.raytheon.uf.viz.core.drawables.IDescriptor;
|
|
import com.raytheon.uf.viz.core.exception.VizException;
|
|
import com.raytheon.uf.viz.core.rsc.AbstractResourceData;
|
|
import com.raytheon.uf.viz.core.rsc.LoadProperties;
|
|
import com.raytheon.viz.hydrocommon.data.DamMaster;
|
|
|
|
/**
|
|
* TODO Add Description
|
|
*
|
|
* <pre>
|
|
*
|
|
* SOFTWARE HISTORY
|
|
*
|
|
* Date Ticket# Engineer Description
|
|
* ------------ ---------- ----------- --------------------------
|
|
* Jun 24, 2011 rgeorge Initial creation
|
|
*
|
|
* </pre>
|
|
*
|
|
* @author rgeorge
|
|
* @version 1.0
|
|
*/
|
|
@XmlAccessorType(XmlAccessType.NONE)
|
|
@XmlRootElement(name = "damLocationResourceData")
|
|
public class DamLocationResourceData extends AbstractResourceData {
|
|
|
|
@XmlElement
|
|
private List<DamMaster> damList;
|
|
|
|
@XmlElement
|
|
private String name;
|
|
|
|
public DamLocationResourceData() {
|
|
|
|
}
|
|
|
|
public DamLocationResourceData(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
/**
|
|
* @return the damList
|
|
*/
|
|
public List<DamMaster> getDamList() {
|
|
return damList;
|
|
}
|
|
|
|
/**
|
|
* @param damList
|
|
* the damList to set
|
|
*/
|
|
public void setDamList(List<DamMaster> damList) {
|
|
this.damList = damList;
|
|
}
|
|
|
|
/**
|
|
* @return the name
|
|
*/
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
/**
|
|
* @param name
|
|
* the name to set
|
|
*/
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
/*
|
|
* (non-Javadoc)
|
|
*
|
|
* @see
|
|
* com.raytheon.uf.viz.core.rsc.AbstractResourceData#construct(com.raytheon
|
|
* .uf.viz.core.rsc.LoadProperties,
|
|
* com.raytheon.uf.viz.core.drawables.IDescriptor)
|
|
*/
|
|
@Override
|
|
public DamLocationResource construct(LoadProperties loadProperties,
|
|
IDescriptor descriptor) throws VizException {
|
|
return new DamLocationResource(this, loadProperties);
|
|
}
|
|
|
|
/*
|
|
* (non-Javadoc)
|
|
*
|
|
* @see
|
|
* com.raytheon.uf.viz.core.rsc.AbstractResourceData#update(java.lang.Object
|
|
* )
|
|
*/
|
|
@Override
|
|
public void update(Object updateData) {
|
|
// TODO Auto-generated method stub
|
|
}
|
|
|
|
/*
|
|
* (non-Javadoc)
|
|
*
|
|
* @see java.lang.Object#equals(java.lang.Object)
|
|
*/
|
|
@Override
|
|
public boolean equals(Object obj) {
|
|
if (this == obj)
|
|
return true;
|
|
if (obj == null)
|
|
return false;
|
|
if (getClass() != obj.getClass())
|
|
return false;
|
|
DamLocationResourceData other = (DamLocationResourceData) obj;
|
|
if (damList == null) {
|
|
if (other.damList != null)
|
|
return false;
|
|
} else if (!damList.equals(other.damList))
|
|
return false;
|
|
if (name == null) {
|
|
if (other.name != null)
|
|
return false;
|
|
} else if (!name.equals(other.name))
|
|
return false;
|
|
return true;
|
|
}
|
|
|
|
}
|