1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-09 10:19:41 +02:00

Make ExtensionElement marker interface wrt. QNAME field

ExtensionElement is now a marker interface that requires all
implementation non-abstract classes to carry a static final QNAME
field (of type QName). This is verified by a new unit test.

Also FullyQualifiedElement is renamed to simply XmlElement. XmlElement
is used over ExtensionElement when implementing classes do not
statically know the qualified name of the XML elements they
represent. In general, XmlElement should be used sparingly, and every
XML element should be modeled by its own Java class (implementing
ExtensionElement).
This commit is contained in:
Florian Schmaus 2021-04-18 18:58:50 +02:00
parent 5493a22e44
commit 3d4e7938a7
146 changed files with 600 additions and 344 deletions

View file

@ -13,7 +13,7 @@ dependencies {
implementation "com.google.guava:guava:${guavaVersion}"
// Do not upgrade to a higher reflections version until
// https://github.com/ronmamo/reflections/issues/273 is fixed.
implementation 'org.reflections:reflections:0.9.11'
implementation "org.reflections:reflections:${orgReflectionsVersion}"
api 'eu.geekplace.javapinning:java-pinning-java7:1.1.0-alpha1'
implementation group: 'commons-io', name: 'commons-io', version: "$commonsIoVersion"
api "org.junit.jupiter:junit-jupiter-api:$junitVersion"