Class CAFormatterPretty
java.lang.Object
com.io7m.cardant.shell.internal.formatting.CAFormatterPretty
- All Implemented Interfaces:
CAFormatterType
A pretty formatter.
-
Constructor Summary
ConstructorsConstructorDescriptionCAFormatterPretty(org.jline.terminal.Terminal inTerminal) A pretty formatter. -
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.voidformatTypesScalar(Set<CATypeScalarType> types) Format a set of scalar types.voidFormat a page of scalar types.toString()
-
Constructor Details
-
CAFormatterPretty
public CAFormatterPretty(org.jline.terminal.Terminal inTerminal) A pretty formatter.- Parameters:
inTerminal- The terminal
-
-
Method Details
-
formatFile
Description copied from interface:CAFormatterTypeFormat a file.- Specified by:
formatFilein interfaceCAFormatterType- Parameters:
file- the file- Throws:
com.io7m.tabla.core.TException
-
formatFilesPage
public void formatFilesPage(CAPage<CAFileType.CAFileWithoutData> files) throws com.io7m.tabla.core.TException Description copied from interface:CAFormatterTypeFormat a page of file summaries.- Specified by:
formatFilesPagein interfaceCAFormatterType- Parameters:
files- The page- Throws:
com.io7m.tabla.core.TException
-
formatItem
Description copied from interface:CAFormatterTypeFormat an item.- Specified by:
formatItemin interfaceCAFormatterType- Parameters:
item- The item- Throws:
com.io7m.tabla.core.TException
-
formatItemsPage
Description copied from interface:CAFormatterTypeFormat a page of item summaries.- Specified by:
formatItemsPagein interfaceCAFormatterType- Parameters:
items- The items- Throws:
com.io7m.tabla.core.TException
-
formatBookmarks
Description copied from interface:CAFormatterTypeFormat a list of bookmarks.- Specified by:
formatBookmarksin interfaceCAFormatterType- Parameters:
bookmarks- The bookmarks- Throws:
Exception- On errors
-
formatRoles
Description copied from interface:CAFormatterTypeFormat a list of roles.- Specified by:
formatRolesin interfaceCAFormatterType- Parameters:
roles- The roles- Throws:
Exception- On errors
-
formatTypesScalar
Description copied from interface:CAFormatterTypeFormat a set of scalar types.- Specified by:
formatTypesScalarin interfaceCAFormatterType- Parameters:
types- The types- Throws:
Exception- On errors
-
formatTypesScalarPage
Description copied from interface:CAFormatterTypeFormat a page of scalar types.- Specified by:
formatTypesScalarPagein interfaceCAFormatterType- Parameters:
types- The types- Throws:
Exception- On errors
-
formatTypeDeclaration
Description copied from interface:CAFormatterTypeFormat a type declaration.- Specified by:
formatTypeDeclarationin interfaceCAFormatterType- Parameters:
type- The type- Throws:
Exception- On errors
-
formatTypeDeclarationPage
Description copied from interface:CAFormatterTypeFormat a page of types.- Specified by:
formatTypeDeclarationPagein interfaceCAFormatterType- Parameters:
types- The types- Throws:
Exception- On errors
-
formatLocation
Description copied from interface:CAFormatterTypeFormat a location.- Specified by:
formatLocationin interfaceCAFormatterType- Parameters:
location- The location- Throws:
Exception- On errors
-
formatAuditPage
Description copied from interface:CAFormatterTypeFormat a page of audit events.- Specified by:
formatAuditPagein interfaceCAFormatterType- Parameters:
page- The page- Throws:
Exception- On errors
-
toString
-