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

org.oma.protocols.mlp.svc_init.SvcInit Maven / Gradle / Ivy


package org.oma.protocols.mlp.svc_init;

/** 
 * Schema fragment(s) for this class:
 * 
 * <xs:element xmlns:ns="MLP_SVC_INIT_310.dtd" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="svc_init">
 *   <xs:complexType>
 *     <xs:sequence>
 *       <xs:element ref="ns:hdr"/>
 *       <xs:choice>
 *         <xs:element ref="ns:slir"/>
 *         <xs:element ref="ns:eme_lir"/>
 *         <xs:element ref="ns:tlrr"/>
 *         <xs:element ref="ns:tlrsr"/>
 *       </xs:choice>
 *     </xs:sequence>
 *     <xs:attribute type="xs:string" fixed="3.1.0" name="ver"/>
 *   </xs:complexType>
 * </xs:element>
 * 
*/ public class SvcInit { private Hdr hdr; private int choiceSelect = -1; private static final int SLIR_CHOICE = 0; private static final int EME_LIR_CHOICE = 1; private static final int TLRR_CHOICE = 2; private static final int TLRSR_CHOICE = 3; private Slir slir; private EmeLir emeLir; private Tlrr tlrr; private Tlrsr tlrsr; private String ver; /** * Get the 'hdr' element value. * * @return value */ public Hdr getHdr() { return hdr; } /** * Set the 'hdr' element value. * * @param hdr */ public void setHdr(Hdr hdr) { this.hdr = hdr; } private void setChoiceSelect(int choice) { if (choiceSelect == -1) { choiceSelect = choice; } else if (choiceSelect != choice) { throw new IllegalStateException( "Need to call clearChoiceSelect() before changing existing choice"); } } /** * Clear the choice selection. */ public void clearChoiceSelect() { choiceSelect = -1; } /** * Check if Slir is current selection for choice. * * @return true if selection, false if not */ public boolean ifSlir() { return choiceSelect == SLIR_CHOICE; } /** * Get the 'slir' element value. * * @return value */ public Slir getSlir() { return slir; } /** * Set the 'slir' element value. * * @param slir */ public void setSlir(Slir slir) { setChoiceSelect(SLIR_CHOICE); this.slir = slir; } /** * Check if EmeLir is current selection for choice. * * @return true if selection, false if not */ public boolean ifEmeLir() { return choiceSelect == EME_LIR_CHOICE; } /** * Get the 'eme_lir' element value. * * @return value */ public EmeLir getEmeLir() { return emeLir; } /** * Set the 'eme_lir' element value. * * @param emeLir */ public void setEmeLir(EmeLir emeLir) { setChoiceSelect(EME_LIR_CHOICE); this.emeLir = emeLir; } /** * Check if Tlrr is current selection for choice. * * @return true if selection, false if not */ public boolean ifTlrr() { return choiceSelect == TLRR_CHOICE; } /** * Get the 'tlrr' element value. * * @return value */ public Tlrr getTlrr() { return tlrr; } /** * Set the 'tlrr' element value. * * @param tlrr */ public void setTlrr(Tlrr tlrr) { setChoiceSelect(TLRR_CHOICE); this.tlrr = tlrr; } /** * Check if Tlrsr is current selection for choice. * * @return true if selection, false if not */ public boolean ifTlrsr() { return choiceSelect == TLRSR_CHOICE; } /** * Get the 'tlrsr' element value. * * @return value */ public Tlrsr getTlrsr() { return tlrsr; } /** * Set the 'tlrsr' element value. * * @param tlrsr */ public void setTlrsr(Tlrsr tlrsr) { setChoiceSelect(TLRSR_CHOICE); this.tlrsr = tlrsr; } /** * Get the 'ver' attribute value. * * @return value */ public String getVer() { return ver; } /** * Set the 'ver' attribute value. * * @param ver */ public void setVer(String ver) { this.ver = ver; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy