Package jmri.web.servlet.operations
Class HtmlManifest
- java.lang.Object
-
- jmri.jmrit.operations.trains.TrainCommon
-
- jmri.web.servlet.operations.HtmlTrainCommon
-
- jmri.web.servlet.operations.HtmlManifest
-
public class HtmlManifest extends HtmlTrainCommon
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.web.servlet.operations.HtmlTrainCommon
HtmlTrainCommon.ShowLocation
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.ObjectMapper
mapper
-
Fields inherited from class jmri.web.servlet.operations.HtmlTrainCommon
locale, resourcePrefix, strings, train
-
Fields inherited from class jmri.jmrit.operations.trains.TrainCommon
_dropCars, _pickupCars, BLANK_LINE, BUILD_REPORT_CHAR, ENGINE, HORIZONTAL_LINE_CHAR, HYPHEN, IS_MANIFEST, IS_TWO_COLUMN_TRACK, LOCAL, NEW_LINE, PAPER_MARGINS, PICKUP, SPACE, TAB, TEXT_COLOR_DONE, TEXT_COLOR_END, TEXT_COLOR_START, VERTICAL_LINE_CHAR
-
-
Constructor Summary
Constructors Constructor Description HtmlManifest(java.util.Locale locale, Train train)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
blockCars(com.fasterxml.jackson.databind.JsonNode cars, RouteLocation location, boolean isManifest)
protected java.lang.String
dropCar(com.fasterxml.jackson.databind.JsonNode car, java.lang.String[] format, boolean isLocal)
protected java.lang.String
dropEngine(com.fasterxml.jackson.databind.JsonNode engine)
protected java.lang.String
dropEngines(com.fasterxml.jackson.databind.JsonNode engines)
protected Car
getCar(com.fasterxml.jackson.databind.JsonNode jnCar)
protected java.util.List<Car>
getCarList(java.util.ArrayList<com.fasterxml.jackson.databind.JsonNode> jnCars)
protected java.lang.String
getDropLocation(com.fasterxml.jackson.databind.JsonNode location, HtmlTrainCommon.ShowLocation show)
protected java.lang.String
getFormattedAttribute(java.lang.String attribute, java.lang.String value)
protected java.lang.String
getFormattedLocation(com.fasterxml.jackson.databind.JsonNode location, HtmlTrainCommon.ShowLocation show, java.lang.String prefix)
protected com.fasterxml.jackson.databind.JsonNode
getJsonManifest()
java.lang.String
getLocations()
protected java.lang.String
getPickupLocation(com.fasterxml.jackson.databind.JsonNode location, HtmlTrainCommon.ShowLocation show)
protected java.lang.String
getTextAttribute(java.lang.String attribute, com.fasterxml.jackson.databind.JsonNode rollingStock)
java.lang.String
getValidity()
protected boolean
isLocalMove(com.fasterxml.jackson.databind.JsonNode car)
protected boolean
isUtilityCar(com.fasterxml.jackson.databind.JsonNode car)
protected java.lang.String
pickUpCar(com.fasterxml.jackson.databind.JsonNode car, java.lang.String[] format)
protected java.lang.String
pickupEngine(com.fasterxml.jackson.databind.JsonNode engine)
protected java.lang.String
pickupEngines(com.fasterxml.jackson.databind.JsonNode engines)
protected java.lang.String
pickupUtilityCars(java.util.ArrayList<com.fasterxml.jackson.databind.JsonNode> jnCars, com.fasterxml.jackson.databind.JsonNode jnCar, RouteLocation location, boolean isManifest)
protected java.lang.String
setoutUtilityCars(java.util.ArrayList<com.fasterxml.jackson.databind.JsonNode> jnCars, com.fasterxml.jackson.databind.JsonNode jnCar, RouteLocation location, boolean isManifest)
-
Methods inherited from class jmri.web.servlet.operations.HtmlTrainCommon
convertToHTMLColor, dropCar, dropCar, dropEngine, dropEngines, engineChange, getCarAttribute, getEngineAttribute, getRollingStockAttribute, getTrackComments, pickUpCar, pickUpCar, pickupEngine, pickupEngines, pickupUtilityCars, setoutUtilityCars
-
Methods inherited from class jmri.jmrit.operations.trains.TrainCommon
addCarsLocationUnknown, addLine, addLine, blockCarsByTrack, blockCarsByTrackNameTwoColumn, blockCarsTwoColumn, blockLocosTwoColumn, clearUtilityCarTypes, convertStringToDate, countPickupUtilityCars, countSetoutUtilityCars, countUtilityCars, createTabIfNeeded, dropCar, dropCar, dropEngines, formatColorString, formatStringToCommaSeparated, getDate, getDate, getDropCarHeader, getDropEngineHeader, getISO8601Date, getLineLength, getLocalMoveHeader, getManifestHeaderLineLength, getPageSize, getPickupCarHeader, getPickupEngineHeader, getTextColor, getTextColorName, getTextColorString, isNextCar, isNextCar, isThereWorkAtLocation, isThereWorkAtLocation, localMoveCar, newLine, newLine, padAndTruncate, padAndTruncateIfNeeded, padString, pickupCar, pickUpCar, pickUpCarTruncated, pickupEngines, pickupUtilityCars, pickupUtilityCars, printCarHeader, printDropCarHeader, printDropEngineHeader, printEngineHeader, printHorizontalLine, printHorizontalLine, printLocalCarMoveHeader, printPickupCarHeader, printPickupEngineHeader, printTrackComments, printTrackNameHeader, setoutUtilityCars, setoutUtilityCars, setoutUtilityCars, splitString, tabString, truncatedDropCar
-
-
-
-
Field Detail
-
mapper
protected com.fasterxml.jackson.databind.ObjectMapper mapper
-
-
Constructor Detail
-
HtmlManifest
public HtmlManifest(java.util.Locale locale, Train train) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getLocations
public java.lang.String getLocations() throws java.io.IOException
- Throws:
java.io.IOException
-
blockCars
protected java.lang.String blockCars(com.fasterxml.jackson.databind.JsonNode cars, RouteLocation location, boolean isManifest)
-
pickupUtilityCars
protected java.lang.String pickupUtilityCars(java.util.ArrayList<com.fasterxml.jackson.databind.JsonNode> jnCars, com.fasterxml.jackson.databind.JsonNode jnCar, RouteLocation location, boolean isManifest)
-
setoutUtilityCars
protected java.lang.String setoutUtilityCars(java.util.ArrayList<com.fasterxml.jackson.databind.JsonNode> jnCars, com.fasterxml.jackson.databind.JsonNode jnCar, RouteLocation location, boolean isManifest)
-
getCarList
protected java.util.List<Car> getCarList(java.util.ArrayList<com.fasterxml.jackson.databind.JsonNode> jnCars)
-
pickUpCar
protected java.lang.String pickUpCar(com.fasterxml.jackson.databind.JsonNode car, java.lang.String[] format)
-
dropCar
protected java.lang.String dropCar(com.fasterxml.jackson.databind.JsonNode car, java.lang.String[] format, boolean isLocal)
-
dropEngines
protected java.lang.String dropEngines(com.fasterxml.jackson.databind.JsonNode engines)
-
dropEngine
protected java.lang.String dropEngine(com.fasterxml.jackson.databind.JsonNode engine)
-
pickupEngines
protected java.lang.String pickupEngines(com.fasterxml.jackson.databind.JsonNode engines)
-
pickupEngine
protected java.lang.String pickupEngine(com.fasterxml.jackson.databind.JsonNode engine)
-
getDropLocation
protected java.lang.String getDropLocation(com.fasterxml.jackson.databind.JsonNode location, HtmlTrainCommon.ShowLocation show)
-
getPickupLocation
protected java.lang.String getPickupLocation(com.fasterxml.jackson.databind.JsonNode location, HtmlTrainCommon.ShowLocation show)
-
getTextAttribute
protected java.lang.String getTextAttribute(java.lang.String attribute, com.fasterxml.jackson.databind.JsonNode rollingStock)
-
getFormattedAttribute
protected java.lang.String getFormattedAttribute(java.lang.String attribute, java.lang.String value)
-
getFormattedLocation
protected java.lang.String getFormattedLocation(com.fasterxml.jackson.databind.JsonNode location, HtmlTrainCommon.ShowLocation show, java.lang.String prefix)
-
isLocalMove
protected boolean isLocalMove(com.fasterxml.jackson.databind.JsonNode car)
-
isUtilityCar
protected boolean isUtilityCar(com.fasterxml.jackson.databind.JsonNode car)
-
getJsonManifest
protected com.fasterxml.jackson.databind.JsonNode getJsonManifest() throws java.io.IOException
- Throws:
java.io.IOException
-
getValidity
public java.lang.String getValidity()
- Overrides:
getValidity
in classHtmlTrainCommon
-
-