Class XmlSerializer
java.lang.Object
org.reflections.serializers.XmlSerializer
- All Implemented Interfaces:
Serializer
xml serialization for
Reflections reflections.save(file, new XmlSerializer())
an example of produced xml:
<Reflections>
<SubTypes>
<entry>
<key>org.reflections.TestModel$C1</key>
<values>
<value>org.reflections.TestModel$C2</value>
<value>org.reflections.TestModel$C3</value>
</values>
</entry>
</SubTypes>
<TypesAnnotated>
<entry>
<key>org.reflections.TestModel$AC2</key>
<values>
<value>org.reflections.TestModel$C2</value>
<value>org.reflections.TestModel$C3</value>
</values>
</entry>
</TypesAnnotated>
</Reflections>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.dom4j.DocumentcreateDocument(Store store) read(InputStream inputStream) reads the input stream into a new Reflections instance, populating it's storesave(Reflections reflections, String filename) saves a Reflections instance into the given filename
-
Constructor Details
-
XmlSerializer
public XmlSerializer()
-
-
Method Details
-
read
Description copied from interface:Serializerreads the input stream into a new Reflections instance, populating it's store- Specified by:
readin interfaceSerializer
-
save
Description copied from interface:Serializersaves a Reflections instance into the given filename- Specified by:
savein interfaceSerializer
-
createDocument
-