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

org.oma.protocols.mlp.svc_result.EmePos 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="eme_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:esrd" minOccurs="0"/>
 *       <xs:element ref="ns:esrk" minOccurs="0"/>
 *     </xs:sequence>
 *   </xs:complexType>
 * </xs:element>
 * 
*/ public class EmePos { 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 Esrd esrd; private Esrk esrk; /** * 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 'esrd' element value. * * @return value */ public Esrd getEsrd() { return esrd; } /** * Set the 'esrd' element value. * * @param esrd */ public void setEsrd(Esrd esrd) { this.esrd = esrd; } /** * Get the 'esrk' element value. * * @return value */ public Esrk getEsrk() { return esrk; } /** * Set the 'esrk' element value. * * @param esrk */ public void setEsrk(Esrk esrk) { this.esrk = esrk; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy