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

org.oma.protocols.mlp.svc_result.TrlPos 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="trl_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:sequence>
 *     <xs:attribute use="required" name="trl_trigger">
 *       <xs:simpleType>
 *         <!-- Reference to inner class TrlTrigger -->
 *       </xs:simpleType>
 *     </xs:attribute>
 *   </xs:complexType>
 * </xs:element>
 * 
*/ public class TrlPos { 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 TrlTrigger trlTrigger; /** * 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 'trl_trigger' attribute value. * * @return value */ public TrlTrigger getTrlTrigger() { return trlTrigger; } /** * Set the 'trl_trigger' attribute value. * * @param trlTrigger */ public void setTrlTrigger(TrlTrigger trlTrigger) { this.trlTrigger = trlTrigger; } /** * Schema fragment(s) for this class: *
     * <xs:simpleType xmlns:xs="http://www.w3.org/2001/XMLSchema">
     *   <xs:restriction base="xs:string">
     *     <xs:enumeration value="PERIODIC"/>
     *     <xs:enumeration value="MS_AVAIL"/>
     *   </xs:restriction>
     * </xs:simpleType>
     * 
*/ public static enum TrlTrigger { PERIODIC, MS_AVAIL } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy