public class TwoWayString2FieldBridgeAdaptor extends String2FieldBridgeAdaptor implements TwoWayFieldBridge
Constructor and Description |
---|
TwoWayString2FieldBridgeAdaptor(TwoWayStringBridge stringBridge) |
Modifier and Type | Method and Description |
---|---|
Object |
get(String name,
Document document)
Build the element object from the
Document |
String |
objectToString(Object object)
Converts the object representation to a string.
|
String |
toString() |
<T> T |
unwrap(Class<T> bridgeClass)
Return an object of the specified type to allow access to specific
bridge interfaces.
|
set, setAppliedOnType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
set
public TwoWayString2FieldBridgeAdaptor(TwoWayStringBridge stringBridge)
public String objectToString(Object object)
StringBridge
objectToString
in interface StringBridge
objectToString
in interface TwoWayFieldBridge
objectToString
in class String2FieldBridgeAdaptor
object
- The object to transform into a string representation.null
. It can be empty though.public Object get(String name, Document document)
TwoWayFieldBridge
Document
get
in interface TwoWayFieldBridge
name
- field namedocument
- documentpublic <T> T unwrap(Class<T> bridgeClass)
BridgeAdaptor
If no adapted bridge matches this type, null
is returned.
unwrap
in interface BridgeAdaptor
unwrap
in class String2FieldBridgeAdaptor
null
if there is none.public String toString()
toString
in class String2FieldBridgeAdaptor
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved