Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.dom4j.bean;
 /*    */ 
 /*    */ import org.dom4j.Element;
 /*    */ import org.dom4j.QName;
 /*    */ import org.dom4j.tree.AbstractAttribute;
 /*    */ 
 /*    */ public class BeanAttribute extends AbstractAttribute
 /*    */ {
 /*    */   private final BeanAttributeList beanList;
/*    */   private final int index;
/*    */ 
/*    */   public BeanAttribute(BeanAttributeList beanListint index)
/*    */   {
/* 31 */     this.beanList = beanList;
/* 32 */     this.index = index;
/*    */   }
/*    */ 
/*    */   public QName getQName() {
/* 36 */     return this.beanList.getQName(this.index);
/*    */   }
/*    */ 
/*    */   public Element getParent() {
/* 40 */     return this.beanList.getParent();
/*    */   }
/*    */ 
/*    */   public String getValue() {
/* 44 */     Object data = getData();
/*    */ 
/* 46 */     return data != null ? data.toString() : null;
/*    */   }
/*    */ 
/*    */   public void setValue(String data) {
/* 50 */     this.beanList.setData(this.index, data);
/*    */   }
/*    */ 
/*    */   public Object getData() {
/* 54 */     return this.beanList.getData(this.index);
/*    */   }
/*    */ 
/*    */   public void setData(Object data) {
/* 58 */     this.beanList.setData(this.index, data);
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     org.dom4j.bean.BeanAttribute
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X