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:
Serializable
,Cloneable
,Iterable<AssertionRule>
,Collection<AssertionRule>
,List<AssertionRule>
,RandomAccess
Created by Colby.Clegg on 12/14/2015.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static AssertionRuleCollection
static Expression
parseRule
(ELParserHarness parser, ExpressionParseContext context, 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
(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
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Constructor Details
-
AssertionRuleCollection
public AssertionRuleCollection()
-
-
Method Details
-
equals
- Specified by:
equals
in interfaceCollection<AssertionRule>
- Specified by:
equals
in interfaceList<AssertionRule>
- Overrides:
equals
in classArrayList<AssertionRule>
-
toXml
- Throws:
XMLStreamException
-
fromXml
- Throws:
XmlParseException
-
parseRule
public static Expression parseRule(ELParserHarness parser, ExpressionParseContext context, String expr, boolean isParameter) throws 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:
Exception
-
validate
-