Class DDFSupport

java.lang.Object
net.shibboleth.sp.ddf.DDFSupport

public final class DDFSupport extends Object
Helper methods for DDF usage.
Since:
9.0.0
  • Field Details

  • Constructor Details

    • DDFSupport

      private DDFSupport()
      Private constructor.
  • Method Details

    • fromElement

      @Nonnull public static DDF fromElement(@Nonnull Element element)
      Converts a DOM tree rooted at the input element into a DDF mirroring the tree.

      The name of the object is the local name of the element.

      Attributes are converted into named structure members based on the local names.

      Child elements are recursively processed into a list named CHILD_ELEMENTS_MEMBER.

      Text content is stored in a structure member named CONTENT_MEMBER.

      Namespaces are ignored.

      Parameters:
      element - input element
      Returns:
      the converted object