org.jasig.portlet.courses.model.xml
Class Course

java.lang.Object
  extended by org.jasig.portlet.courses.model.xml.Course
All Implemented Interfaces:
Serializable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString

public class Course
extends Object
implements Serializable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="code" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="school" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element ref="{https://source.jasig.org/schemas/portlet/courses/course-summary}location" minOccurs="0"/>
         <element name="meetingTimes" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="url" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element ref="{https://source.jasig.org/schemas/portlet/courses/course-summary}instructor" maxOccurs="unbounded" minOccurs="0"/>
         <element name="grade" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element ref="{https://source.jasig.org/schemas/portlet/courses/course-summary}course-update" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  String code
           
protected  List<CourseUpdate> courseUpdates
           
protected  String grade
           
protected  List<Instructor> instructors
           
protected  Location location
           
protected  String meetingTimes
           
protected  String school
           
protected  String title
           
protected  String url
           
 
Constructor Summary
Course()
           
 
Method Summary
 StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
           
 StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
           
 boolean equals(Object object)
           
 boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
           
 String getCode()
          Gets the value of the code property.
 List<CourseUpdate> getCourseUpdates()
          Gets the value of the courseUpdates property.
 String getGrade()
          Gets the value of the grade property.
 List<Instructor> getInstructors()
          Gets the value of the instructors property.
 Location getLocation()
          Gets the value of the location property.
 String getMeetingTimes()
          Gets the value of the meetingTimes property.
 String getSchool()
          Gets the value of the school property.
 String getTitle()
          Gets the value of the title property.
 String getUrl()
          Gets the value of the url property.
 int hashCode()
           
 int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
           
 void setCode(String value)
          Sets the value of the code property.
 void setGrade(String value)
          Sets the value of the grade property.
 void setLocation(Location value)
          Sets the value of the location property.
 void setMeetingTimes(String value)
          Sets the value of the meetingTimes property.
 void setSchool(String value)
          Sets the value of the school property.
 void setTitle(String value)
          Sets the value of the title property.
 void setUrl(String value)
          Sets the value of the url property.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

title

protected String title

code

protected String code

school

protected String school

location

protected Location location

meetingTimes

protected String meetingTimes

url

protected String url

instructors

protected List<Instructor> instructors

grade

protected String grade

courseUpdates

protected List<CourseUpdate> courseUpdates
Constructor Detail

Course

public Course()
Method Detail

getTitle

public String getTitle()
Gets the value of the title property.

Returns:
possible object is String

setTitle

public void setTitle(String value)
Sets the value of the title property.

Parameters:
value - allowed object is String

getCode

public String getCode()
Gets the value of the code property.

Returns:
possible object is String

setCode

public void setCode(String value)
Sets the value of the code property.

Parameters:
value - allowed object is String

getSchool

public String getSchool()
Gets the value of the school property.

Returns:
possible object is String

setSchool

public void setSchool(String value)
Sets the value of the school property.

Parameters:
value - allowed object is String

getLocation

public Location getLocation()
Gets the value of the location property.

Returns:
possible object is Location

setLocation

public void setLocation(Location value)
Sets the value of the location property.

Parameters:
value - allowed object is Location

getMeetingTimes

public String getMeetingTimes()
Gets the value of the meetingTimes property.

Returns:
possible object is String

setMeetingTimes

public void setMeetingTimes(String value)
Sets the value of the meetingTimes property.

Parameters:
value - allowed object is String

getUrl

public String getUrl()
Gets the value of the url property.

Returns:
possible object is String

setUrl

public void setUrl(String value)
Sets the value of the url property.

Parameters:
value - allowed object is String

getInstructors

public List<Instructor> getInstructors()
Gets the value of the instructors property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the instructors property.

For example, to add a new item, do as follows:

    getInstructors().add(newItem);
 

Objects of the following type(s) are allowed in the list Instructor


getGrade

public String getGrade()
Gets the value of the grade property.

Returns:
possible object is String

setGrade

public void setGrade(String value)
Sets the value of the grade property.

Parameters:
value - allowed object is String

getCourseUpdates

public List<CourseUpdate> getCourseUpdates()
Gets the value of the courseUpdates property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the courseUpdates property.

For example, to add a new item, do as follows:

    getCourseUpdates().add(newItem);
 

Objects of the following type(s) are allowed in the list CourseUpdate


toString

public String toString()
Overrides:
toString in class Object

append

public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            StringBuilder buffer,
                            org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
Specified by:
append in interface org.jvnet.jaxb2_commons.lang.ToString

appendFields

public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                  StringBuilder buffer,
                                  org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
Specified by:
appendFields in interface org.jvnet.jaxb2_commons.lang.ToString

equals

public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                      org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                      Object object,
                      org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
Specified by:
equals in interface org.jvnet.jaxb2_commons.lang.Equals

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                    org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
Specified by:
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012 Jasig. All Rights Reserved.