001 package org.kuali.student.r1.common.dictionary.dto; 002 003 import java.util.ArrayList; 004 import java.util.List; 005 006 import javax.xml.bind.annotation.XmlAccessType; 007 import javax.xml.bind.annotation.XmlAccessorType; 008 import javax.xml.bind.annotation.XmlElement; 009 import javax.xml.bind.annotation.XmlID; 010 011 @XmlAccessorType(XmlAccessType.FIELD) 012 public class ObjectStructureDefinition { 013 @XmlElement(required = true) 014 @XmlID 015 protected String name;// TODO do we need this? 016 @XmlElement 017 protected String businessObjectClass; 018 @XmlElement 019 protected List<FieldDefinition> attributes; 020 @XmlElement 021 protected boolean hasMetaData;//TODO do we need this? 022 023 public String getBusinessObjectClass() { 024 return businessObjectClass; 025 } 026 027 public void setBusinessObjectClass(String businessObjectClass) { 028 this.businessObjectClass = businessObjectClass; 029 } 030 031 public List<FieldDefinition> getAttributes() { 032 if(attributes==null){ 033 attributes = new ArrayList<FieldDefinition>(); 034 } 035 return attributes; 036 } 037 038 public void setAttributes(List<FieldDefinition> attributes) { 039 this.attributes = attributes; 040 } 041 042 public String getName() { 043 return name; 044 } 045 046 public void setName(String name) { 047 this.name = name; 048 } 049 050 public boolean isHasMetaData() { 051 return hasMetaData; 052 } 053 054 public void setHasMetaData(boolean hasMetaData) { 055 this.hasMetaData = hasMetaData; 056 } 057 }