Class ShapeComponentDelegate
java.lang.Object
com.inductiveautomation.ignition.common.xmlserialization.serialization.AbstractSerializationDelegate<Object>
com.inductiveautomation.ignition.common.xmlserialization.serialization.DefaultObjectSerializationDelegate
com.inductiveautomation.factorypmi.designer.xmlserialization.ShapeComponentDelegate
- All Implemented Interfaces:
SerializationDelegate<Object>
-
Field Summary
FieldsFields inherited from class com.inductiveautomation.ignition.common.xmlserialization.serialization.DefaultObjectSerializationDelegate
elementName, propertyComparator, skipReferenceTracking, TRANSIENT_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected voidserializeClientProperties(XMLSerializationContext context, Element elm, JComponent comp, List<String> propsToSerialize) Serialized all of the "client properties" contained in the CLIENT_PROPS list for a componentprotected voidserializeProperties(XMLSerializationContext context, Element elm, Object obj) Runs through the javabean properties of the given object, and compares the values of each property to the value that a clean copy of the object would have.protected ElementstartObject(XMLSerializationContext context, Object obj) Creates an Element with this delegate's element name and with the "cls" attribute set to the object's class.Methods inherited from class com.inductiveautomation.ignition.common.xmlserialization.serialization.DefaultObjectSerializationDelegate
doProperty, initConstructorTypes, isConstructorOnly, isSkipReferenceTracking, serialize, serializeConstructor, setConstructorOnly, setSkipReferenceTracking, writeCall, writeCall, writeConstructor
-
Field Details
-
putClientProperty
-
ignore
-
-
Constructor Details
-
ShapeComponentDelegate
-
ShapeComponentDelegate
public ShapeComponentDelegate()
-
-
Method Details
-
isTransient
- Overrides:
isTransientin classDefaultObjectSerializationDelegate
-
startObject
protected Element startObject(XMLSerializationContext context, Object obj) throws SerializationException Description copied from class:DefaultObjectSerializationDelegateCreates an Element with this delegate's element name and with the "cls" attribute set to the object's class.- Overrides:
startObjectin classDefaultObjectSerializationDelegate- Throws:
SerializationException
-
serializeClientProperties
protected void serializeClientProperties(XMLSerializationContext context, Element elm, JComponent comp, List<String> propsToSerialize) throws SerializationException Serialized all of the "client properties" contained in the CLIENT_PROPS list for a component- Throws:
SerializationException
-
serializeProperties
protected void serializeProperties(XMLSerializationContext context, Element elm, Object obj) throws SerializationException Description copied from class:DefaultObjectSerializationDelegateRuns through the javabean properties of the given object, and compares the values of each property to the value that a clean copy of the object would have. Serializes all properties that have a dirty value.- Overrides:
serializePropertiesin classDefaultObjectSerializationDelegate- Throws:
SerializationException
-