org.oma.protocols.mlp.svc_result.SvcResult 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="svc_result">
* <xs:complexType>
* <xs:sequence>
* <xs:element ref="ns:hdr" minOccurs="0"/>
* <xs:choice>
* <xs:element ref="ns:slia"/>
* <xs:element ref="ns:slirep"/>
* <xs:element ref="ns:slrep"/>
* <xs:element ref="ns:eme_lia"/>
* <xs:element ref="ns:emerep"/>
* <xs:element ref="ns:tlra"/>
* <xs:element ref="ns:tlrep"/>
* <xs:element ref="ns:tlrsa"/>
* </xs:choice>
* </xs:sequence>
* <xs:attribute type="xs:string" fixed="3.1.0" name="ver"/>
* </xs:complexType>
* </xs:element>
*
*/
public class SvcResult
{
private Hdr hdr;
private int choiceSelect = -1;
private static final int SLIA_CHOICE = 0;
private static final int SLIREP_CHOICE = 1;
private static final int SLREP_CHOICE = 2;
private static final int EME_LIA_CHOICE = 3;
private static final int EMEREP_CHOICE = 4;
private static final int TLRA_CHOICE = 5;
private static final int TLREP_CHOICE = 6;
private static final int TLRSA_CHOICE = 7;
private Slia slia;
private Slirep slirep;
private Slrep slrep;
private EmeLia emeLia;
private Emerep emerep;
private Tlra tlra;
private Tlrep tlrep;
private Tlrsa tlrsa;
private String ver;
/**
* Get the 'hdr' element value.
*
* @return value
*/
public Hdr getHdr() {
return hdr;
}
/**
* Set the 'hdr' element value.
*
* @param hdr
*/
public void setHdr(Hdr hdr) {
this.hdr = hdr;
}
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 Slia is current selection for choice.
*
* @return true
if selection, false
if not
*/
public boolean ifSlia() {
return choiceSelect == SLIA_CHOICE;
}
/**
* Get the 'slia' element value.
*
* @return value
*/
public Slia getSlia() {
return slia;
}
/**
* Set the 'slia' element value.
*
* @param slia
*/
public void setSlia(Slia slia) {
setChoiceSelect(SLIA_CHOICE);
this.slia = slia;
}
/**
* Check if Slirep is current selection for choice.
*
* @return true
if selection, false
if not
*/
public boolean ifSlirep() {
return choiceSelect == SLIREP_CHOICE;
}
/**
* Get the 'slirep' element value.
*
* @return value
*/
public Slirep getSlirep() {
return slirep;
}
/**
* Set the 'slirep' element value.
*
* @param slirep
*/
public void setSlirep(Slirep slirep) {
setChoiceSelect(SLIREP_CHOICE);
this.slirep = slirep;
}
/**
* Check if Slrep is current selection for choice.
*
* @return true
if selection, false
if not
*/
public boolean ifSlrep() {
return choiceSelect == SLREP_CHOICE;
}
/**
* Get the 'slrep' element value.
*
* @return value
*/
public Slrep getSlrep() {
return slrep;
}
/**
* Set the 'slrep' element value.
*
* @param slrep
*/
public void setSlrep(Slrep slrep) {
setChoiceSelect(SLREP_CHOICE);
this.slrep = slrep;
}
/**
* Check if EmeLia is current selection for choice.
*
* @return true
if selection, false
if not
*/
public boolean ifEmeLia() {
return choiceSelect == EME_LIA_CHOICE;
}
/**
* Get the 'eme_lia' element value.
*
* @return value
*/
public EmeLia getEmeLia() {
return emeLia;
}
/**
* Set the 'eme_lia' element value.
*
* @param emeLia
*/
public void setEmeLia(EmeLia emeLia) {
setChoiceSelect(EME_LIA_CHOICE);
this.emeLia = emeLia;
}
/**
* Check if Emerep is current selection for choice.
*
* @return true
if selection, false
if not
*/
public boolean ifEmerep() {
return choiceSelect == EMEREP_CHOICE;
}
/**
* Get the 'emerep' element value.
*
* @return value
*/
public Emerep getEmerep() {
return emerep;
}
/**
* Set the 'emerep' element value.
*
* @param emerep
*/
public void setEmerep(Emerep emerep) {
setChoiceSelect(EMEREP_CHOICE);
this.emerep = emerep;
}
/**
* Check if Tlra is current selection for choice.
*
* @return true
if selection, false
if not
*/
public boolean ifTlra() {
return choiceSelect == TLRA_CHOICE;
}
/**
* Get the 'tlra' element value.
*
* @return value
*/
public Tlra getTlra() {
return tlra;
}
/**
* Set the 'tlra' element value.
*
* @param tlra
*/
public void setTlra(Tlra tlra) {
setChoiceSelect(TLRA_CHOICE);
this.tlra = tlra;
}
/**
* Check if Tlrep is current selection for choice.
*
* @return true
if selection, false
if not
*/
public boolean ifTlrep() {
return choiceSelect == TLREP_CHOICE;
}
/**
* Get the 'tlrep' element value.
*
* @return value
*/
public Tlrep getTlrep() {
return tlrep;
}
/**
* Set the 'tlrep' element value.
*
* @param tlrep
*/
public void setTlrep(Tlrep tlrep) {
setChoiceSelect(TLREP_CHOICE);
this.tlrep = tlrep;
}
/**
* Check if Tlrsa is current selection for choice.
*
* @return true
if selection, false
if not
*/
public boolean ifTlrsa() {
return choiceSelect == TLRSA_CHOICE;
}
/**
* Get the 'tlrsa' element value.
*
* @return value
*/
public Tlrsa getTlrsa() {
return tlrsa;
}
/**
* Set the 'tlrsa' element value.
*
* @param tlrsa
*/
public void setTlrsa(Tlrsa tlrsa) {
setChoiceSelect(TLRSA_CHOICE);
this.tlrsa = tlrsa;
}
/**
* 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 - 2025 Weber Informatics LLC | Privacy Policy