Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.25 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.25 KB

CIP4 JDF Java Library

Maven Central License (CIP4 Software License) Snapshot

The CIP4 JDF Library.

Download

JDFLibJ jar downloads are available from Maven Central. The binaries can also be downloaded on github: https://github.com/cip4/JDFLibJ/releases/

Issue Tracking

Don't write issues, provide Pull-Requests!

Usage

Create JMF Messages

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();
}