Interface CAFormatterType
- All Known Implementing Classes:
CAFormatterPretty,CAFormatterRaw
public interface CAFormatterType
A shell formatter for data.
-
Method Summary
Modifier and TypeMethodDescriptionvoidformatAuditPage(CAPage<CAAuditEvent> page) Format a page of audit events.voidformatBookmarks(List<CAPreferenceServerBookmark> bookmarks) Format a list of bookmarks.voidformatFile(CAFileType file) Format a file.voidFormat a page of file summaries.voidformatItem(CAItem item) Format an item.voidformatItemsPage(CAPage<CAItemSummary> items) Format a page of item summaries.voidformatLocation(CALocation location) Format a location.voidformatRoles(Set<com.io7m.medrina.api.MRoleName> roles) Format a list of roles.voidFormat a type declaration.voidFormat a page of types.voidFormat a page of type packages.voidformatTypesScalar(Set<CATypeScalarType> types) Format a set of scalar types.voidFormat a page of scalar types.voidPrint text to the output.voidPrint text to the output with a newline.
-
Method Details
-
formatFile
Format a file.- Parameters:
file- the file- Throws:
Exception- On errors
-
formatFilesPage
Format a page of file summaries.- Parameters:
files- The page- Throws:
Exception- On errors
-
formatItem
Format an item.- Parameters:
item- The item- Throws:
Exception- On errors
-
formatItemsPage
Format a page of item summaries.- Parameters:
items- The items- Throws:
Exception- On errors
-
formatBookmarks
Format a list of bookmarks.- Parameters:
bookmarks- The bookmarks- Throws:
Exception- On errors
-
formatRoles
Format a list of roles.- Parameters:
roles- The roles- Throws:
Exception- On errors
-
formatTypesScalar
Format a set of scalar types.- Parameters:
types- The types- Throws:
Exception- On errors
-
formatTypesScalarPage
Format a page of scalar types.- Parameters:
types- The types- Throws:
Exception- On errors
-
formatTypeDeclaration
Format a type declaration.- Parameters:
type- The type- Throws:
Exception- On errors
-
formatTypeDeclarationPage
Format a page of types.- Parameters:
types- The types- Throws:
Exception- On errors
-
formatLocation
Format a location.- Parameters:
location- The location- Throws:
Exception- On errors
-
formatAuditPage
Format a page of audit events.- Parameters:
page- The page- Throws:
Exception- On errors
-
print
Print text to the output.- Parameters:
text- The text- Throws:
Exception- On errors
-
printLine
Print text to the output with a newline.- Parameters:
text- The text- Throws:
Exception- On errors
-
formatTypePackagePage
Format a page of type packages.- Parameters:
type- The type packages- Throws:
Exception- On errors
-