com.ericsson.mts.nas.registry.Messages 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.message.AbstractMessage;
import java.util.List;
public class Messages {
private List messages;
public void addMessage(AbstractMessage message){
messages.add(message);
}
public AbstractMessage getMessage(String messageName){
for(AbstractMessage message : messages){
if(messageName.equals(message.name)){
return message;
}
}
return null;
}
public List getMessages() {
return messages;
}
public void setMessages(List messages) {
this.messages = messages;
}
}