summaryrefslogtreecommitdiff
path: root/src/com/memberwebs/ldapxml/helpers/LXEntry.java
blob: 28722ef7afa5f273afda3e026f6f2d6cd0de4a2f (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
41
42
43
package com.memberwebs.ldapxml.helpers;

import java.io.*;
import java.util.*;

import org.w3c.dom.*;

/**
 * Represents an <entry&gt object in an LX map.
 *
 * @author nielsen@memberwebs.com
 * @version 0.5
 */
public class LXEntry
    extends LXBase
{
    /**
     * Constructs a new LXEntry object.
     *
     * @param parent The parent of this entry in the LX map tree.
     */
    LXEntry(LXBase parent)
    {
        super(parent);
    }

    /**
     * Gets a class in this entry.
     *
     * @param name The name of the class.
     * @return The class, or null if no such class is present.
     */
    public LXClass getClass(String name)
    {
        LXClass cls = (LXClass)getChild(name);

        if(cls != null && !cls.isUseable())
            cls = null;

        return cls;
    }

};