All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eprosima.xmlschemas.fastrtps_profiles.UnionDcl Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version

package com.eprosima.xmlschemas.fastrtps_profiles;

import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlElements;
import jakarta.xml.bind.annotation.XmlType;


/**
 * 

Java class for unionDcl complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *           
 *             
 *               
 *                 
 *                   
 *                     
 *                       
 *                       
 *                     
 *                   
 *                 
 *               
 *             
 *           
 *           
 *             
 *               
 *                 
 *                   
 *                     
 *                       
 *                         
 *                           
 *                             
 *                               
 *                                 
 *                                   
 *                                   
 *                                 
 *                               
 *                             
 *                           
 *                         
 *                       
 *                       
 *                     
 *                   
 *                 
 *               
 *             
 *           
 *         
 *       
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "unionDcl", propOrder = { "discriminatorOrCase" }) public class UnionDcl { @XmlElements({ @XmlElement(name = "discriminator", type = UnionDcl.Discriminator.class), @XmlElement(name = "case", type = UnionDcl.Case.class) }) protected List discriminatorOrCase; @XmlAttribute(name = "name", required = true) protected String name; /** * Gets the value of the discriminatorOrCase 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 discriminatorOrCase property.

* *

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

*
     * getDiscriminatorOrCase().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link UnionDcl.Case } * {@link UnionDcl.Discriminator } *

* * * @return * The value of the discriminatorOrCase property. */ public List getDiscriminatorOrCase() { if (discriminatorOrCase == null) { discriminatorOrCase = new ArrayList<>(); } return this.discriminatorOrCase; } /** * 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; } /** *

Java class for anonymous complex type

. * *

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

* *
{@code
     * 
     *   
     *     
     *       
     *         
     *           
     *             
     *               
     *                 
     *                   
     *                     
     *                       
     *                       
     *                     
     *                   
     *                 
     *               
     *             
     *           
     *           
     *         
     *       
     *     
     *   
     * 
     * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "caseDiscriminatorOrMember" }) public static class Case { @XmlElements({ @XmlElement(name = "caseDiscriminator", type = UnionDcl.Case.CaseDiscriminator.class), @XmlElement(name = "member", type = MemberDcl.class) }) protected List caseDiscriminatorOrMember; /** * Gets the value of the caseDiscriminatorOrMember 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 caseDiscriminatorOrMember property.

* *

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

*
         * getCaseDiscriminatorOrMember().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link MemberDcl } * {@link UnionDcl.Case.CaseDiscriminator } *

* * * @return * The value of the caseDiscriminatorOrMember property. */ public List getCaseDiscriminatorOrMember() { if (caseDiscriminatorOrMember == null) { caseDiscriminatorOrMember = new ArrayList<>(); } return this.caseDiscriminatorOrMember; } /** *

Java class for anonymous complex type

. * *

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

* *
{@code
         * 
         *   
         *     
         *       
         *         
         *           
         *           
         *         
         *       
         *     
         *   
         * 
         * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class CaseDiscriminator { @XmlAttribute(name = "value", required = true) protected String value; /** * Gets the value of the value property. * * @return * possible object is * {@link String } * */ public String getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link String } * */ public void setValue(String value) { this.value = value; } } } /** *

Java class for anonymous complex type

. * *

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

* *
{@code
     * 
     *   
     *     
     *       
     *         
     *           
     *           
     *         
     *       
     *     
     *   
     * 
     * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class Discriminator { @XmlAttribute(name = "type", required = true) protected String type; /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } } }