Table of Contents
Let's create a simple UObject: a empty UObject. The code for the UObject is:
import liburbi.main.UObjectJava;
public class SimpleUObject extends UObjectJava {
/// The constructor of your UObject MUST take a string
/// as parameter.
public SimpleUObject (String s) {
super (s); /// Call the constructor of UObjectJava
}
}
This UObject is very simple. It contains only a constructor which take a string as parameter, and calls the constructor of UObjectJava giving it the string. Your UObject MUST have this constructor, it will be used by the UObject API. This is the most simple UObject you can do.