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

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


package org.oma.protocols.mlp.svc_result;

import java.util.ArrayList;
import java.util.List;

/** 
 * 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_lia">
 *   <xs:complexType>
 *     <xs:sequence>
 *       <xs:choice>
 *         <xs:element ref="ns:eme_pos" maxOccurs="unbounded"/>
 *         <xs:sequence>
 *           <xs:element ref="ns:result"/>
 *           <xs:element ref="ns:add_info" minOccurs="0"/>
 *         </xs:sequence>
 *       </xs:choice>
 *     </xs:sequence>
 *     <xs:attribute type="xs:string" fixed="3.0.0" name="ver"/>
 *   </xs:complexType>
 * </xs:element>
 * 
*/ public class EmeLia { private int choiceSelect = -1; private static final int EME_PO_LIST_CHOICE = 0; private static final int RESULT_CHOICE = 1; private List emePoList = new ArrayList(); private Result result; private AddInfo addInfo; private String ver; 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 EmePoList is current selection for choice. * * @return true if selection, false if not */ public boolean ifEmePoList() { return choiceSelect == EME_PO_LIST_CHOICE; } /** * Get the list of 'eme_pos' element items. * * @return list */ public List getEmePoList() { return emePoList; } /** * Set the list of 'eme_pos' element items. * * @param list */ public void setEmePoList(List list) { setChoiceSelect(EME_PO_LIST_CHOICE); emePoList = list; } /** * Check if Result is current selection for choice. * * @return true if selection, false if not */ public boolean ifResult() { return choiceSelect == RESULT_CHOICE; } /** * Get the 'result' element value. * * @return value */ public Result getResult() { return result; } /** * Set the 'result' element value. * * @param result */ public void setResult(Result result) { setChoiceSelect(RESULT_CHOICE); this.result = result; } /** * Get the 'add_info' element value. * * @return value */ public AddInfo getAddInfo() { return addInfo; } /** * Set the 'add_info' element value. * * @param addInfo */ public void setAddInfo(AddInfo addInfo) { setChoiceSelect(RESULT_CHOICE); this.addInfo = addInfo; } /** * 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