The RM Java™ API interfaces provide both object and XML forms of their methods. In XML forms, you pass an integer array as input, and the methods return data as XML-formatted strings. You can call the XML versions of methods to retrieve XML, which is suitable for mapping data to fields in the user interface. You can also pass XML strings to a method as input parameters.
//Returns an XML representation of the properties array passed String getPropertiesCollection(RMObjectStore aoObjectStore) { // Creates a String array of the names and authors of the classification schemes // available in the object store. String [] props = new String []{RMProperty.RECORD_FOLDER_NAME, RMProperty.AUTHOR}; String XML = aoObjectStore.getClassificationSchemesXML(props); Return XML; }
// Returns an XML representation of properties for the RM entity whose types are passed. // If the properties collection is null or empty, returns all the readily-available properties // of that RM entity. String getEntityCollection(RecordFolder aoFolder) { int [] rmTypes = new int[]{ RMType.RM_TYPE_ELECTRONICRECORD }; // False indicates that hidden objects are not included in the XML output. String XML = aoFolder.getContaineesXML(rmTypes, null, false); return XML; }