Using RAD Struct Types in Java
The zonemgr
module defines a Property
struct, which represents an individual zone configuration property. The structure has the following members name
, type
, value
, listValue
, and complexValue
. Like enumerations, structs can be interacted directly once the binding is imported.
Example 2-25 Java Language – Using RAD Structs
import com.oracle.solaris.rad.zonemgr.Property; Property prop = new Property(); prop.setName("my name"); prop.setValue("a value"); System.out.println(prop.getName()); System.out.println(prop.getValue());