Package net.shibboleth.sp.ddf
Class DDFSupport
java.lang.Object
net.shibboleth.sp.ddf.DDFSupport
Helper methods for
DDF usage.- Since:
- 9.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of child element member created byfromElement(Element)method.static final StringName of content member created byfromElement(Element)method. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DDFfromElement(Element element) Converts a DOM tree rooted at the input element into aDDFmirroring the tree.
-
Field Details
-
CHILD_ELEMENTS_MEMBER
Name of child element member created byfromElement(Element)method.- See Also:
-
CONTENT_MEMBER
Name of content member created byfromElement(Element)method.- See Also:
-
-
Constructor Details
-
DDFSupport
private DDFSupport()Private constructor.
-
-
Method Details
-
fromElement
Converts a DOM tree rooted at the input element into aDDFmirroring 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
-