56 * originally based on software copyright (c) 2001, International
57 * Business Machines, Inc., http://www.apache.org. For more
58 * information on the Apache Software Foundation, please see
59 * <http://www.apache.org/>.
60 */
61
62 package com.sun.org.apache.xerces.internal.impl.xs.opti;
63
64 import org.w3c.dom.Attr;
65 import org.w3c.dom.DOMException;
66 import org.w3c.dom.Document;
67 import org.w3c.dom.Element;
68 import org.w3c.dom.Node;
69 import org.w3c.dom.TypeInfo;
70
71 /**
72 * This class represents a single attribute.
73 *
74 * @author Rahul Srivastava, Sun Microsystems Inc.
75 *
76 * @version $Id: AttrImpl.java,v 1.5 2010-11-01 04:40:01 joehw Exp $
77 */
78 public class AttrImpl extends NodeImpl
79 implements Attr {
80
81 Element element;
82 String value;
83
84 /** Default Constructor */
85 public AttrImpl() {
86 nodeType = Node.ATTRIBUTE_NODE;
87 }
88
89 /**
90 * Constructs an attribute.
91 *
92 * @param element Element which owns this attribute
93 * @param prefix The QName prefix.
94 * @param localpart The QName localpart.
95 * @param rawname The QName rawname.
96 * @param uri The uri binding for the associated prefix.
|
56 * originally based on software copyright (c) 2001, International
57 * Business Machines, Inc., http://www.apache.org. For more
58 * information on the Apache Software Foundation, please see
59 * <http://www.apache.org/>.
60 */
61
62 package com.sun.org.apache.xerces.internal.impl.xs.opti;
63
64 import org.w3c.dom.Attr;
65 import org.w3c.dom.DOMException;
66 import org.w3c.dom.Document;
67 import org.w3c.dom.Element;
68 import org.w3c.dom.Node;
69 import org.w3c.dom.TypeInfo;
70
71 /**
72 * This class represents a single attribute.
73 *
74 * @author Rahul Srivastava, Sun Microsystems Inc.
75 *
76 */
77 public class AttrImpl extends NodeImpl
78 implements Attr {
79
80 Element element;
81 String value;
82
83 /** Default Constructor */
84 public AttrImpl() {
85 nodeType = Node.ATTRIBUTE_NODE;
86 }
87
88 /**
89 * Constructs an attribute.
90 *
91 * @param element Element which owns this attribute
92 * @param prefix The QName prefix.
93 * @param localpart The QName localpart.
94 * @param rawname The QName rawname.
95 * @param uri The uri binding for the associated prefix.
|