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

org.oma.protocols.mlp.svc_result.Neid Maven / Gradle / Ivy


package org.oma.protocols.mlp.svc_result;

/** 
 * Schema fragment(s) for this class:
 * 
 * <xs:element xmlns:ns="MLP_SVC_RESULT_310.dtd" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="neid">
 *   <xs:complexType>
 *     <xs:choice>
 *       <xs:element ref="ns:vmscid"/>
 *       <xs:element ref="ns:vlrid"/>
 *       <xs:sequence>
 *         <xs:element ref="ns:vmscid"/>
 *         <xs:element ref="ns:vlrid"/>
 *       </xs:sequence>
 *     </xs:choice>
 *   </xs:complexType>
 * </xs:element>
 * 
*/ public class Neid { private int neidSelect = -1; private static final int VMSCID_CHOICE = 0; private static final int VLRID_CHOICE = 1; private static final int VMSCID1_CHOICE = 2; private Vmscid vmscid; private Vlrid vlrid; private Vmscid vmscid1; private Vlrid vlrid1; private void setNeidSelect(int choice) { if (neidSelect == -1) { neidSelect = choice; } else if (neidSelect != choice) { throw new IllegalStateException( "Need to call clearNeidSelect() before changing existing choice"); } } /** * Clear the choice selection. */ public void clearNeidSelect() { neidSelect = -1; } /** * Check if Vmscid is current selection for choice. * * @return true if selection, false if not */ public boolean ifVmscid() { return neidSelect == VMSCID_CHOICE; } /** * Get the 'vmscid' element value. * * @return value */ public Vmscid getVmscid() { return vmscid; } /** * Set the 'vmscid' element value. * * @param vmscid */ public void setVmscid(Vmscid vmscid) { setNeidSelect(VMSCID_CHOICE); this.vmscid = vmscid; } /** * Check if Vlrid is current selection for choice. * * @return true if selection, false if not */ public boolean ifVlrid() { return neidSelect == VLRID_CHOICE; } /** * Get the 'vlrid' element value. * * @return value */ public Vlrid getVlrid() { return vlrid; } /** * Set the 'vlrid' element value. * * @param vlrid */ public void setVlrid(Vlrid vlrid) { setNeidSelect(VLRID_CHOICE); this.vlrid = vlrid; } /** * Check if Vmscid is current selection for choice. * * @return true if selection, false if not */ public boolean ifVmscid1() { return neidSelect == VMSCID1_CHOICE; } /** * Get the 'vmscid' element value. * * @return value */ public Vmscid getVmscid1() { return vmscid1; } /** * Set the 'vmscid' element value. * * @param vmscid1 */ public void setVmscid1(Vmscid vmscid1) { setNeidSelect(VMSCID1_CHOICE); this.vmscid1 = vmscid1; } /** * Get the 'vlrid' element value. * * @return value */ public Vlrid getVlrid1() { return vlrid1; } /** * Set the 'vlrid' element value. * * @param vlrid1 */ public void setVlrid1(Vlrid vlrid1) { setNeidSelect(VMSCID1_CHOICE); this.vlrid1 = vlrid1; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy