Class ShapeComponentDelegate
- java.lang.Object
-
- com.inductiveautomation.ignition.common.xmlserialization.serialization.AbstractSerializationDelegate<java.lang.Object>
-
- com.inductiveautomation.ignition.common.xmlserialization.serialization.DefaultObjectSerializationDelegate
-
- com.inductiveautomation.factorypmi.designer.xmlserialization.ShapeComponentDelegate
-
- All Implemented Interfaces:
SerializationDelegate<java.lang.Object>
public class ShapeComponentDelegate extends DefaultObjectSerializationDelegate
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.String>ignoreprotected java.lang.Class[]putClientProperty-
Fields inherited from class com.inductiveautomation.ignition.common.xmlserialization.serialization.DefaultObjectSerializationDelegate
elementName, equalityDelegates, propertyComparator, skipReferenceTracking, TRANSIENT_KEY
-
-
Constructor Summary
Constructors Constructor Description ShapeComponentDelegate()ShapeComponentDelegate(boolean ctorOnly, java.lang.String... properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisTransient(java.beans.PropertyDescriptor pd)protected voidserializeClientProperties(XMLSerializationContext context, Element elm, javax.swing.JComponent comp, java.util.List<java.lang.String> propsToSerialize)Serialized all of the "client properties" contained in the CLIENT_PROPS list for a componentprotected voidserializeProperties(XMLSerializationContext context, Element elm, java.lang.Object obj)Runs through the javabean properties of the given object, and comares the values of each property to the value that a clean copy of the object would have.protected ElementstartObject(XMLSerializationContext context, java.lang.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, safeArrayEquals, safeEquals, serialize, serializeConstructor, setConstructorOnly, setSkipReferenceTracking, writeCall, writeCall, writeConstructor
-
-
-
-
Method Detail
-
isTransient
protected boolean isTransient(java.beans.PropertyDescriptor pd)
- Overrides:
isTransientin classDefaultObjectSerializationDelegate
-
startObject
protected Element startObject(XMLSerializationContext context, java.lang.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, javax.swing.JComponent comp, java.util.List<java.lang.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, java.lang.Object obj) throws SerializationException
Description copied from class:DefaultObjectSerializationDelegateRuns through the javabean properties of the given object, and comares 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
-
-