Class

org.apache.daffodil.dpath

DFDLHexBinary

Related Doc: package dpath

Permalink

case class DFDLHexBinary(recipe: CompiledDPath, argType: Kind) extends FNOneArg with HexBinaryKind with Product with Serializable

The argument can also be a long, unsignedLong, or any subtype thereof, and in that case a xs:hexBinary value containing a number of hex digits is produced. The ordering and number of the digits correspond to a binary big-endian twos- complement implementation of the type of the argument. Digits 0-9, A-F are used. The number of digits produced depends on the type of $arg, being 2, 4, 8 or 16. If $arg is a literal number then the type is the smallest signed type (long, int, short, byte) that can contain the value. If a literal number is not able to be represented by a long, it is a schema definition error.

• dfdl:hexBinary(xs:short(208)) is the hexBinary value "00D0". • dfdl:hexBinary(208) is the hexBinary value "D0". • dfdl:hexBinary(-2084) is the hexBinary value "F7DC".

Linear Supertypes
Product, Equals, HexBinaryKind, FNOneArg, RecipeOpWithSubRecipes, RecipeOp, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DFDLHexBinary
  2. Product
  3. Equals
  4. HexBinaryKind
  5. FNOneArg
  6. RecipeOpWithSubRecipes
  7. RecipeOp
  8. Serializable
  9. Serializable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DFDLHexBinary(recipe: CompiledDPath, argType: Kind)

    Permalink

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. val argType: Kind

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def bytesToHexString(bytes: Array[Byte]): String

    Permalink

    http://javarevisited.blogspot.com/2013/03/convert-and-print-byte-array-to-hex-string-java-example-tutorial.html

    http://javarevisited.blogspot.com/2013/03/convert-and-print-byte-array-to-hex-string-java-example-tutorial.html

    Attributes
    protected
    Definition Classes
    HexBinaryKind
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def computeValue(a: AnyRef, dstate: DState): AnyRef

    Permalink

    If the argument is of some fixed-width type like Byte, Int, Short, Long or the unsigned thereof, then you get hex digits corresponding to 1, 2, 4, or 8 bytes of a binary twos-complement integer value of that type.

    If the argument is of some fixed-width type like Byte, Int, Short, Long or the unsigned thereof, then you get hex digits corresponding to 1, 2, 4, or 8 bytes of a binary twos-complement integer value of that type. If the argument is anything else (including a literal number), then you get the smallest number of hex digit pairs that can represent the value. If you get xs:integer (aka BigInt/Java BigInteger), then I'd say - smallest number of digits that can represent the value.

    So dfdl:hexBinary(208) is D0, dfdl:hexBinary(xs:integer(208)) is also D0 dfdl:hexBinary(xs:short(208)) is 00D0

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

    Permalink
    Definition Classes
    AnyRef
  10. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hexStringToByteArray(str: String): Array[Byte]

    Permalink

    http://travisdazell.blogspot.com/2012/11/converting-hex-string-to-byte-array-in.html

    http://travisdazell.blogspot.com/2012/11/converting-hex-string-to-byte-array-in.html

    Attributes
    protected
    Definition Classes
    HexBinaryKind
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. val name: String

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

    Permalink
    Definition Classes
    AnyRef
  16. lazy val nfeMsg: String

    Permalink
  17. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  19. val recipe: CompiledDPath

    Permalink
  20. def reduce(numeric: Any): Array[Byte]

    Permalink
    Attributes
    protected
    Definition Classes
    HexBinaryKind
  21. def run(dstate: DState): Unit

    Permalink
    Definition Classes
    FNOneArgRecipeOp
  22. def subRecipes: List[CompiledDPath]

    Permalink
    Definition Classes
    RecipeOpWithSubRecipesRecipeOp
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toXML: Node

    Permalink

    default behavior is inherited and it displays a RecipeOp assuming there are no children to display.

    default behavior is inherited and it displays a RecipeOp assuming there are no children to display. Override and make it call one of the above toXML methods if there are children to display.

    Definition Classes
    FNOneArgRecipeOp
  25. def toXML(children: NodeSeq): Node

    Permalink
    Attributes
    protected
    Definition Classes
    RecipeOp
  26. def toXML(children: Node*): Node

    Permalink
    Attributes
    protected
    Definition Classes
    RecipeOp
  27. def toXML(s: String): Node

    Permalink
    Attributes
    protected
    Definition Classes
    RecipeOp
  28. final def wait(): Unit

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

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

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

Inherited from Product

Inherited from Equals

Inherited from HexBinaryKind

Inherited from FNOneArg

Inherited from RecipeOpWithSubRecipes

Inherited from RecipeOp

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped