1 29 package net.sourceforge.groboutils.pmti.v1.defimpl; 30 31 import net.sourceforge.groboutils.pmti.v1.IAttribute; 32 import net.sourceforge.groboutils.pmti.v1.IAttributeInfo; 33 34 35 44 public class DefaultAttribute implements IAttribute 45 { 46 private Object value; 47 private IAttributeInfo info; 48 49 50 public DefaultAttribute( Object v, IAttributeInfo i ) 51 { 52 if (i == null) 53 { 54 throw new IllegalArgumentException ("no null arguments"); 55 } 56 this.value = v; 57 this.info = i; 58 } 59 60 61 62 65 public Object getValue() 66 { 67 return this.value; 68 } 69 70 71 74 public IAttributeInfo getInfo() 75 { 76 return this.info; 77 } 78 } 79 80 | Popular Tags |