/**
* Start time:11:43:35 2009-01-20<br>
* Project: mobicents-jainslee-server-core<br>
*
* @author <a href="mailto:baranowb@gmail.com">baranowb - Bartosz Baranowski
* </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
package org.mobicents.slee.container.component.deployment.jaxb.descriptors.sbb;
import javax.slee.SbbID;
/**
* Start time:11:43:35 2009-01-20<br>
* Project: mobicents-jainslee-server-core<br>
*
* @author <a href="mailto:baranowb@gmail.com">baranowb - Bartosz Baranowski
* </a>
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
*/
public class MGetChildRelationMethod {
private String description=null;
private String sbbAliasRef=null;
private String childRelationMethodName=null;
private byte defaultPriority=0;
/**
* the sbb id referenced by the alias
*/
private SbbID sbbID;
public MGetChildRelationMethod(org.mobicents.slee.container.component.deployment.jaxb.slee.sbb.GetChildRelationMethod getChildRelationMethod) {
super();
this.description=getChildRelationMethod.getDescription()==null?null:getChildRelationMethod.getDescription().getvalue();
this.sbbAliasRef=getChildRelationMethod.getSbbAliasRef().getvalue();
this.childRelationMethodName=getChildRelationMethod.getGetChildRelationMethodName().getvalue();
String v=getChildRelationMethod.getDefaultPriority().getvalue();
//This will fail when def priority is empty
this.defaultPriority=Byte.parseByte(v);
}
public MGetChildRelationMethod(
org.mobicents.slee.container.component.deployment.jaxb.slee11.sbb.GetChildRelationMethod llGetChildRelationMethod) {
super();
this.description=llGetChildRelationMethod.getDescription()==null?null:llGetChildRelationMethod.getDescription().getvalue();
this.sbbAliasRef=llGetChildRelationMethod.getSbbAliasRef().getvalue();
this.childRelationMethodName=llGetChildRelationMethod.getGetChildRelationMethodName().getvalue();
String v=llGetChildRelationMethod.getDefaultPriority().getvalue();
this.defaultPriority=Byte.parseByte(v);
}
public String getDescription() {
return description;
}
public String getSbbAliasRef() {
return sbbAliasRef;
}
public String getChildRelationMethodName() {
return childRelationMethodName;
}
public byte getDefaultPriority() {
return defaultPriority;
}
public SbbID getSbbID() {
return sbbID;
}
public void setSbbID(SbbID sbbID) {
this.sbbID = sbbID;
}
}