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

org.oma.protocols.mlp.svc_init.Pos 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="pos">
 *   <xs:complexType>
 *     <xs:sequence>
 *       <xs:element ref="ns:msid"/>
 *       <xs:choice>
 *         <xs:element ref="ns:pd"/>
 *         <xs:element ref="ns:poserr"/>
 *       </xs:choice>
 *       <xs:element ref="ns:gsm_net_param" minOccurs="0"/>
 *     </xs:sequence>
 *   </xs:complexType>
 * </xs:element>
 * 
*/ public class Pos { private Msid msid; private int choiceSelect = -1; private static final int PD_CHOICE = 0; private static final int POSERR_CHOICE = 1; private Pd pd; private Poserr poserr; private GsmNetParam gsmNetParam; /** * Get the 'msid' element value. * * @return value */ public Msid getMsid() { return msid; } /** * Set the 'msid' element value. * * @param msid */ public void setMsid(Msid msid) { this.msid = msid; } 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 Pd is current selection for choice. * * @return true if selection, false if not */ public boolean ifPd() { return choiceSelect == PD_CHOICE; } /** * Get the 'pd' element value. * * @return value */ public Pd getPd() { return pd; } /** * Set the 'pd' element value. * * @param pd */ public void setPd(Pd pd) { setChoiceSelect(PD_CHOICE); this.pd = pd; } /** * Check if Poserr is current selection for choice. * * @return true if selection, false if not */ public boolean ifPoserr() { return choiceSelect == POSERR_CHOICE; } /** * Get the 'poserr' element value. * * @return value */ public Poserr getPoserr() { return poserr; } /** * Set the 'poserr' element value. * * @param poserr */ public void setPoserr(Poserr poserr) { setChoiceSelect(POSERR_CHOICE); this.poserr = poserr; } /** * Get the 'gsm_net_param' element value. * * @return value */ public GsmNetParam getGsmNetParam() { return gsmNetParam; } /** * Set the 'gsm_net_param' element value. * * @param gsmNetParam */ public void setGsmNetParam(GsmNetParam gsmNetParam) { this.gsmNetParam = gsmNetParam; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy