org.apache.commons.betwixt.strategy
Class SimpleTypeMapper

java.lang.Object
  extended by org.apache.commons.betwixt.strategy.SimpleTypeMapper
Direct Known Subclasses:
StandardSimpleTypeMapper

public abstract class SimpleTypeMapper
extends java.lang.Object

Strategy for binding simple types. Simple types (in xml) have no attributes or child elements. For Betwixt, these are converted to and from strings and these strings used to populate either attributes or element body's.

Version:
$Revision: 561314 $
Author:
Apache Commons Team

Nested Class Summary
static class SimpleTypeMapper.Binding
          Enumerates binding options for simple types.
 
Constructor Summary
SimpleTypeMapper()
           
 
Method Summary
abstract  SimpleTypeMapper.Binding bind(java.lang.String propertyName, java.lang.Class propertyType, IntrospectionConfiguration configuration)
          Specifies the binding of a simple type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTypeMapper

public SimpleTypeMapper()
Method Detail

bind

public abstract SimpleTypeMapper.Binding bind(java.lang.String propertyName,
                                              java.lang.Class propertyType,
                                              IntrospectionConfiguration configuration)

Specifies the binding of a simple type.

Note: the xml name to which this property will be bound cannot be known at this stage (since it depends

Parameters:
propertyName - the name of the property (to be bound)
propertyType - the type of the property (to be bound)
configuration - the current IntrospectionConfiguration


Copyright 2002-2008 The Apache Software Foundation. All Rights Reserved.