Groovy Documentation

org.linkedin.glu.provisioner.core.model
[Groovy] Interface SystemModelRenderer


interface SystemModelRenderer

Authors:
yan@pongasoft.com


Method Summary
java.lang.String canonicalPrint(SystemModel model)

Renders a canonical representation of the model as a string.

java.lang.String compactPrint(SystemModel model)

Renders a compact representation of the model as a string (contrary to pretty print, there should be no space, indentation or carriage returns)

java.lang.String computeSystemId(SystemModel model)

computes the system id with the idea that if 2 systems have the exact same content, they should generate the same id!

java.lang.String prettyPrint(SystemModel model)

Renders a pretty printed version of the model as a string

 

Method Detail

canonicalPrint

java.lang.String canonicalPrint(SystemModel model)
Renders a canonical representation of the model as a string. The canonical representation is a compact representation which is always the same as long as the model is the same. When the format is json, then it means the keys are sorted (the compact representation does not have this guarantee).


compactPrint

java.lang.String compactPrint(SystemModel model)
Renders a compact representation of the model as a string (contrary to pretty print, there should be no space, indentation or carriage returns)


computeSystemId

java.lang.String computeSystemId(SystemModel model)
computes the system id with the idea that if 2 systems have the exact same content, they should generate the same id!


prettyPrint

java.lang.String prettyPrint(SystemModel model)
Renders a pretty printed version of the model as a string


 

Groovy Documentation