1 23 24 package org.enhydra.xml.xmlc.metadata; 25 26 import org.w3c.dom.Document ; 27 28 31 class Implements extends MetaDataElement { 32 35 public static final String TAG_NAME = "implements"; 36 37 40 private static final String NAME_ATTR = "name"; 41 42 45 public Implements(Document ownerDoc) { 46 super(ownerDoc, TAG_NAME); 47 } 48 49 52 public String getName() { 53 String name = getAttributeNull(NAME_ATTR); 54 if (name == null) { 55 throw new IllegalStateException ("implements element doesn't contain name attribute"); 56 } 57 return name; 58 } 59 60 63 public void setName(String name) { 64 setAttribute(NAME_ATTR, name); 65 } 66 } 67 | Popular Tags |