Interface IMicroTypeConverter<T>

    • Method Detail

      • convertToMicroElement

        @Nullable
        default IMicroElement convertToMicroElement​(@Nonnull
                                                    T aObject,
                                                    @Nonnull @Nonempty
                                                    String sTagName)
        Convert the passed object to a micro element using the specified tag name and a null namespace URI.
        Parameters:
        aObject - The object to be converted. May not be null.
        sTagName - The tag name to be used. May neither be null nor empty.
        Returns:
        null in case creation failed. A micro element with the specified namespace and tag name otherwise.
      • convertToMicroElement

        @Nullable
        IMicroElement convertToMicroElement​(@Nonnull
                                            T aObject,
                                            @Nullable
                                            String sNamespaceURI,
                                            @Nonnull @Nonempty
                                            String sTagName)
        Convert the passed object to a micro element using the specified tag name
        Parameters:
        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.
        Returns:
        null in case creation failed. A micro element with the specified namespace and tag name otherwise.
      • convertToNative

        @Nullable
        T convertToNative​(@Nonnull
                          IMicroElement aElement)
        Convert the passed object to a native element.
        Parameters:
        aElement - The micro element to be converted.
        Returns:
        null if conversion to a native object failed.