org.oma.protocols.mlp.svc_result.Eqop 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="eqop">
* <xs:complexType>
* <xs:sequence>
* <xs:element ref="ns:resp_req" minOccurs="0"/>
* <xs:element ref="ns:resp_timer" minOccurs="0"/>
* <xs:choice minOccurs="0">
* <!-- Reference to inner class Choice -->
* </xs:choice>
* <xs:element ref="ns:alt_acc" minOccurs="0"/>
* <xs:element ref="ns:max_loc_age" minOccurs="0"/>
* </xs:sequence>
* </xs:complexType>
* </xs:element>
*
*/
public class Eqop
{
private RespReq respReq;
private RespTimer respTimer;
private Choice choice;
private AltAcc altAcc;
private MaxLocAge maxLocAge;
/**
* Get the 'resp_req' element value.
*
* @return value
*/
public RespReq getRespReq() {
return respReq;
}
/**
* Set the 'resp_req' element value.
*
* @param respReq
*/
public void setRespReq(RespReq respReq) {
this.respReq = respReq;
}
/**
* Get the 'resp_timer' element value.
*
* @return value
*/
public RespTimer getRespTimer() {
return respTimer;
}
/**
* Set the 'resp_timer' element value.
*
* @param respTimer
*/
public void setRespTimer(RespTimer respTimer) {
this.respTimer = respTimer;
}
/**
* Get the choice value.
*
* @return value
*/
public Choice getChoice() {
return choice;
}
/**
* Set the choice value.
*
* @param choice
*/
public void setChoice(Choice choice) {
this.choice = choice;
}
/**
* Get the 'alt_acc' element value.
*
* @return value
*/
public AltAcc getAltAcc() {
return altAcc;
}
/**
* Set the 'alt_acc' element value.
*
* @param altAcc
*/
public void setAltAcc(AltAcc altAcc) {
this.altAcc = altAcc;
}
/**
* Get the 'max_loc_age' element value.
*
* @return value
*/
public MaxLocAge getMaxLocAge() {
return maxLocAge;
}
/**
* Set the 'max_loc_age' element value.
*
* @param maxLocAge
*/
public void setMaxLocAge(MaxLocAge maxLocAge) {
this.maxLocAge = maxLocAge;
}
/**
* Schema fragment(s) for this class:
*
* <xs:choice xmlns:ns="MLP_SVC_RESULT_310.dtd" xmlns:xs="http://www.w3.org/2001/XMLSchema" minOccurs="0">
* <xs:element ref="ns:ll_acc"/>
* <xs:element ref="ns:hor_acc"/>
* </xs:choice>
*
*/
public static class Choice
{
private int choiceSelect = -1;
private static final int LL_ACC_CHOICE = 0;
private static final int HOR_ACC_CHOICE = 1;
private LlAcc llAcc;
private HorAcc horAcc;
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 LlAcc is current selection for choice.
*
* @return true
if selection, false
if not
*/
public boolean ifLlAcc() {
return choiceSelect == LL_ACC_CHOICE;
}
/**
* Get the 'll_acc' element value.
*
* @return value
*/
public LlAcc getLlAcc() {
return llAcc;
}
/**
* Set the 'll_acc' element value.
*
* @param llAcc
*/
public void setLlAcc(LlAcc llAcc) {
setChoiceSelect(LL_ACC_CHOICE);
this.llAcc = llAcc;
}
/**
* Check if HorAcc is current selection for choice.
*
* @return true
if selection, false
if not
*/
public boolean ifHorAcc() {
return choiceSelect == HOR_ACC_CHOICE;
}
/**
* Get the 'hor_acc' element value.
*
* @return value
*/
public HorAcc getHorAcc() {
return horAcc;
}
/**
* Set the 'hor_acc' element value.
*
* @param horAcc
*/
public void setHorAcc(HorAcc horAcc) {
setChoiceSelect(HOR_ACC_CHOICE);
this.horAcc = horAcc;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy