1 /* 2 * Copyright 2006 Google Inc. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 5 * use this file except in compliance with the License. You may obtain a copy of 6 * the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 * License for the specific language governing permissions and limitations under 14 * the License. 15 */ 16 package com.google.gwt.xml.client; 17 18 /* 19 * Implementation notes: 20 * <code>Attr</code> objects are immutable in 21 * Safari, therefore modification of <code>Attr</code> objects is not supported. 22 * Use the <code>setAttribute</code> method of <code>Elemenent</code> instead. 23 * Also, Internet Explorer 6 does not support <code>getOwnerElement</code>, so 24 * this functionality is not supported either, to aid browser portability. 25 */ 26 27 /** 28 * <code>Attr</code> objects represent key-value pairs of attributes on 29 * <code>Element</code> objects. <code>Attr</code> objects are immutable. 30 */ 31 public interface Attr extends Node { 32 /** 33 * This method retrieves the name. 34 * 35 * @return the name of this <code>Attr</code> 36 */ 37 public String getName(); 38 39 /** 40 * This method determines whether the value of this <code>Attr</code> was 41 * specified here, or as a default value in a DTD. 42 * 43 * @return <code>true</code> if the value of this <code>Attr</code> was 44 * specified locally. 45 */ 46 public boolean getSpecified(); 47 48 /** 49 * This method retrieves the value. 50 * 51 * @return the value of this <code>Attr</code> 52 */ 53 public String getValue(); 54 }