| Modifier and Type | Class and Description |
|---|---|
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| protected Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public TypeDescription | |
| protected void | checkGlobalTag(Property
- JavaBean property property, Node - representation of the property node, Object - instance represented by the node object)Remove redundant global tag for a type safe (generic) collection if it is the same as defined by the JavaBean property |
| protected Set | Returns: properties to serialise- JavaBean to inspect the properties type)Get JavaBean properties to be serialised. |
| protected MappingNode | Returns: Node to get serializedJavaBean getters properties, Object instance for Node javaBean)Tag logic: - explicit root tag is set in serializer - if there is a predefined class tag it is used - a global tag with class name is always used as tag. |
| protected NodeTuple | Returns: NodeTuple to be used in a MappingNode. Return null to skip the property- the instance to be represented javaBean, Property - the property of the instance property, Object - value to be represented propertyValue, Tag - user defined Tag customTag)Represent one JavaBean property. |
| private void | |
| public void | setPropertyUtils(PropertyUtils propertyUtils)
Overrides org. |
| typeDefinitions | back to summary |
|---|---|
| protected Map<Class<? extends Object>, TypeDescription> typeDefinitions | |
| Representer | back to summary |
|---|---|
| public Representer(DumperOptions options) | |
| addTypeDescription | back to summary |
|---|---|
| public TypeDescription addTypeDescription(TypeDescription td) | |
| checkGlobalTag | back to summary |
|---|---|
| protected void checkGlobalTag(Property property, Node node, Object object) Remove redundant global tag for a type safe (generic) collection if it is the same as defined by the JavaBean property
| |
| getProperties | back to summary |
|---|---|
| protected Set Get JavaBean properties to be serialised. The order is respected. This method may be overridden to provide custom property selection or order. | |
| representJavaBean | back to summary |
|---|---|
| protected MappingNode representJavaBean(Set<Property> properties, Object javaBean) Tag logic: - explicit root tag is set in serializer - if there is a predefined class tag it is used - a global tag with class name is always used as tag. The JavaBean parent of the specified JavaBean may set another tag (tag:yaml.org,2002:map) when the property class is the same as runtime class
| |
| representJavaBeanProperty | back to summary |
|---|---|
| protected NodeTuple representJavaBeanProperty(Object javaBean, Property property, Object propertyValue, Tag customTag) Represent one JavaBean property. | |
| resetTag | back to summary |
|---|---|
| private void resetTag(Class<? extends Object> type, Node node) | |
| setPropertyUtils | back to summary |
|---|---|
| public void setPropertyUtils(PropertyUtils propertyUtils) Overrides org.
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Node | representData(Object
the instance to represent data)Implements org. |
| RepresentJavaBean | back to summary |
|---|---|
| protected RepresentJavaBean() | |
| representData | back to summary |
|---|---|
| public Node representData(Object data) Implements org. Doc from org. Create a Node | |