Class RMJSONArchiver
java.lang.Object
com.inductiveautomation.rm.archiver.RMJSONArchiver
An archiver to read/write objects from/to JSON.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceAn interface so objects can provide archival class to archiver.static interfaceAn interface so objects can provide archival attributes to archiver.static interfaceAn interface so objects can provide archival values to archiver.static interfaceAn interface so objects can set archival values from archiver.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new archiver.RMJSONArchiver(String... theImports) Creates a new archiver for given import(s).
- 
Method SummaryModifier and TypeMethodDescriptionAdds an import.protected ClassgetClassForName(String aClassName) Returns a class for name.protected ClassgetClassForNameImpl(String aClassName) Returns a class for name.Returns the class string.protected StringgetClassPath(Object anObj) Returns a class path for an object (shortend if in imports).protected StringgetClassPathImpl(String classPath) Returns a class path for an object (shortend if in imports).protected ObjectReturns a value for a key.readObject(RMJSONNode aNode) Read an object from JSON.readObject(RMJSONNode aNode, Object intoObj) Read an object from JSON.readObject(Object aSource) Read an object from JSON.readObject(Object aSource, Object intoObject) Read an object from JSON.protected voidSet a value for a key.writeObject(Object anObj) Write an object to JSON.writeObject(Object anObj, RMJSONNode aNode) Write an object to JSON.
- 
Constructor Details- 
RMJSONArchiverpublic RMJSONArchiver()Creates a new archiver.
- 
RMJSONArchiverCreates a new archiver for given import(s).
 
- 
- 
Method Details- 
getClassIdReturns the class string.
- 
readObjectRead an object from JSON.- Throws:
- RMJSONReader.RMJSONException
 
- 
readObjectRead an object from JSON.- Throws:
- RMJSONReader.RMJSONException
 
- 
readObjectRead an object from JSON.
- 
readObjectRead an object from JSON.
- 
writeObjectWrite an object to JSON.
- 
writeObjectWrite an object to JSON.
- 
getValueReturns a value for a key.
- 
setValueSet a value for a key.
- 
addImportAdds an import.
- 
getClassPathReturns a class path for an object (shortend if in imports).
- 
getClassPathImplReturns a class path for an object (shortend if in imports).
- 
getClassForNameReturns a class for name.
- 
getClassForNameImplReturns a class for name.
 
-