public static void exports ( Xml root , Animation animation ) { Check . notNull ( root ) ; Check . notNull ( animation ) ; final Xml node = root . createChild ( ANIMATION ) ; node . writeString ( ANIMATION_NAME , animation . getName ( ) ) ; node . writeInteger ( ANIMATION_START , animation . getFirst ( ) ) ; node . writeInteger ( ANIMATION_END , animation . getLast ( ) ) ; node . writeDouble ( ANIMATION_SPEED , animation . getSpeed ( ) ) ; node . writeBoolean ( ANIMATION_REVERSED , animation . hasReverse ( ) ) ; node . writeBoolean ( ANIMATION_REPEAT , animation . hasRepeat ( ) ) ; }
Create an XML node from an animation .