Class XMLSerializationContext
java.lang.Object
com.inductiveautomation.ignition.common.xmlserialization.serialization.XMLSerializationContext
Used while serializing to keep track of references and indentation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCleanCopy
(Class type) int
getRefForElement
(Element elm) Looks up the reference ID for the object within the Element, as long as the element doesn't have reference tracking turned off.void
registerEqualityDelegate
(Class<?> clazz, EqualityDelegate<?> delegate) Registers additional EqualityDelegates not already defined in the defaults for this class.boolean
safeEquals
(Object foo, Object bar) Uses the SerializationDelegate registered for this type of object to serialize the object into an Element.
-
Field Details
-
serializer
-
-
Constructor Details
-
XMLSerializationContext
-
-
Method Details
-
serialize
Uses the SerializationDelegate registered for this type of object to serialize the object into an Element. If the delegate is flagged for reference tracking and this object is equal to one already serialized earlier, a <ref> object will be returned instead.- Throws:
SerializationException
-
getRefForElement
Looks up the reference ID for the object within the Element, as long as the element doesn't have reference tracking turned off. -
getCleanCopy
- Throws:
SerializationException
-
getClassNameMap
-
safeEquals
-
registerEqualityDelegate
Registers additional EqualityDelegates not already defined in the defaults for this class.
-