org.sonatype.gshell.util.converter.primitive
Class ByteConverter
java.lang.Object
java.beans.PropertyEditorSupport
org.sonatype.gshell.util.converter.ConverterSupport
org.sonatype.gshell.util.converter.primitive.ByteConverter
- All Implemented Interfaces:
- PropertyEditor, Converter
public class ByteConverter
- extends ConverterSupport
Converter for Byte types.
- Since:
- 2.0
| Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteConverter
public ByteConverter()
convertToObject
protected Object convertToObject(String text)
throws Exception
- Description copied from class:
ConverterSupport
- Converts the supplied text in to an instance of the editor type. The text will never be null, and trim() will
already have been called.
- Specified by:
convertToObject in class ConverterSupport
- Parameters:
text - The text to convertToObject
- Returns:
- An instance of the converted type
- Throws:
Exception - Conversion failed
Copyright © 2008-2011 Sonatype. All Rights Reserved.