net.sf.doolin.oxml.adapter
Class EnumOXMLAdapter

java.lang.Object
  extended by net.sf.doolin.oxml.adapter.AbstractSimpleOXMLAdapter<Enum<?>>
      extended by net.sf.doolin.oxml.adapter.EnumOXMLAdapter
All Implemented Interfaces:
OXMLAdapter

public class EnumOXMLAdapter
extends AbstractSimpleOXMLAdapter<Enum<?>>

Adapter towards an enumeration.

Author:
Damien Coraboeuf

Constructor Summary
EnumOXMLAdapter()
           
 
Method Summary
protected  Enum<?> adapt(String value, OXMLContext context)
          Adapts a simple string to an object.
 String getType()
          Returns the enumeration class name
 void setType(String type)
          Sets the enumeration class name
 
Methods inherited from class net.sf.doolin.oxml.adapter.AbstractSimpleOXMLAdapter
adapt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumOXMLAdapter

public EnumOXMLAdapter()
Method Detail

adapt

protected Enum<?> adapt(String value,
                        OXMLContext context)
Description copied from class: AbstractSimpleOXMLAdapter
Adapts a simple string to an object.

Specified by:
adapt in class AbstractSimpleOXMLAdapter<Enum<?>>
Parameters:
value - String to adapt
context - Execution context
Returns:
Created instance

getType

public String getType()
Returns the enumeration class name

Returns:
Class name

setType

public void setType(String type)
Sets the enumeration class name

Parameters:
type - Class name


Copyright © 2011. All Rights Reserved.