001 package org.kuali.common.impex.model;
002
003 import javax.xml.bind.annotation.XmlAccessType;
004 import javax.xml.bind.annotation.XmlAccessorType;
005 import javax.xml.bind.annotation.XmlAttribute;
006 import javax.xml.bind.annotation.XmlRootElement;
007
008 @XmlRootElement
009 @XmlAccessorType(XmlAccessType.PROPERTY)
010 public class View implements NamedElement {
011
012 String name;
013 String queryString;
014
015 /**
016 * This is a copy constructor. It must create a perfect, deep, copy of this object
017 */
018 public View(View view) {
019 this.name = view.getName();
020 this.queryString = view.getQueryString();
021 }
022
023 public View() {
024 this(null, null);
025 }
026
027 public View(String name, String queryString) {
028 this.name = name;
029 this.queryString = queryString;
030 }
031
032 @Override
033 @XmlAttribute
034 public String getName() {
035 return name;
036 }
037
038 public void setName(String name) {
039 this.name = name;
040 }
041
042 public String getQueryString() {
043 return queryString;
044 }
045
046 public void setQueryString(String queryString) {
047 this.queryString = queryString;
048 }
049 }