/** * <p> * Sets the type of this attribute to one of the ten * DTD types or <code>Type.UNDECLARED</code>. * </p> * * @param type the DTD type of this attribute */ public void setType(Type type) { if (isXMLID() && ! Type.ID.equals(type)) { throw new IllegalDataException( "Can't change type of xml:id attribute to " + type); } _setType(type); }