1.0.0

org.eclipse.soda.dk.testmanager.parser
Class AbstractConverter

java.lang.Object
  extended by org.eclipse.soda.dk.testmanager.parser.AbstractConverter
All Implemented Interfaces:
PropertyConverter
Direct Known Subclasses:
BooleanConverter, ByteConverter, CharacterConverter, DoubleConverter, FloatConverter, IntegerConverter, LongConverter, ShortConverter, StringConverter

public abstract class AbstractConverter
extends java.lang.Object
implements PropertyConverter

Version:
1.0.0

Constructor Summary
AbstractConverter()
           
 
Method Summary
 java.lang.Object convert(java.lang.String property)
          Convert with the specified property parameter and return the Object result.
 java.lang.Object convert(java.lang.String property, int cardinality)
          Convert with the specified property and cardinality parameters and return the Object result.
protected abstract  java.lang.Object[] createArray(int size)
          Create array with the specified size parameter and return the Object[] result.
protected abstract  java.lang.Object doConversion(java.lang.String property)
          Do conversion with the specified property parameter and return the Object result.
protected abstract  java.lang.Object doPrimitiveArrayConversion(java.util.StringTokenizer tokenizer)
          Do primitive array conversion with the specified tokenizer parameter and return the Object result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConverter

public AbstractConverter()
Method Detail

convert

public java.lang.Object convert(java.lang.String property)
Convert with the specified property parameter and return the Object result.

Specified by:
convert in interface PropertyConverter
Parameters:
property - The property (String) parameter.
Returns:
Results of the convert (Object) value.
See Also:
convert(String,int)

convert

public java.lang.Object convert(java.lang.String property,
                                int cardinality)
Convert with the specified property and cardinality parameters and return the Object result.

Specified by:
convert in interface PropertyConverter
Parameters:
property - The property (String) parameter.
cardinality - The cardinality (int) parameter.
Returns:
Results of the convert (Object) value.
See Also:
convert(String)

createArray

protected abstract java.lang.Object[] createArray(int size)
Create array with the specified size parameter and return the Object[] result.

Parameters:
size - The size (int) parameter.
Returns:
Results of the create array (Object[]) value.

doConversion

protected abstract java.lang.Object doConversion(java.lang.String property)
Do conversion with the specified property parameter and return the Object result.

Parameters:
property - The property (String) parameter.
Returns:
Results of the do conversion (Object) value.
See Also:
doPrimitiveArrayConversion(StringTokenizer)

doPrimitiveArrayConversion

protected abstract java.lang.Object doPrimitiveArrayConversion(java.util.StringTokenizer tokenizer)
Do primitive array conversion with the specified tokenizer parameter and return the Object result.

Parameters:
tokenizer - The tokenizer (StringTokenizer) parameter.
Returns:
Results of the do primitive array conversion (Object) value.

1.0.0

Copyright (c) 2007 IBM