The CIP4 JDF Library.
JDFLibJ jar downloads are available from Maven Central. The binaries can also be downloaded on github: https://github.com/cip4/JDFLibJ/releases/
Don't write issues, provide Pull-Requests!
Here is a code snippet showing how to generate a KnowMessages JMF Query using the JDF Library:
public String createJmfKnownMessagesQuery() {
// create builder
JMFBuilder jmfBuilder = JMFBuilderFactory.getJMFBuilder(null);
jmfBuilder.setAgentName("MY_AGENT");
jmfBuilder.setAgentVersion("42");
jmfBuilder.setSenderID("AGENT_ID");
// create the acutal query
JDFJMF jmf = jmfBuilder.buildKnownMessagesQuery();
// return JMF as String
return jmf.toXML();
}