net.sf.doolin.oxml.adapter
Class EnumOXMLAdapter
java.lang.Object
net.sf.doolin.oxml.adapter.AbstractSimpleOXMLAdapter<Enum<?>>
net.sf.doolin.oxml.adapter.EnumOXMLAdapter
- All Implemented Interfaces:
- OXMLAdapter
public class EnumOXMLAdapter
- extends AbstractSimpleOXMLAdapter<Enum<?>>
Adapter towards an enumeration.
- Author:
- Damien Coraboeuf
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumOXMLAdapter
public EnumOXMLAdapter()
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 adaptcontext - 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.