org.apache.commons.betwixt.strategy
Class SimpleTypeMapper
java.lang.Object
org.apache.commons.betwixt.strategy.SimpleTypeMapper
- Direct Known Subclasses:
- StandardSimpleTypeMapper
public abstract class SimpleTypeMapper
- extends 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTypeMapper
public SimpleTypeMapper()
bind
public abstract SimpleTypeMapper.Binding bind(String propertyName,
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-2010 Apache Software Foundation. All Rights Reserved.