Class CAFormatterRaw
java.lang.Object
com.io7m.cardant.shell.internal.formatting.CAFormatterRaw
- All Implemented Interfaces:
CAFormatterType
A raw formatter.
-
Constructor Summary
Constructors -
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 stock occurrence.voidFormat a page of stock occurrences.voidformatStringSet(SortedSet<String> set) Format a string set.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.toString()
-
Constructor Details
-
CAFormatterRaw
public CAFormatterRaw(org.jline.terminal.Terminal inTerminal) A raw formatter.- Parameters:
inTerminal- The terminal
-
-
Method Details
-
formatFile
Description copied from interface:CAFormatterTypeFormat a file.- Specified by:
formatFilein interfaceCAFormatterType- Parameters:
file- the file
-
formatFilesPage
Description copied from interface:CAFormatterTypeFormat a page of file summaries.- Specified by:
formatFilesPagein interfaceCAFormatterType- Parameters:
files- The page
-
formatItem
Description copied from interface:CAFormatterTypeFormat an item.- Specified by:
formatItemin interfaceCAFormatterType- Parameters:
item- The item
-
formatItemsPage
Description copied from interface:CAFormatterTypeFormat a page of item summaries.- Specified by:
formatItemsPagein interfaceCAFormatterType- Parameters:
items- The items
-
formatBookmarks
Description copied from interface:CAFormatterTypeFormat a list of bookmarks.- Specified by:
formatBookmarksin interfaceCAFormatterType- Parameters:
bookmarks- The bookmarks
-
formatRoles
Description copied from interface:CAFormatterTypeFormat a list of roles.- Specified by:
formatRolesin interfaceCAFormatterType- Parameters:
roles- The roles
-
formatTypesScalar
Description copied from interface:CAFormatterTypeFormat a set of scalar types.- Specified by:
formatTypesScalarin interfaceCAFormatterType- Parameters:
types- The types
-
formatTypesScalarPage
Description copied from interface:CAFormatterTypeFormat a page of scalar types.- Specified by:
formatTypesScalarPagein interfaceCAFormatterType- Parameters:
types- The types
-
formatTypeDeclaration
Description copied from interface:CAFormatterTypeFormat a type declaration.- Specified by:
formatTypeDeclarationin interfaceCAFormatterType- Parameters:
type- The type
-
formatTypeDeclarationPage
Description copied from interface:CAFormatterTypeFormat a page of types.- Specified by:
formatTypeDeclarationPagein interfaceCAFormatterType- Parameters:
types- The types
-
formatLocation
Description copied from interface:CAFormatterTypeFormat a location.- Specified by:
formatLocationin interfaceCAFormatterType- Parameters:
location- The location
-
formatAuditPage
Description copied from interface:CAFormatterTypeFormat a page of audit events.- Specified by:
formatAuditPagein interfaceCAFormatterType- Parameters:
page- The page
-
print
Description copied from interface:CAFormatterTypePrint text to the output.- Specified by:
printin interfaceCAFormatterType- Parameters:
text- The text
-
printLine
Description copied from interface:CAFormatterTypePrint text to the output with a newline.- Specified by:
printLinein interfaceCAFormatterType- Parameters:
text- The text
-
formatTypePackagePage
Description copied from interface:CAFormatterTypeFormat a page of type packages.- Specified by:
formatTypePackagePagein interfaceCAFormatterType- Parameters:
page- The type packages
-
formatStringSet
Description copied from interface:CAFormatterTypeFormat a string set.- Specified by:
formatStringSetin interfaceCAFormatterType- Parameters:
set- The strings
-
formatStockPage
Description copied from interface:CAFormatterTypeFormat a page of stock occurrences.- Specified by:
formatStockPagein interfaceCAFormatterType- Parameters:
page- The page- Throws:
Exception- On errors
-
formatStock
Description copied from interface:CAFormatterTypeFormat a stock occurrence.- Specified by:
formatStockin interfaceCAFormatterType- Parameters:
item- The item- Throws:
Exception- On errors
-
toString
-