diff options
author | Stef <stef@ws.local> | 2003-11-26 02:12:18 +0000 |
---|---|---|
committer | Stef <stef@ws.local> | 2003-11-26 02:12:18 +0000 |
commit | f2839912966174f0f0bdfd0d607f83d4a8aee271 (patch) | |
tree | 741bf067468837e9a30adcecd08c5ea7d915a1fb /src/com/memberwebs/ldapxml/helpers/LXEntry.java | |
parent | 507524b97ef3bedb42f6c15ec93eedff8ee4b150 (diff) |
Initial Import
Diffstat (limited to 'src/com/memberwebs/ldapxml/helpers/LXEntry.java')
-rw-r--r-- | src/com/memberwebs/ldapxml/helpers/LXEntry.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/com/memberwebs/ldapxml/helpers/LXEntry.java b/src/com/memberwebs/ldapxml/helpers/LXEntry.java new file mode 100644 index 0000000..28722ef --- /dev/null +++ b/src/com/memberwebs/ldapxml/helpers/LXEntry.java @@ -0,0 +1,43 @@ +package com.memberwebs.ldapxml.helpers; + +import java.io.*; +import java.util.*; + +import org.w3c.dom.*; + +/** + * Represents an <entry> 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; + } + +};
\ No newline at end of file |