Next in thread → Next in month →

Re: [cti-users] Java-STIX examples

From
Alex ter Weele <>
Date
2015-08-18T20:55:53+00:00
ID
Thread
Re: [cti-users] Java-STIX examples
Stuart,
I’m not terribly familiar with JAXB, but I think you could create addr in my example with

    (new org.mitre.cybox.common_2.ObjectFactory()).createStringObjectPropertyType().withValue("10.0.0.1")

SpringObjectPropertyType also provides a way to get an instance with just a constructor, skipping the intermediate of a factory:

    (new StringObjectPropertyType()).withValue("10.0.0.1")
Next in thread → Next in month →