blob: 1e75da561ed9aa42818102f28e951a2f77d721a1 (
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 <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;
};
|