trait ElementHelpers extends AnyRef
Contains several useful functions for handling elements and their types.
- Alphabetic
- By Inheritance
- ElementHelpers
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
DataElementFilter
extends NodeFilter
This is a simple implementation of a
NodeFilter
that can be used to traverse only data elements in a dfasdl xml tree.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val binaryDataElements: List[String]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val dataElements: List[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val expressionElements: List[String]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getDataElementType(tagName: String): DataElementType
Analyze the given DataElement and return the type.
Analyze the given DataElement and return the type. If the type is not known an
UnknownElement
type is returned.- tagName
The tag name of the element.
- returns
The data element type or
UnknownElement
-
def
getElementType(tagName: String): ElementType
Analyze the given tag name and return the DFASDL element type.
Analyze the given tag name and return the DFASDL element type. If the type is not known an
UnknownElement
type is returned.- tagName
The tag name of the element.
- returns
The element type or
UnknownElement
.
-
final
def
getParentChoice(n: Node): Option[Element]
Walk up the tree until we find the parent choice of the given node.
Walk up the tree until we find the parent choice of the given node.
- n
The start node.
- returns
An option to the parent choice element if it exists.
- Annotations
- @SuppressWarnings() @tailrec()
-
final
def
getParentSequence(n: Node): Option[Element]
Walk up the tree until we find the parent sequence of the given node.
Walk up the tree until we find the parent sequence of the given node.
- n
The start node.
- returns
An option to the parent sequence element if it exists.
- Annotations
- @SuppressWarnings() @tailrec()
-
def
getStructureElementType(tagName: String): StructureElementType
Analyze the given structural element name and return it's type.
Analyze the given structural element name and return it's type. If the type is not known an
Unknownelement
type is returned.- tagName
The tag name of the element.
- returns
The structural element type or
UnknownElement
.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- def isBinaryDataElement(tagName: String): Boolean
- def isDataElement(tagName: String): Boolean
- def isExpressionElement(tagName: String): Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isStringDataElement(tagName: String): Boolean
- def isStructuralElement(tagName: String): Boolean
- def isUniqueDataElement(e: Element): Boolean
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val stringDataElements: List[String]
- val structElements: List[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )