1 16 package org.apache.axis2.saaj; 17 18 import org.apache.axis2.om.OMAttribute; 19 import org.w3c.dom.Attr ; 20 import org.w3c.dom.Element ; 21 22 26 public class AttrImpl extends NodeImpl implements Attr { 27 28 private boolean specified = false; 29 private OMAttribute omAttr; 30 private Element ownerElement=null; 31 32 35 public AttrImpl() { 36 super(); 37 } 38 39 42 public AttrImpl(OMAttribute attrib, Element owner) { 43 super(attrib); 44 this.omAttr = attrib; 45 this.ownerElement = owner; 46 } 47 48 56 public boolean getSpecified() { 57 return specified; 58 } 59 60 68 public boolean setSpecified(boolean val) { 69 this.specified = val; 70 return specified; 71 } 72 73 79 public String getName() { 80 return omAttr.getLocalName(); 81 } 82 83 89 public Element getOwnerElement() { 90 return ownerElement; 91 } 92 93 98 public String getValue() { 99 return omAttr.getValue(); 100 } 101 102 109 public void setValue(String value) { 110 omAttr.setValue(value); 111 setSpecified(true); 112 } 113 } 114 | Popular Tags |