Uses of Interface
io.kojan.xml.Converter
-
Uses of Converter in io.kojan.xml
Fields in io.kojan.xml declared as ConverterModifier and TypeFieldDescriptionEntity.converter
private final Converter
<String, AttributeType> Attribute.fromStringConverter
private final Converter
<AttributeType, String> Attribute.toStringConverter
Methods in io.kojan.xml that return ConverterModifier and TypeMethodDescriptionEntity.getBeanConverter()
Obtains a converter function that converts entity bean to entity object.Methods in io.kojan.xml with parameters of type ConverterModifier and TypeMethodDescriptionstatic <Type,
Bean, AttributeType>
Attribute<Type, Bean, AttributeType> Attribute.of
(String tag, Getter<Type, AttributeType> getter, Setter<Bean, AttributeType> setter, Converter<AttributeType, String> toStringConverter, Converter<String, AttributeType> fromStringConverter) Creates a unique, non-optional attribute.static <Type,
Bean>
Entity<Type, Bean> Entity.of
(String tag, Factory<Bean> beanFactory, Converter<Bean, Type> converter, Property<Type, Bean, ?>... properties) Creates an entity using a converter method for converting entity beans to entity objects.static <Type,
Bean, AttributeType>
Attribute<Type, Bean, AttributeType> Attribute.ofMulti
(String tag, Getter<Type, Iterable<AttributeType>> getter, Setter<Bean, AttributeType> setter, Converter<AttributeType, String> toStringConverter, Converter<String, AttributeType> fromStringConverter) Creates a non-unique, optional attribute.static <Type,
Bean, AttributeType>
Attribute<Type, Bean, AttributeType> Attribute.ofOptional
(String tag, Getter<Type, AttributeType> getter, Setter<Bean, AttributeType> setter, Converter<AttributeType, String> toStringConverter, Converter<String, AttributeType> fromStringConverter) Creates a unique, optional attribute.Constructors in io.kojan.xml with parameters of type ConverterModifierConstructorDescriptionAttribute
(String tag, Getter<EnclosingType, Iterable<AttributeType>> getter, Setter<EnclosingBean, AttributeType> setter, Converter<AttributeType, String> toStringConverter, Converter<String, AttributeType> fromStringConverter, boolean optional, boolean unique) Creates an attribute of an entity.Entity
(String tag, Factory<Bean> beanFactory, Converter<Bean, Type> converter, List<Property<Type, Bean, ?>> properties) Creates an entity.