1   package com.frevvo.forms.cli.shell;
2   
3   import java.io.IOException;
4   
5   import asg.cliche.Command;
6   
7   import com.frevvo.forms.cli.ApiHelper;
8   import com.frevvo.forms.cli.core.EntryShell;
9   import com.frevvo.forms.client.DocumentTypeFeed;
10  import com.frevvo.forms.client.SchemaEntry;
11  import com.google.gdata.util.ServiceException;
12  
13  /**
14   * Shell context for all commands related to schema entries
15   */
16  public class SchemaEntryShell extends EntryShell<SchemaEntry> {
17  	public SchemaEntryShell(SchemaEntry entry) {
18  		super(entry.getTitle().getPlainText(), entry);
19  	}
20  
21  //	@Command(name = "docs", description = "LIST all top-level types from this schema (e.g. 'docs')")
22  //	public String docTypes() throws IOException, ServiceException {
23  //
24  //		SchemaEntry schema = getEntry();
25  //		DocumentTypeFeed docs = schema.getDocumentTypeFeed();
26  //
27  //		return go(new DocumentTypeFeedShell(docs));
28  //	}
29  
30  	@Override
31  	protected String print(SchemaEntry entry) {
32  		return ApiHelper.print(getEntry());
33  	}
34  }