summaryrefslogtreecommitdiff
path: root/src/com/memberwebs/ldapxml/helpers/LXEntry.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/memberwebs/ldapxml/helpers/LXEntry.java')
-rw-r--r--src/com/memberwebs/ldapxml/helpers/LXEntry.java43
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&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;
+ }
+
+}; \ No newline at end of file