Trait

org.dfasdl.utils

ElementHelpers

Related Doc: package utils

Permalink

trait ElementHelpers extends AnyRef

Contains several useful functions for handling elements and their types.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ElementHelpers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class DataElementFilter extends NodeFilter

    Permalink

    This is a simple implementation of a NodeFilter that can be used to traverse only data elements in a dfasdl xml tree.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val binaryDataElements: List[String]

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val dataElements: List[String]

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. val expressionElements: List[String]

    Permalink
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getDataElementType(tagName: String): DataElementType

    Permalink

    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

  14. def getElementType(tagName: String): ElementType

    Permalink

    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.

  15. final def getParentChoice(n: Node): Option[Element]

    Permalink

    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()
  16. final def getParentSequence(n: Node): Option[Element]

    Permalink

    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()
  17. def getStructureElementType(tagName: String): StructureElementType

    Permalink

    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.

  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. def isBinaryDataElement(tagName: String): Boolean

    Permalink
  20. def isDataElement(tagName: String): Boolean

    Permalink
  21. def isExpressionElement(tagName: String): Boolean

    Permalink
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def isStringDataElement(tagName: String): Boolean

    Permalink
  24. def isStructuralElement(tagName: String): Boolean

    Permalink
  25. def isUniqueDataElement(e: Element): Boolean

    Permalink
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. val stringDataElements: List[String]

    Permalink
  30. val structElements: List[String]

    Permalink
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped