Packages

class CIMContext extends AnyRef

Context for parsing. Contains the raw XML, indexes at which to start and stop parsing, the line number index of newlines within the XML, text coverage set (in debug) and error messages raised while parsing.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CIMContext
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CIMContext(xml: String, start: Long, end: Long, first_byte: Long)

    xml

    The current xml string being parsed.

    start

    The starting character position of the xml string - non-zero if not the first Split.

    end

    The ending character position at which to stop parsing.

    first_byte

    The byte offset of the first character to be parsed.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. val coverage: ArrayBuffer[(Int, Int)]

    An array of string start and end offsets that have been parsed.

  7. def covered(): Boolean

    Check that all characters were consumed by parsing.

    Check that all characters were consumed by parsing. Used to find attributes and references that are not understood by the model.

    returns

    true if all non-whitespace characters were parsed.

  8. var end: Long
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. val errors: ArrayBuffer[String]

    An array of up to MAXERRORS error messages.

  12. var first_byte: Long
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def index_string(string: String, offset: Long = 0L, n: ArrayBuffer[Long] = ArrayBuffer[Long] ()): ArrayBuffer[Long]

    Create an index of newline characters in a string.

    Create an index of newline characters in a string. The index of newlines for the string "Now is the time\nfor all good men\nto come to the aid of the party\n" is [15, 32, 64]

    string

    the string to index

    offset

    optional offset to add to the index values

    returns

    {Unit} nothing

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. var last_byte: Long

    The byte offset of the last successfully parsed full element.

  18. def line_number(offset: Long = end): Int

    Get the line number for the given offset value.

    Get the line number for the given offset value. Uses a binary search through the newline array to determine where the given offset lies in the source stream.

    offset

    the character position in the stream

    returns

    the line number (1 + how many newlines precede the offset)

    Annotations
    @SuppressWarnings()
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. val newlines: ArrayBuffer[Long]

    The array of character positions of newlines in the xml string.

  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. val start: Long
  24. var subxml: String

    The internal XML for an element being parsed.

  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String

    Output a debugging string of this context.

    Output a debugging string of this context.

    Definition Classes
    CIMContext → AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. var xml: String

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped