1 58 package org.apache.ecs.wml; 59 60 import org.apache.ecs.Element; 61 import org.apache.ecs.MultiPartElement; 62 63 69 public class Anchor extends org.apache.ecs.MultiPartElement 70 { 71 72 76 public Anchor() 77 { 78 setElementType("anchor"); 79 } 80 81 82 87 public Anchor(String title, Element eValue) 88 { 89 this(); 90 setAttrTitle(title); 91 addElement(eValue); 92 } 93 94 100 public Anchor(String title, String sValue, Element eValue) 101 { 102 this(); 103 setAttrTitle(title); 104 addElement(sValue); 105 addElement(eValue); 106 } 107 108 109 113 public Anchor setAttrTitle(String title) 114 { 115 addAttribute("title", title); 116 return this; 117 } 118 119 123 public Anchor addElement(Element element) 124 { 125 addElementToRegistry(element,getFilterState()); 126 return(this); 127 } 128 129 133 public Anchor addElement(String element) 134 { 135 addElementToRegistry(element,getFilterState()); 136 return(this); 137 } 138 } 139 | Popular Tags |