[java-metadata-aggregator] 02/03: Expose the parent container
Ian Young
ian at iay.org.uk
Wed Apr 5 13:55:27 UTC 2023
This is an automated email from the git hooks/post-receive script.
iay pushed a commit to branch main
in repository java-metadata-aggregator.
View the commit online:
http://git.shibboleth.net/view/?p=java-metadata-aggregator.git;a=commit;h=79caf7af8c6eee20002e3fee1ce6e283b3b97dba
commit 79caf7af8c6eee20002e3fee1ce6e283b3b97dba
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Wed Apr 5 14:49:44 2023 +0100
Expose the parent container
---
.../src/main/java/net/shibboleth/metadata/dom/Container.java | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/mda-framework/src/main/java/net/shibboleth/metadata/dom/Container.java b/mda-framework/src/main/java/net/shibboleth/metadata/dom/Container.java
index d4820a0..266efed 100644
--- a/mda-framework/src/main/java/net/shibboleth/metadata/dom/Container.java
+++ b/mda-framework/src/main/java/net/shibboleth/metadata/dom/Container.java
@@ -166,6 +166,15 @@ public class Container {
this(root, null, "", DEFAULT_INDENT, DEFAULT_INDENT);
}
+ /**
+ * Get the container's parent, if any.
+ *
+ * @return the container's parent container, or <code>null</code>
+ */
+ public @Nullable Container getParent() {
+ return parentContainer;
+ }
+
/**
* Return the wrapped {@link Element}.
*
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list