xquery/XQuery__AnyAtomicTypeToUntypedAtomicCast.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 12 May 2015 12:20:53 +0100
changeset 296 ea3dbc023c80
parent 241 xquery/trunk/XQuery__AnyAtomicTypeToUntypedAtomicCast.st@e28ef0f20186
permissions -rw-r--r--
Post-convert fixes Removed intermediate `trunk` directories used for branching in SVN

"{ Package: 'stx:goodies/xmlsuite/xquery' }"

"{ NameSpace: XQuery }"

AnyAtomicTypeToAnyAtomicTypeCast subclass:#AnyAtomicTypeToUntypedAtomicCast
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'XQuery-TypeCasting'
!


!AnyAtomicTypeToUntypedAtomicCast methodsFor:'casting'!

cast
    | value |
    value := atomicValue stringValue.
    ^ AtomicItem withValue: value asType: anotherType typeName.

    "Created: / 16-11-2009 / 18:58:42 / Jan Kurs <kursj1@fel.cvut.cz>"
    "Modified: / 16-11-2009 / 22:38:14 / Jan Kurs <kursj1@fel.cvut.cz>"
! !

!AnyAtomicTypeToUntypedAtomicCast class methodsFor:'documentation'!

version_SVN
    ^ '$Id$'
! !