Trait

org.apache.daffodil.cookers

StringLiteralCookerMixin

Related Doc: package cookers

Permalink

trait StringLiteralCookerMixin extends Converter[String, String]

We refer to the process of checking and replacing entities within DFDL string literals as "cooking" them.

They start raw. Thawing replaces XML literals like " Cooking replaces DFDL literals, as appropriate depending on

* forUnparse - things like WSP+ just turn into a single space when unparsing. For parsing they get processed later into a lexical analyzer/DFA part. * Which property the cooking is for: This determines also error checking of which kinds of entites (raw aka byte, character entities, or character-class entities). * Of the character class entities, which specifically are allowed or disallowed.

The taxonomy of trait mixins and classes combine to implement the right combination of the above.

Linear Supertypes
Converter[String, String], Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StringLiteralCookerMixin
  2. Converter
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def cook(raw: String, context: ThrowsSDE, forUnparse: Boolean): String

    Permalink

Concrete 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. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def convert(b: String, context: ThrowsSDE, forUnparse: Boolean): String

    Permalink

    Override this if there is just one conversion used for both constants and for runtime expressions.

    Override this if there is just one conversion used for both constants and for runtime expressions.

    Attributes
    protected
    Definition Classes
    StringLiteralCookerMixinConverter
  7. def convertConstant(b: String, context: ThrowsSDE, forUnparse: Boolean): String

    Permalink
    Definition Classes
    Converter
  8. def convertRuntime(b: String, context: ThrowsSDE, forUnparse: Boolean): String

    Permalink

    Override these runtime and constant-specific variants if you need different conversions done if an expression is evaluated at runtime.

    Override these runtime and constant-specific variants if you need different conversions done if an expression is evaluated at runtime.

    This is for things like delimiters or escapeCharacter where it can be "" if it is a constant, but it cannot be "" if it is a runtime expression value.

    The forUnparse flag is for distinctions needed between parse time and unparse time which is very common thing to have.

    This is not the same concept as Compile time vs. Runtime.

    Definition Classes
    Converter
  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  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 hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from Converter[String, String]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped