Get a class by it’s symbolic name (id)
var contentClass = repository.getContentClass(string id);
JSDOC. Example :
var documentClass= repository.getContentClass('document');
Get a document’s class
var contentClass = doc.getContentClass();
Retrieve all propertiy definitions from a ContentClass
contentClass.retrieveAttributeDefinitions(lang.hitch(this, function (attributeDefinitions) { var j, attributeDefinition ; for (j = 0; j < attributeDefinitions.length; j++) { attributeDefinition = attributeDefinitions[j]; // Here is you property definition } }));