-
- Type Parameters:
T
- type of the object towrite
.
- All Known Subinterfaces:
EntityBean
,MarshallableObject
,Marshalling<T>
,MarshallingObject
,ReadableBean
,ReadableBeanProperty<V>
,ReadableBigDecimalProperty
,ReadableBigIntegerProperty
,ReadableBooleanProperty
,ReadableByteProperty
,io.github.mmm.property.container.collection.ReadableCollectionProperty<V,E>
,ReadableContainerProperty<V,E>
,ReadableDoubleProperty
,ReadableFloatProperty
,ReadableInstantProperty
,ReadableIntegerProperty
,ReadableListProperty<E>
,ReadableLocalDateProperty
,ReadableLocalDateTimeProperty
,ReadableLocalTimeProperty
,ReadableLongProperty
,ReadableMapProperty<K,V>
,ReadableNumberProperty<N>
,ReadableObjectProperty<V>
,ReadableOffsetDateTimeProperty
,ReadableOffsetTimeProperty
,ReadableProperty<V>
,ReadableRangeProperty<V>
,ReadableSetProperty<E>
,ReadableShortProperty
,ReadableSimpleProperty<V>
,ReadableStringProperty
,ReadableZonedDateTimeProperty
,VirtualBean
,WritableBean
,WritableBeanProperty<V>
,WritableBigDecimalProperty
,WritableBigIntegerProperty
,WritableBooleanProperty
,WritableByteProperty
,io.github.mmm.property.container.collection.WritableCollectionProperty<V,E>
,WritableContainerProperty<V,E>
,WritableDoubleProperty
,WritableFloatProperty
,WritableInstantProperty
,WritableIntegerProperty
,WritableListProperty<E>
,WritableLocalDateProperty
,WritableLocalDateTimeProperty
,WritableLocalTimeProperty
,WritableLongProperty
,WritableMapProperty<K,V>
,WritableNumberProperty<N>
,WritableObjectProperty<V>
,WritableOffsetDateTimeProperty
,WritableOffsetTimeProperty
,WritableProperty<V>
,WritableRangeProperty<V>
,WritableSetProperty<E>
,WritableShortProperty
,WritableSimpleProperty<V>
,WritableStringProperty
,WritableZonedDateTimeProperty
- All Known Implementing Classes:
AbstractBean
,AbstractVirtualBean
,AdvancedBean
,Bean
,BeanProperty
,BigDecimalProperty
,BigIntegerProperty
,BooleanProperty
,ByteProperty
,io.github.mmm.property.container.collection.CollectionProperty
,ContainerProperty
,DatatypeMarshalling
,DoubleProperty
,DurationInSecondsProperty
,DynamicBean
,FloatProperty
,IdProperty
,InstantProperty
,IntegerProperty
,LinkProperty
,ListMarshalling
,ListProperty
,LocalDateProperty
,LocalDateTimeProperty
,LocalTimeProperty
,LongProperty
,MapProperty
,NumberProperty
,ObjectProperty
,OffsetDateTimeProperty
,OffsetTimeProperty
,Property
,RangeProperty
,SetProperty
,ShortProperty
,SimpleEntityBean
,SimpleProperty
,StringListProperty
,StringProperty
,TemporalProperty
,ZonedDateTimeProperty
public interface Marshaller<T>
Interface for a marshaller that canwrite
(marshall or serialize) an object to structured formats such as JSON or XML.- Since:
- 1.0.0
- See Also:
Unmarshaller
,MarshallableObject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
writeObject(StructuredWriter writer, T object)
-
-
-
Method Detail
-
writeObject
void writeObject(StructuredWriter writer, T object)
- Parameters:
writer
- theStructuredWriter
where to write the data of the givenobject
to. Create via e.g.JsonFormat.get().writer(writer)
orXmlFormat.get().writer(writer)
.object
- the object to serialize or marshall. If this is an instance ofMarshallableObject
then this has to be the called instance itself.
-
-