public IdAttribute(String name, String value, int type) {
this(name, value, type, Namespace.NO_NAMESPACE);
}
protected Attribute setParent(Element parent) {
Parent oldParent = this.getParent();
super.setParent(parent);
if (this.getAttributeType() == Attribute.ID_TYPE) {
Document doc;
// Udpate the owning document's lookup table.
if (oldParent != null) {
doc = oldParent.getDocument();
if (doc instanceof IdDocument) {
((IdDocument)doc).removeId(this.getValue());
}
}
doc = this.getDocument();