package com.amalto.workbench.webservices; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for WSRole complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="WSRole"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="specification" type="{http://www.talend.com/mdm}WSRoleSpecification" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "WSRole", propOrder = { "description", "name", "specification" }) public class WSRole { protected String description; protected String name; @XmlElement(nillable = true) protected List<WSRoleSpecification> specification; /** * Default no-arg constructor * */ public WSRole() { super(); } /** * Fully-initialising value constructor * */ public WSRole(final String description, final String name, final List<WSRoleSpecification> specification) { this.description = description; this.name = name; this.specification = specification; } /** * Gets the value of the description property. * * @return * possible object is * {@link String } * */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link String } * */ public void setDescription(String value) { this.description = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the specification property. * * <p> * 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 <CODE>set</CODE> method for the specification property. * * <p> * For example, to add a new item, do as follows: * <pre> * getSpecification().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link WSRoleSpecification } * * */ public List<WSRoleSpecification> getSpecification() { if (specification == null) { specification = new ArrayList<WSRoleSpecification>(); } return this.specification; } }