Class XmlComponentFileAdapter
java.lang.Object
ru.cg.webbpm.studio.subsystems.page_designer.serialization.impl.io.XmlComponentFileAdapter
- All Implemented Interfaces:
FileReader<XmlComponent>
,FileWriter<XmlComponent>
- Direct Known Subclasses:
XmlComponentOverrideFileAdapter
@Component
@Primary
public class XmlComponentFileAdapter
extends Object
implements FileReader<XmlComponent>, FileWriter<XmlComponent>
Reads into basic XML structure because component reader depends on component indexes
- Author:
- krylov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
write
(XmlComponent obj, Path file) Writes object to specified locationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ru.cg.webbpm.studio.core.api.io.FileReader
readIfValid
-
Constructor Details
-
XmlComponentFileAdapter
public XmlComponentFileAdapter()
-
-
Method Details
-
read
- Specified by:
read
in interfaceFileReader<XmlComponent>
-
write
Description copied from interface:FileWriter
Writes object to specified location- Specified by:
write
in interfaceFileWriter<XmlComponent>
- Parameters:
obj
- what to writefile
- where to write
-
accept
- Specified by:
accept
in interfaceFileReader<XmlComponent>
-