Class AbstractAssertionStepDelegate
java.lang.Object
com.inductiveautomation.sfc.elements.steps.assertion.AbstractAssertionStepDelegate
- All Implemented Interfaces:
StepDelegate,AssertionStepProperties,ChartStepProperties
- Direct Known Subclasses:
AssertionStepUI.AssertionStepFactory
public abstract class AbstractAssertionStepDelegate
extends Object
implements StepDelegate, AssertionStepProperties
Created by Colby.Clegg on 12/14/2015.
-
Field Summary
Fields inherited from interface com.inductiveautomation.sfc.elements.steps.assertion.AssertionStepProperties
ASSERTION_RULES, FACTORY_ID, FAILURE_BEHAVIOR, FAILURE_FLAGFields inherited from interface com.inductiveautomation.sfc.elements.steps.ChartStepProperties
AssociatedData, Breakpoint, FactoryId, Name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfromXml(Element domElement, ChartUIElement uiElement) Given an XML DOM element, fill in the properties of theChartUIElement.getId()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 compilationResults) Provides step implementations a chance to validate their settings.
-
Constructor Details
-
AbstractAssertionStepDelegate
public AbstractAssertionStepDelegate()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceStepDelegate- Returns:
- A unique string that identifies this kind of step, for example: "com.company.foostep".
-
toXml
public 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 interfaceStepDelegate- Parameters:
writer- theXMLStreamWriterto write to.element- theChartUIElementto serialize.- Throws:
XMLStreamException
-
fromXml
Description 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 interfaceStepDelegate- Parameters:
domElement- the XML DOM element.uiElement- theChartUIElementto deserialize.- Throws:
XmlParseException
-
validate
Description 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 interfaceStepDelegate- Parameters:
element- theChartUIElementto validate.compilationResults- theChartCompilationResults.
-
getCompilationAlteringProperties
- Specified by:
getCompilationAlteringPropertiesin interfaceStepDelegate- Returns:
- a list of properties that may alter this step's compilation validation.
-