Package com.helger.xml.util.mime
Class MimeTypeInfoMicroTypeConverter
- java.lang.Object
-
- com.helger.xml.util.mime.MimeTypeInfoMicroTypeConverter
-
- All Implemented Interfaces:
IMicroTypeConverter<MimeTypeInfo>
public final class MimeTypeInfoMicroTypeConverter extends Object implements IMicroTypeConverter<MimeTypeInfo>
-
-
Constructor Summary
Constructors Constructor Description MimeTypeInfoMicroTypeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMicroElementconvertToMicroElement(MimeTypeInfo aObject, String sNamespaceURI, String sTagName)Convert the passed object to a micro element using the specified tag nameMimeTypeInfoconvertToNative(IMicroElement aElement)Convert the passed object to a native element.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.helger.xml.microdom.convert.IMicroTypeConverter
convertToMicroElement
-
-
-
-
Method Detail
-
convertToMicroElement
@Nullable public IMicroElement convertToMicroElement(@Nonnull MimeTypeInfo aObject, @Nullable String sNamespaceURI, @Nonnull String sTagName)
Description copied from interface:IMicroTypeConverterConvert the passed object to a micro element using the specified tag name- Specified by:
convertToMicroElementin interfaceIMicroTypeConverter<MimeTypeInfo>- Parameters:
aObject- The object to be converted. May not benull.sNamespaceURI- The namespace URI for the element to be created. May benull.sTagName- The tag name to be used. May neither benullnor empty.- Returns:
nullin case creation failed. A micro element with the specified namespace and tag name otherwise.
-
convertToNative
@Nullable public MimeTypeInfo convertToNative(@Nonnull IMicroElement aElement)
Description copied from interface:IMicroTypeConverterConvert the passed object to a native element.- Specified by:
convertToNativein interfaceIMicroTypeConverter<MimeTypeInfo>- Parameters:
aElement- The micro element to be converted.- Returns:
nullif conversion to a native object failed.
-
-