com.synex.xml.ext
Class RandomGenerator

java.lang.Object
  |
  +--com.synex.xml.ext.RandomGenerator
All Implemented Interfaces:
CustomAction

public class RandomGenerator
extends java.lang.Object
implements CustomAction

The implementation of the java custom extension. This extension class returns an integer value with a positive sign, greater than or equal to 0 and less than 100000. Returned values are chosen pseudorandomly with (approximately) uniform distribution from that range.


Constructor Summary
RandomGenerator()
          Creates new RandomGenerator
 
Method Summary
 java.lang.String getValue()
          Gets the custom string value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomGenerator

public RandomGenerator()
Creates new RandomGenerator
Method Detail

getValue

public java.lang.String getValue()
Gets the custom string value.
Specified by:
getValue in interface CustomAction
Returns:
The string representation of a random integer value


Submit a bug or feature
For further API reference and developer documentation, see XML Bulk Loader Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2002 Sergey Yakovlev, All Rights Reserved.