* Creates a schema definition containing all content types and areas in this database with their current metadata.
* @throws WGAPIException
*/
public WGSchemaDefinition createSchemaDefinition() throws WGAPIException {
WGSchemaDefinition schemaDef = new WGSchemaDefinition();
for (WGContentType ct : getContentTypes()) {
schemaDef.addDocumentDefinition(ct.createSchemaDefinition());
}
for (WGArea area : getAreas().values()) {
schemaDef.addDocumentDefinition(area.createSchemaDefinition());
}
for (WGLanguage lang : getLanguages().values()) {
schemaDef.addDocumentDefinition(lang.createSchemaDefinition());
}
return schemaDef;
}