Class AssertionRuleCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<AssertionRule>
-
- com.inductiveautomation.sfc.elements.steps.assertion.AssertionRuleCollection
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<AssertionRule>
,java.util.Collection<AssertionRule>
,java.util.List<AssertionRule>
,java.util.RandomAccess
public class AssertionRuleCollection extends java.util.ArrayList<AssertionRule>
Created by Colby.Clegg on 12/14/2015.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssertionRuleCollection()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static AssertionRuleCollection
fromXml(org.w3c.dom.Element parentDom)
static Expression
parseRule(ELParserHarness parser, ExpressionParseContext context, java.lang.String expr, boolean isParameter)
Parses the assertion rule with a special condition for the parameter portion- it should allow full expressions, or shortcuts of just the name as a reference.void
toXml(javax.xml.stream.XMLStreamWriter writer)
void
validate(ChartUIElement element, ChartCompilationResults results)
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interfacejava.util.Collection<AssertionRule>
- Specified by:
equals
in interfacejava.util.List<AssertionRule>
- Overrides:
equals
in classjava.util.ArrayList<AssertionRule>
-
toXml
public void toXml(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
fromXml
public static AssertionRuleCollection fromXml(org.w3c.dom.Element parentDom) throws XmlParseException
- Throws:
XmlParseException
-
parseRule
public static Expression parseRule(ELParserHarness parser, ExpressionParseContext context, java.lang.String expr, boolean isParameter) throws java.lang.Exception
Parses the assertion rule with a special condition for the parameter portion- it should allow full expressions, or shortcuts of just the name as a reference. In other words, both "{param}" and "param" should work.- Throws:
java.lang.Exception
-
validate
public void validate(ChartUIElement element, ChartCompilationResults results)
-
-