Java tutorial
/* * Copyright (c) Mirth Corporation. All rights reserved. * * http://www.mirthcorp.com * * The software in this package is published under the terms of the MPL license a copy of which has * been included with this distribution in the LICENSE.txt file. */ package com.mirth.connect.model; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.builder.ToStringBuilder; import com.thoughtworks.xstream.annotations.XStreamAlias; @XStreamAlias("parameter") public class Parameter { private String name; private String type; private String description; public Parameter(String name) { this(name, null, null); } public Parameter(String name, String type, String description) { this.name = name; setType(type); this.description = description; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getType() { return type; } public void setType(String type) { this.type = StringUtils.defaultString(type, "Any"); } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } @Override public String toString() { return ToStringBuilder.reflectionToString(this, CalendarToStringStyle.instance()); } }