| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
package org.kuali.student.r2.common.dto; |
| 18 | |
|
| 19 | |
import java.io.Serializable; |
| 20 | |
|
| 21 | |
import javax.xml.bind.annotation.XmlElement; |
| 22 | |
import javax.xml.bind.annotation.XmlTransient; |
| 23 | |
|
| 24 | |
import org.kuali.student.r2.common.infc.Entity; |
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | |
|
| 29 | |
|
| 30 | |
|
| 31 | |
|
| 32 | 0 | @SuppressWarnings("serial") |
| 33 | |
@XmlTransient |
| 34 | |
public abstract class EntityInfo |
| 35 | |
extends TypeStateEntityInfo |
| 36 | |
implements Entity, Serializable { |
| 37 | |
|
| 38 | |
@XmlElement |
| 39 | |
private String name; |
| 40 | |
|
| 41 | |
@XmlElement |
| 42 | |
private RichTextInfo descr; |
| 43 | |
|
| 44 | |
|
| 45 | |
|
| 46 | |
|
| 47 | |
|
| 48 | 0 | public EntityInfo() { |
| 49 | 0 | } |
| 50 | |
|
| 51 | |
|
| 52 | |
|
| 53 | |
|
| 54 | |
|
| 55 | |
|
| 56 | |
public EntityInfo(Entity entity) { |
| 57 | 0 | super(entity); |
| 58 | 0 | if (entity != null) { |
| 59 | 0 | this.name = entity.getName(); |
| 60 | 0 | if (entity.getDescr() != null) { |
| 61 | 0 | this.descr = new RichTextInfo(entity.getDescr()); |
| 62 | |
} |
| 63 | |
} |
| 64 | 0 | } |
| 65 | |
|
| 66 | |
@Override |
| 67 | |
public String getName() { |
| 68 | 0 | return name; |
| 69 | |
} |
| 70 | |
|
| 71 | |
public void setName(String name) { |
| 72 | 0 | this.name = name; |
| 73 | 0 | } |
| 74 | |
|
| 75 | |
@Override |
| 76 | |
public RichTextInfo getDescr() { |
| 77 | 0 | return descr; |
| 78 | |
} |
| 79 | |
|
| 80 | |
public void setDescr(RichTextInfo descr) { |
| 81 | 0 | this.descr = descr; |
| 82 | 0 | } |
| 83 | |
} |