void rename(String name) { if (needsSyncData()) { synchronizeData(); } this.name = name; }
/** * In Attributes, NodeName is considered a synonym for the * attribute's Name */ public String getName() { if (needsSyncData()) { synchronizeData(); } return name; } // getName():String
/** * Returns the attribute name */ public String getNodeName() { if (needsSyncData()) { synchronizeData(); } return name; }
/** NON-DOM, for use by parser */ public void setSpecified(boolean arg) { if (needsSyncData()) { synchronizeData(); } isSpecified(arg); } // setSpecified(boolean)
/** * NON-DOM: set the type of this attribute to be ID type. * * @param id */ public void setIdAttribute(boolean id){ if (needsSyncData()) { synchronizeData(); } isIdAttribute(id); } /** DOM Level 3: isId*/
/** * The "specified" flag is true if and only if this attribute's * value was explicitly specified in the original document. Note that * the implementation, not the user, is in charge of this * property. If the user asserts an Attribute value (even if it ends * up having the same value as the default), it is considered a * specified attribute. If you really want to revert to the default, * delete the attribute from the Element, and the Implementation will * re-assert the default (if any) in its place, with the appropriate * specified=false setting. */ public boolean getSpecified() { if (needsSyncData()) { synchronizeData(); } return isSpecified(); } // getSpecified():boolean