1 11 package org.eclipse.help.internal; 12 13 import org.eclipse.help.IAnchor; 14 import org.w3c.dom.Element ; 15 16 public class Anchor extends UAElement implements IAnchor { 17 18 public static final String NAME = "anchor"; public static final String ATTRIBUTE_ID = "id"; 21 public Anchor(IAnchor src) { 22 super(NAME, src); 23 setId(src.getId()); 24 } 25 26 public Anchor(Element src) { 27 super(src); 28 } 29 30 public String getId() { 31 return getAttribute(ATTRIBUTE_ID); 32 } 33 34 public void setId(String id) { 35 setAttribute(ATTRIBUTE_ID, id); 36 } 37 } 38 | Popular Tags |