Uses of Class
org.opentrafficsim.editor.Schema
Package
Description
The OTS editor allows visual editing for a simulation in OTS.
Validators validate either a node value or attribute value.
-
Uses of Schema in org.opentrafficsim.editor
Modifier and TypeMethodDescription(package private) static void
XsdTreeNodeUtil.addChildren
(Node node, XsdTreeNode parentNode, List<XsdTreeNode> children, org.djutils.immutablecollections.ImmutableList<Node> hiddenNodes, Schema schema, boolean flattenSequence, int skip) Main expansion algorithm.XsdTreeNodeUtil.getRelevantNodesWithChildren
(Node node, org.djutils.immutablecollections.ImmutableList<Node> hiddenNodes, Schema schema) Returns from the XSD definition the appropriate nodes to take children from at the level of the input node, in the order in which they should appear.(package private) static Node
Returns the element referred to by ref={ref} in an xsd:element.(package private) static Node
Returns the element referred to by type={type} in an xsd:element.ModifierConstructorDescriptionprotected
XsdTreeNode
(Schema schema) Constructor for root node, based on anXsdSchema
.XsdTreeNodeRoot
(Schema schema) Constructor for root node, based on a schema. -
Uses of Schema in org.opentrafficsim.editor.decoration.validation
Modifier and TypeMethodDescriptionstatic String
ValueValidator.getBaseType
(Node xsdNode, Schema schema) Returns the base type of the given node, e.g. xsd:double.ValueValidator.getRestrictions
(Node xsdNode, Schema schema) Returns all restrictions for the given node.static String
ValueValidator.reportInvalidAttributeValue
(Node xsdNode, String value, Schema schema) Report first encountered problem in validating the attribute value.static String
ValueValidator.reportInvalidValue
(Node xsdNode, String value, Schema schema) Report first encountered problem in validating the value of the node.