summaryrefslogtreecommitdiff
path: root/src/com/memberwebs/ldapxml/helpers/LXAttribute.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/memberwebs/ldapxml/helpers/LXAttribute.java')
-rw-r--r--src/com/memberwebs/ldapxml/helpers/LXAttribute.java43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/com/memberwebs/ldapxml/helpers/LXAttribute.java b/src/com/memberwebs/ldapxml/helpers/LXAttribute.java
new file mode 100644
index 0000000..1e75da5
--- /dev/null
+++ b/src/com/memberwebs/ldapxml/helpers/LXAttribute.java
@@ -0,0 +1,43 @@
+package com.memberwebs.ldapxml.helpers;
+
+import java.io.*;
+import java.util.*;
+
+import org.w3c.dom.*;
+
+/**
+ * Represents an <attribute> or <element> in an LX map.
+ *
+ * @author nielsen@memberwebs.com
+ * @version 0.5
+ */
+public class LXAttribute
+ extends LXBase
+{
+ /**
+ * Construct an LXAttribute object. Can only be constructed
+ * from within the package.
+ *
+ * @param parent The parent in the map tree.
+ * @param isElement Set to true if this is object represents an
+ * <element>, otherwise an <attribute>.
+ */
+ LXAttribute(LXBase parent, boolean isElement)
+ {
+ super(parent);
+ m_isElement = isElement;
+ }
+
+ /**
+ * Check whether this object represents an <element>
+ * or <attribute>.
+ *
+ * @return The state.
+ */
+ public final boolean isElement()
+ {
+ return m_isElement;
+ }
+
+ protected boolean m_isElement;
+}; \ No newline at end of file