X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=blobdiff_plain;f=xmltooling%2FAttributeExtensibleXMLObject.h;h=598b3fa487db57b2eba0dbc1694ace2ebb66d14d;hp=08eff0f377e5a7e6766c829a708921d3f098166e;hb=HEAD;hpb=bd026f07e729e66127b3efd48aee443fba815af3 diff --git a/xmltooling/AttributeExtensibleXMLObject.h b/xmltooling/AttributeExtensibleXMLObject.h index 08eff0f..598b3fa 100644 --- a/xmltooling/AttributeExtensibleXMLObject.h +++ b/xmltooling/AttributeExtensibleXMLObject.h @@ -1,17 +1,21 @@ -/* - * Copyright 2001-2009 Internet2 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at +/** + * Licensed to the University Corporation for Advanced Internet + * Development, Inc. (UCAID) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for + * additional information regarding copyright ownership. * - * http://www.apache.org/licenses/LICENSE-2.0 + * UCAID licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the + * License at * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the License. */ /** @@ -47,7 +51,7 @@ namespace xmltooling { * Gets the value of an XML attribute of the object. * * @param qualifiedName qualified name of the attribute - * @return the attribute value, or NULL + * @return the attribute value, or nullptr */ virtual const XMLCh* getAttribute(const QName& qualifiedName) const=0; @@ -55,12 +59,20 @@ namespace xmltooling { * Sets (or clears) an XML attribute of the object. * * @param qualifiedName qualified name of the attribute - * @param value value to set, or NULL to clear + * @param value value to set, or nullptr to clear * @param ID true iff the attribute is an XML ID */ virtual void setAttribute(const QName& qualifiedName, const XMLCh* value, bool ID=false)=0; /** + * Sets a QName-valued XML attribute of the object. + * + * @param qualifiedName qualified name of the attribute + * @param value value to set + */ + virtual void setAttribute(const QName& qualifiedName, const QName& value); + + /** * Gets an immutable map of the extended XML attributes of the object. * * This set is not guaranteed to (and generally will not) include