Skip to content

Instantly share code, notes, and snippets.

@fehguy
Created April 2, 2013 02:49
Show Gist options
  • Save fehguy/5289573 to your computer and use it in GitHub Desktop.
Save fehguy/5289573 to your computer and use it in GitHub Desktop.
DocumentationObject obj = new DocumentationObject();
obj.setName("Manual");
obj.addField(new DocumentationParameter(
"fieldA", // attribute name
"The field of Manual", // description, optional
"Notes", // notes about this field, optional
"String", // the attribute type
null, // default value, null if none
null, // allowable values, null if none
false, // required
false // allows mutliple
));
String className = ManualMappedObject.getClass().getName();
ApiPropertiesReader.add(className, "MyManualMappedObject", obj);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment