com.ericsson.mts.nas.registry.InformationElements Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mts-nas Show documentation
Show all versions of mts-nas Show documentation
A library to encode and decode NAS protocol data, from and to other formats, like XML
package com.ericsson.mts.nas.registry;
import com.ericsson.mts.nas.informationelement.AbstractInformationElement;
import java.util.List;
public class InformationElements {
private List elements;
public void addElement(AbstractInformationElement element) {
elements.add(element);
}
public AbstractInformationElement getElement(String elementName) {
for (AbstractInformationElement informationElement : elements) {
if (elementName.equals(informationElement.name)) {
return informationElement;
}
}
return null;
}
public List getElements() {
return elements;
}
public void setElements(List elements) {
this.elements = elements;
}
}