diff options
Diffstat (limited to 'src/com/memberwebs/ldapxml/helpers/LXRoot.java')
-rw-r--r-- | src/com/memberwebs/ldapxml/helpers/LXRoot.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/com/memberwebs/ldapxml/helpers/LXRoot.java b/src/com/memberwebs/ldapxml/helpers/LXRoot.java new file mode 100644 index 0000000..057671c --- /dev/null +++ b/src/com/memberwebs/ldapxml/helpers/LXRoot.java @@ -0,0 +1,40 @@ +package com.memberwebs.ldapxml.helpers; + +import java.io.*; +import java.util.*; + +import org.w3c.dom.*; + +/** + * Represents the root of an LX map + * + * @author nielsen@memberwebs.com + * @version 0.5 + */ +public class LXRoot + extends LXBase +{ + /** + * Constructs a new LXRoot object. + */ + LXRoot() + { + super(null); + } + + /** + * Get an entry in this LX map by name. + * + * @param name The entry name. + * @return The entry, or null if no such entry is present + */ + public LXEntry getEntry(String name) + { + LXEntry entry = (LXEntry)getChild(name); + + if(entry != null && !entry.isUseable()) + entry = null; + + return entry; + } +};
\ No newline at end of file |