summaryrefslogtreecommitdiff
path: root/src/com/memberwebs/ldapxml/helpers/LXRoot.java
blob: 057671cd82ca23c91669e50144162a7addb7b1f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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;
    }
};