Package org.sonatype.maven.polyglot.yaml
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 ClassesModifier and TypeClassDescriptionprivate 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
FieldsModifier and TypeFieldDescriptionprotected org.yaml.snakeyaml.DumperOptions.NonPrintableStyle
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 -
Method Summary
Modifier and TypeMethodDescriptionorg.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
protected org.yaml.snakeyaml.nodes.NodeTuple
representJavaBeanProperty
(Object javaBean, org.yaml.snakeyaml.introspector.Property property, Object propertyValue, org.yaml.snakeyaml.nodes.Tag customTag) void
setTimeZone
(TimeZone arg0) 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
-
Field Details
-
ORDER_MODEL
-
ORDER_DEVELOPER
-
ORDER_CONTRIBUTOR
-
ORDER_DEPENDENCY
-
ORDER_PLUGIN
-
classTags
-
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 classorg.yaml.snakeyaml.representer.Representer
-
skipString
-
skipBoolean
-
getProperties
- Overrides:
getProperties
in classorg.yaml.snakeyaml.representer.Representer
-
sortTypeWithOrder
-
getTag
-
addClassTag
-
getTimeZone
-
setTimeZone
-