Class ModelRepresenter

java.lang.Object
org.yaml.snakeyaml.representer.BaseRepresenter
org.yaml.snakeyaml.representer.Representer
org.sonatype.maven.polyglot.yaml.ModelRepresenter

class ModelRepresenter extends org.yaml.snakeyaml.representer.Representer
YAML model representer.
Since:
0.7
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private class 
     
    private class 
     
    protected class 
    org.yaml.snakeyaml.representer.SafeRepresenter.RepresentArray
     
    protected class 
    org.yaml.snakeyaml.representer.SafeRepresenter.RepresentBoolean
     
    protected class 
    org.yaml.snakeyaml.representer.SafeRepresenter.RepresentByteArray
     
    protected class 
    org.yaml.snakeyaml.representer.SafeRepresenter.RepresentDate
     
    protected class 
    org.yaml.snakeyaml.representer.SafeRepresenter.RepresentEnum
     
    protected class 
    org.yaml.snakeyaml.representer.SafeRepresenter.RepresentIterator
     
    protected class 
    org.yaml.snakeyaml.representer.SafeRepresenter.RepresentList
     
    protected class 
    org.yaml.snakeyaml.representer.SafeRepresenter.RepresentMap
     
    protected class 
    org.yaml.snakeyaml.representer.SafeRepresenter.RepresentNull
     
    protected class 
    org.yaml.snakeyaml.representer.SafeRepresenter.RepresentNumber
     
    protected class 
    org.yaml.snakeyaml.representer.SafeRepresenter.RepresentPrimitiveArray
     
    protected class 
    org.yaml.snakeyaml.representer.SafeRepresenter.RepresentSet
     
    protected class 
    org.yaml.snakeyaml.representer.SafeRepresenter.RepresentString
     
    protected class 
    org.yaml.snakeyaml.representer.SafeRepresenter.RepresentUuid
     

    Nested classes/interfaces inherited from class org.yaml.snakeyaml.representer.Representer

    org.yaml.snakeyaml.representer.Representer.RepresentJavaBean
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Map<Class<? extends Object>,org.yaml.snakeyaml.nodes.Tag>
     
    protected org.yaml.snakeyaml.DumperOptions.NonPrintableStyle
     
    private static List<String>
     
    private static List<String>
     
    private static List<String>
     
    private static List<String>
     
    private static List<String>
     
    protected TimeZone
     

    Fields inherited from class org.yaml.snakeyaml.representer.Representer

    typeDefinitions

    Fields inherited from class org.yaml.snakeyaml.representer.BaseRepresenter

    defaultFlowStyle, defaultScalarStyle, multiRepresenters, nullRepresenter, objectToRepresent, representedObjects, representers
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModelRepresenter(org.yaml.snakeyaml.DumperOptions options)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.yaml.snakeyaml.nodes.Tag
    addClassTag(Class<? extends Object> arg0, org.yaml.snakeyaml.nodes.Tag arg1)
     
    protected Set<org.yaml.snakeyaml.introspector.Property>
    getProperties(Class<? extends Object> type)
     
    protected org.yaml.snakeyaml.nodes.Tag
    getTag(Class<?> arg0, org.yaml.snakeyaml.nodes.Tag arg1)
     
     
    protected org.yaml.snakeyaml.nodes.NodeTuple
    representJavaBeanProperty(Object javaBean, org.yaml.snakeyaml.introspector.Property property, Object propertyValue, org.yaml.snakeyaml.nodes.Tag customTag)
     
    void
     
    private boolean
    skipBoolean(org.yaml.snakeyaml.introspector.Property property, String name, Object propertyValue, boolean value)
     
    private boolean
    skipString(org.yaml.snakeyaml.introspector.Property property, String name, Object propertyValue, String value)
     
    private Set<org.yaml.snakeyaml.introspector.Property>
    sortTypeWithOrder(Class<? extends Object> type, List<String> order)
     

    Methods inherited from class org.yaml.snakeyaml.representer.Representer

    addTypeDescription, checkGlobalTag, representJavaBean, setPropertyUtils

    Methods inherited from class org.yaml.snakeyaml.representer.BaseRepresenter

    getDefaultFlowStyle, getDefaultScalarStyle, getPropertyUtils, isExplicitPropertyUtils, represent, representData, representMapping, representScalar, representScalar, representSequence, setDefaultFlowStyle, setDefaultScalarStyle

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ORDER_MODEL

      private static List<String> ORDER_MODEL
    • ORDER_DEVELOPER

      private static List<String> ORDER_DEVELOPER
    • ORDER_CONTRIBUTOR

      private static List<String> ORDER_CONTRIBUTOR
    • ORDER_DEPENDENCY

      private static List<String> ORDER_DEPENDENCY
    • ORDER_PLUGIN

      private static List<String> ORDER_PLUGIN
    • classTags

      protected Map<Class<? extends Object>,org.yaml.snakeyaml.nodes.Tag> classTags
    • timeZone

      protected TimeZone timeZone
    • nonPrintableStyle

      protected org.yaml.snakeyaml.DumperOptions.NonPrintableStyle nonPrintableStyle
  • Constructor Details

    • ModelRepresenter

      public ModelRepresenter(org.yaml.snakeyaml.DumperOptions options)
  • Method Details

    • representJavaBeanProperty

      protected org.yaml.snakeyaml.nodes.NodeTuple representJavaBeanProperty(Object javaBean, org.yaml.snakeyaml.introspector.Property property, Object propertyValue, org.yaml.snakeyaml.nodes.Tag customTag)
      Overrides:
      representJavaBeanProperty in class org.yaml.snakeyaml.representer.Representer
    • skipString

      private boolean skipString(org.yaml.snakeyaml.introspector.Property property, String name, Object propertyValue, String value)
    • skipBoolean

      private boolean skipBoolean(org.yaml.snakeyaml.introspector.Property property, String name, Object propertyValue, boolean value)
    • getProperties

      protected Set<org.yaml.snakeyaml.introspector.Property> getProperties(Class<? extends Object> type)
      Overrides:
      getProperties in class org.yaml.snakeyaml.representer.Representer
    • sortTypeWithOrder

      private Set<org.yaml.snakeyaml.introspector.Property> sortTypeWithOrder(Class<? extends Object> type, List<String> order)
    • getTag

      protected org.yaml.snakeyaml.nodes.Tag getTag(Class<?> arg0, org.yaml.snakeyaml.nodes.Tag arg1)
    • addClassTag

      public org.yaml.snakeyaml.nodes.Tag addClassTag(Class<? extends Object> arg0, org.yaml.snakeyaml.nodes.Tag arg1)
    • getTimeZone

      public TimeZone getTimeZone()
    • setTimeZone

      public void setTimeZone(TimeZone arg0)