Uses of Class
io.kojan.xml.Entity
-
Uses of Entity in io.kojan.xml
Methods in io.kojan.xml that return EntityModifier and TypeMethodDescriptionstatic <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.Creates an entity using a bean class implementing theBuilderinterface.static <Type> Entity<Type, Type> Creates an entity over a mutable data type that does not need conversion from bean type.Methods in io.kojan.xml with parameters of type EntityModifier and TypeMethodDescription<Type,Bean>
voidXMLDumper.dumpEntity(Entity<Type, Bean> entity, Type value) Serializes givenEntityinto XML form.static <Type,Bean, RelatedType, RelatedBean>
Relationship<Type, Bean, RelatedType, RelatedBean> Relationship.of(Entity<RelatedType, RelatedBean> relatedEntity, Getter<Type, Iterable<RelatedType>> getter, Setter<Bean, RelatedType> setter) Creates a non-unique, optional relationship with another entity.static <Type,Bean, RelatedType, RelatedBean>
Relationship<Type, Bean, RelatedType, RelatedBean> Relationship.ofSingular(Entity<RelatedType, RelatedBean> relatedEntity, Getter<Type, RelatedType> getter, Setter<Bean, RelatedType> setter) Creates a unique, optional relationship with another entity.<Type,Bean>
voidXMLParser.parseEntity(Entity<Type, Bean> entity, Bean bean) Deserializes givenEntityfrom XML form.Constructors in io.kojan.xml with parameters of type EntityModifierConstructorDescriptionRelationship(Entity<RelatedType, RelatedBean> relatedEntity, Getter<EnclosingType, Iterable<RelatedType>> getter, Setter<EnclosingBean, RelatedType> setter, boolean optional, boolean unique) Creates a relationship between two entities.