/servers/jain-slee/core/components/components/src/main/java/org/mobicents/slee/container/component/deployment/jaxb/descriptors/sbb/MSbbCMPField.java
Java | 132 lines | 46 code | 17 blank | 69 comment | 6 complexity | 805377ec7fb4feb2a132cf7daa738b4a MD5 | raw file
Possible License(s): LGPL-3.0, GPL-3.0, LGPL-2.1, GPL-2.0, CC-BY-SA-3.0, CC0-1.0, Apache-2.0, BSD-3-Clause
- /*
- * JBoss, Home of Professional Open Source
- * Copyright 2011, Red Hat, Inc. and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
- /**
- * Start time:11:27:39 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;
-
- import org.mobicents.slee.container.component.deployment.jaxb.slee.sbb.CmpField;
- import org.mobicents.slee.container.component.sbb.CMPFieldDescriptor;
-
- /**
- * Start time:11:27:39 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 MSbbCMPField implements CMPFieldDescriptor {
-
- /**
- * the description of the cmp field
- */
- private final String description;
-
- /**
- * the cmp field name
- */
- private final String cmpFieldName;
-
- /**
- * the sbb alias reference
- */
- private final String sbbAliasRef;
-
- /**
- * the id of the sbb referenced through the alias
- */
- private SbbID sbbRef = null;
-
- public MSbbCMPField(org.mobicents.slee.container.component.deployment.jaxb.slee11.sbb.CmpField cmpField) {
-
- this.description=cmpField.getDescription()==null?null:cmpField.getDescription().getvalue();
- this.cmpFieldName=cmpField.getCmpFieldName().getvalue();
- if (cmpField.getSbbAliasRef() == null) {
- this.sbbAliasRef = null;
- }
- else {
- this.sbbAliasRef=cmpField.getSbbAliasRef().getvalue();
- }
- }
-
- public MSbbCMPField(
- CmpField cmpField) {
- this.description=cmpField.getDescription()==null?null:cmpField.getDescription().getvalue();
- this.cmpFieldName=cmpField.getCmpFieldName().getvalue();
- if (cmpField.getSbbAliasRef() == null) {
- this.sbbAliasRef = null;
- }
- else {
- this.sbbAliasRef=cmpField.getSbbAliasRef().getvalue();
- }
- }
-
- /**
- * Retrieves the description of the cmp field
- * @return
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * Retrieves the cmp field name
- * @return
- */
- public String getCmpFieldName() {
- return cmpFieldName;
- }
-
- /**
- * Retrieves the sbb alias reference
- * @return
- */
- public String getSbbAliasRef() {
- return sbbAliasRef;
- }
-
- /**
- * Retrieves the id of the sbb referenced through the alias
- * @return
- */
- public SbbID getSbbRef() {
- return sbbRef;
- }
-
- /**
- * Sets the id of the sbb referenced through the alias
- * @param sbbRef
- */
- public void setSbbRef(SbbID sbbRef) {
- this.sbbRef = sbbRef;
- }
-
- }