/** * <a href="http://www.openolat.org"> * OpenOLAT - Online Learning and Training</a><br> * <p> * Licensed under the Apache License, Version 2.0 (the "License"); <br> * you may not use this file except in compliance with the License.<br> * You may obtain a copy of the License at the * <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache homepage</a> * <p> * Unless required by applicable law or agreed to in writing,<br> * software distributed under the License is distributed on an "AS IS" BASIS, <br> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. <br> * See the License for the specific language governing permissions and <br> * limitations under the License. * <p> * Initial code contributed and copyrighted by<br> * frentix GmbH, http://www.frentix.com * <p> */ package org.olat.restapi.support.vo; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; /** * * Description:<br> * TODO: srosse Class Description for CourseNodeVO * * <P> * Initial Date: 20 apr. 2010 <br> * @author srosse, stephane.rosse@frentix.com */ @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "courseNodeVO") public class CourseNodeVO { private String id; private Integer position; private String parentId; private String shortTitle; private String shortName; private String longTitle; private String learningObjectives; public CourseNodeVO() { //make JAXB happy } public String getId() { return id; } public void setId(String id) { this.id = id; } public Integer getPosition() { return position; } public void setPosition(Integer position) { this.position = position; } public String getParentId() { return parentId; } public void setParentId(String parentId) { this.parentId = parentId; } public String getShortTitle() { return shortTitle; } public void setShortTitle(String shortTitle) { this.shortTitle = shortTitle; } public String getShortName() { return shortName; } public void setShortName(String shortName) { this.shortName = shortName; } public String getLongTitle() { return longTitle; } public void setLongTitle(String longTitle) { this.longTitle = longTitle; } public String getLearningObjectives() { return learningObjectives; } public void setLearningObjectives(String learningObjectives) { this.learningObjectives = learningObjectives; } public boolean equals(Object obj) { if(this == obj) { return true; } if(obj instanceof CourseNodeVO) { CourseNodeVO vo = (CourseNodeVO)obj; return id != null && id.equals(vo.getId()); } return false; } }