org.oma.protocols.mlp.svc_result.Qop 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="qop">
* <xs:complexType>
* <xs:sequence>
* <xs:choice minOccurs="0">
* <!-- Reference to inner class Choice -->
* </xs:choice>
* <xs:element ref="ns:alt_acc" minOccurs="0"/>
* </xs:sequence>
* </xs:complexType>
* </xs:element>
*
*/
public class Qop
{
private Choice choice;
private AltAcc altAcc;
/**
* 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;
}
/**
* 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