Class LayoutConstraintsHandler
- java.lang.Object
 - 
- com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandler
 - 
- com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractReentrantDeserializationHandler
 - 
- com.inductiveautomation.ignition.common.xmlserialization.deserialization.handlers.AbstractBodyDecoderHandler
 - 
- com.inductiveautomation.factorypmi.application.xmlserialization.LayoutConstraintsHandler
 
 
 
 
 
- 
- All Implemented Interfaces:
 DeserializationHandler
public class LayoutConstraintsHandler extends AbstractBodyDecoderHandler
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static Decoder<FPMI_LC>DECODERstatic intFLAGS_FIELDstatic intFONTX_FIELDstatic intFONTY_FIELDstatic intPREF_FIELDstatic intPREF_FLOATINGInternal flag for serialization telling the decoder to use float representation for the preffered location.- 
Fields inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.handlers.AbstractBodyDecoderHandler
elementName 
- 
Fields inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractReentrantDeserializationHandler
objectTL, refTL 
- 
Fields inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandler
object, refId 
 - 
 
- 
Constructor Summary
Constructors Constructor Description LayoutConstraintsHandler() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeserializationHandlerclone()Clones this handler.Decoder<?>getBodyDecoder()Called when body data is encountered in this tag or a sub-tag.booleansupportsNestedElements()Return true if the element type that you're parsing can have nested elements, or false if you're a singleton element.- 
Methods inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.handlers.AbstractBodyDecoderHandler
createNoBodyObject, endElement, getElementName, onBody, startElement 
- 
Methods inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractReentrantDeserializationHandler
getObject, getRefId, setObject, setRefId 
- 
Methods inherited from class com.inductiveautomation.ignition.common.xmlserialization.deserialization.AbstractDeserializationHandler
endObject, endSubElement, startSubElement 
 - 
 
 - 
 
- 
- 
Field Detail
- 
PREF_FIELD
public static final int PREF_FIELD
- See Also:
 - Constant Field Values
 
 
- 
FLAGS_FIELD
public static final int FLAGS_FIELD
- See Also:
 - Constant Field Values
 
 
- 
FONTX_FIELD
public static final int FONTX_FIELD
- See Also:
 - Constant Field Values
 
 
- 
FONTY_FIELD
public static final int FONTY_FIELD
- See Also:
 - Constant Field Values
 
 
- 
PREF_FLOATING
public static final int PREF_FLOATING
Internal flag for serialization telling the decoder to use float representation for the preffered location.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getBodyDecoder
public Decoder<?> getBodyDecoder()
Description copied from interface:DeserializationHandlerCalled when body data is encountered in this tag or a sub-tag. Used to decode the body into an object, which is then passed toDeserializationHandler.onBody(Object) 
- 
supportsNestedElements
public boolean supportsNestedElements()
Description copied from interface:DeserializationHandlerReturn true if the element type that you're parsing can have nested elements, or false if you're a singleton element. If you return true, you need to implement clone().
Note As of Ignition 7.6.5 with support for multi-deserialization, you should also return true from this and implement clone() if your return object is mutable, otherwise instances may be shared amongst multi-deserialized objects.
- Specified by:
 supportsNestedElementsin interfaceDeserializationHandler- Overrides:
 supportsNestedElementsin classAbstractBodyDecoderHandler
 
- 
clone
public DeserializationHandler clone()
Description copied from interface:DeserializationHandlerClones this handler. Only handlers that support nested elements will be cloned, all others can throw an unsupported operation exception instead.- Specified by:
 clonein interfaceDeserializationHandler- Overrides:
 clonein classAbstractBodyDecoderHandler
 
 - 
 
 -