/** * Deregister an attribute as having a type of ID. * * @param attributeName the QName of the ID attribute to be de-registered */ public void deregisterID(QName attributeName) { if (idAttribNames.contains(attributeName)) { idAttribNames.remove(attributeName); } // In case attribute already has a value, // deregister the current value mapping with the XMLObject owner. if (containsKey(attributeName)) { attributeOwner.getIDIndex().deregisterIDMapping(get(attributeName)); } }
/** * Register an attribute as having a type of ID. * * @param attributeName the QName of the ID attribute to be registered */ public void registerID(QName attributeName) { if (! idAttribNames.contains(attributeName)) { idAttribNames.add(attributeName); } // In case attribute already has a value, // register the current value mapping with the XMLObject owner. if (containsKey(attributeName)) { attributeOwner.getIDIndex().registerIDMapping(get(attributeName), attributeOwner); } }
/** * Register an attribute as having a type of ID. * * @param attributeName the QName of the ID attribute to be registered */ public void registerID(QName attributeName) { if (! idAttribNames.contains(attributeName)) { idAttribNames.add(attributeName); } // In case attribute already has a value, // register the current value mapping with the XMLObject owner. if (containsKey(attributeName)) { attributeOwner.getIDIndex().registerIDMapping(get(attributeName), attributeOwner); } }
/** * Deregister an attribute as having a type of ID. * * @param attributeName the QName of the ID attribute to be de-registered */ public void deregisterID(QName attributeName) { if (idAttribNames.contains(attributeName)) { idAttribNames.remove(attributeName); } // In case attribute already has a value, // deregister the current value mapping with the XMLObject owner. if (containsKey(attributeName)) { attributeOwner.getIDIndex().deregisterIDMapping(get(attributeName)); } }
/** {@inheritDoc} */ public void setScopeAttributeName(String newScopeAttributeName) { if (scopeAttributeName != null) { QName oldName = new QName(scopeAttributeName); if (getUnknownAttributes().containsKey(oldName)) { getUnknownAttributes().remove(oldName); } } scopeAttributeName = prepareForAssignment(scopeAttributeName, newScopeAttributeName); if (scope != null) { getUnknownAttributes().put(new QName(scopeAttributeName), scope); } }