Uses of Class
io.kojan.xml.Entity
-
-
Uses of Entity in io.kojan.xml
Methods in io.kojan.xml that return Entity Modifier and Type Method Description static <Type,Bean>
Entity<Type,Bean>Entity. of(java.lang.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 extends Builder<Type>>
Entity<Type,Bean>Entity. of(java.lang.String tag, Factory<Bean> beanFactory, Property<Type,Bean,?>... properties)
Creates an entity using a bean class implementing theBuilder
interface.static <Type> Entity<Type,Type>
Entity. ofMutable(java.lang.String tag, Factory<Type> factory, Property<Type,Type,?>... properties)
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 Entity Modifier and Type Method Description <Type,Bean>
voidXMLDumper. dumpEntity(Entity<Type,Bean> entity, Type value)
Serializes givenEntity
into XML form.static <Type,Bean,RelatedType,RelatedBean>
Relationship<Type,Bean,RelatedType,RelatedBean>Relationship. of(Entity<RelatedType,RelatedBean> relatedEntity, Getter<Type,java.lang.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 givenEntity
from XML form.Constructors in io.kojan.xml with parameters of type Entity Constructor Description Relationship(Entity<RelatedType,RelatedBean> relatedEntity, Getter<EnclosingType,java.lang.Iterable<RelatedType>> getter, Setter<EnclosingBean,RelatedType> setter, boolean optional, boolean unique)
Creates a relationship between two entities.
-