network.oxalis.as4.common.As4MessageProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oxalis-as4 Show documentation
Show all versions of oxalis-as4 Show documentation
Extension adding AS4 support to Oxalis
package network.oxalis.as4.common;
import java.util.ArrayList;
public class As4MessageProperties extends ArrayList {
public boolean isMissing(String name) {
return stream().noneMatch(p -> name.equals(p.getName()));
}
public String getValueByName(String name) {
return stream().filter(p -> name.equals(p.getName())).findAny().map(As4MessageProperty::getValue).orElse(null);
}
}