@Immutable public final class StringMicroTypeConverter extends Object implements IMicroTypeConverter<String>
IMicroTypeConverter implementation for String
objects.| Modifier and Type | Method and Description |
|---|---|
IMicroElement |
convertToMicroElement(String aObject,
String sNamespaceURI,
String sTagName)
Convert the passed object to a micro element using the specified tag name
|
String |
convertToNative(IMicroElement aElement)
Convert the passed object to a native element.
|
static StringMicroTypeConverter |
getInstance() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertToMicroElement@Nonnull public static StringMicroTypeConverter getInstance()
@Nonnull public IMicroElement convertToMicroElement(@Nonnull String aObject, @Nullable String sNamespaceURI, @Nonnull @Nonempty String sTagName)
IMicroTypeConverterconvertToMicroElement in interface IMicroTypeConverter<String>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 String convertToNative(@Nonnull IMicroElement aElement)
IMicroTypeConverterconvertToNative in interface IMicroTypeConverter<String>aElement - The micro element to be converted.null if conversion to a native object failed.Copyright © 2014–2021 Philip Helger. All rights reserved.