T - Effective data typepublic final class StringBasedMicroTypeConverter<T> extends Object implements IMicroTypeConverter<T>
IMicroTypeConverter that uses a regular type
converter conversion (see TypeConverter) from and to string for
conversion.| Constructor and Description |
|---|
StringBasedMicroTypeConverter(Class<T> aNativeClass) |
| Modifier and Type | Method and Description |
|---|---|
IMicroElement |
convertToMicroElement(T aObject,
String sNamespaceURI,
String sTagName)
Convert the passed object to a micro element using the specified tag name
|
T |
convertToNative(IMicroElement aElement)
Convert the passed object to a native element.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertToMicroElement@Nonnull public IMicroElement convertToMicroElement(@Nonnull T aObject, @Nullable String sNamespaceURI, @Nonnull @Nonempty String sTagName)
IMicroTypeConverterconvertToMicroElement in interface IMicroTypeConverter<T>aObject - The object to be converted. May not be null.sNamespaceURI - The namespace URI for the element to be created. May be
null.sTagName - The tag name to be used. May neither be null nor empty.null in case creation failed. A micro element with the
specified namespace and tag name otherwise.@Nonnull public T convertToNative(@Nonnull IMicroElement aElement)
IMicroTypeConverterconvertToNative in interface IMicroTypeConverter<T>aElement - The micro element to be converted.null if conversion to a native object failed.Copyright © 2014–2020 Philip Helger. All rights reserved.