public final class XmlEntryPointFactory extends Object
XmlEntryPoints from annotated classes.| Constructor and Description |
|---|
XmlEntryPointFactory(XmlTypeMappingFactory typeMappingFactory,
ValidatorFactory validatorFactory)
Constructs a new
XmlEntryPointFactory. |
| Modifier and Type | Method and Description |
|---|---|
Collection<XmlEntryPoint> |
createEntryPoints(Class<?>... objectTypes)
Creates entry points for the given object types and their descendants using their annotations.
|
public XmlEntryPointFactory(XmlTypeMappingFactory typeMappingFactory, ValidatorFactory validatorFactory)
XmlEntryPointFactory.typeMappingFactory - the type mapping factory.validatorFactory - the validator factory.public Collection<XmlEntryPoint> createEntryPoints(Class<?>... objectTypes)
The following rules apply:
1. For each two object types A and B in objectTypes with B being a descendant of A and A < B
(A comes before B in objectTypes), the resulting list contains an entry point with an
element name taken from B and not from A.
2. For each descendant B of an object type A in objectTypes the resulting list contains an
entry point with an element name taken from A and not from B as long as rule 1 does not apply.
objectTypes - the object typesCollection of entry points.Copyright © 2014. All rights reserved.