Class AbstractEnclosingStepDelegate
java.lang.Object
com.inductiveautomation.sfc.elements.steps.enclosing.AbstractEnclosingStepDelegate
- All Implemented Interfaces:
- StepDelegate,- ChartStepProperties,- EnclosingStepProperties
- Direct Known Subclasses:
- EnclosingStepUI.EnclosingStepFactory
public abstract class AbstractEnclosingStepDelegate
extends Object
implements StepDelegate, EnclosingStepProperties
- 
Field SummaryFields inherited from interface com.inductiveautomation.sfc.elements.steps.ChartStepPropertiesAssociatedData, Breakpoint, FactoryId, NameFields inherited from interface com.inductiveautomation.sfc.elements.steps.enclosing.EnclosingStepPropertiesCHART_PATH, EXECUTION_MODE, FACTORY_ID, PASSED_PARAMS, RETURN_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidfromXml(Element domElement, ChartUIElement uiElement) Given an XML DOM element, fill in the properties of theChartUIElement.getId()static booleanisEnclosingStep(ChartUIElement element) voidtoXml(XMLStreamWriter writer, ChartUIElement element, String tab) Serialize the given element (which is guaranteed to be a step element of this factory's type) to the stream writer.voidvalidate(ChartUIElement element, ChartCompilationResults results) Provides step implementations a chance to validate their settings.
- 
Constructor Details- 
AbstractEnclosingStepDelegatepublic AbstractEnclosingStepDelegate()
 
- 
- 
Method Details- 
getId- Specified by:
- getIdin interface- StepDelegate
- Returns:
- A unique string that identifies this kind of step, for example: "com.company.foostep".
 
- 
toXmlpublic void toXml(XMLStreamWriter writer, ChartUIElement element, String tab) throws XMLStreamException Description copied from interface:StepDelegateSerialize the given element (which is guaranteed to be a step element of this factory's type) to the stream writer. Common step attributes (type, id, name, size, location) will have already been serialized, meaning, the xml stream will have just written the open <step> element. Close any elements you open.- Specified by:
- toXmlin interface- StepDelegate
- Parameters:
- writer- the- XMLStreamWriterto write to.
- element- the- ChartUIElementto serialize.
- Throws:
- XMLStreamException
 
- 
fromXmlDescription copied from interface:StepDelegateGiven an XML DOM element, fill in the properties of theChartUIElement. Just like for serializing, the id, location, and name will have already been handled.- Specified by:
- fromXmlin interface- StepDelegate
- Parameters:
- domElement- the XML DOM element.
- uiElement- the- ChartUIElementto deserialize.
- Throws:
- XmlParseException
 
- 
validateDescription copied from interface:StepDelegateProvides step implementations a chance to validate their settings. If the settings are invalid, they should add an error to the compilation results.- Specified by:
- validatein interface- StepDelegate
- Parameters:
- element- the- ChartUIElementto validate.
- results- the- ChartCompilationResults.
 
- 
getCompilationAlteringProperties- Specified by:
- getCompilationAlteringPropertiesin interface- StepDelegate
- Returns:
- a list of properties that may alter this step's compilation validation.
 
- 
isEnclosingStep
 
-