1 23 24 package org.enhydra.xml.xmlc.metadata; 25 26 import org.w3c.dom.Document ; 27 28 31 public class HTMLTag extends MetaDataElement implements HTMLTagDef { 32 35 public static final String TAG_NAME = "htmlTag"; 36 37 40 private static final String NAME_ATTR = "name"; 41 private static final String INLINE_ATTR = "inline"; 42 private static final String BLOCK_ATTR = "block"; 43 private static final String EMPTY_ATTR = "empty"; 44 private static final String OPT_CLOSE_ATTR = "optclose"; 45 46 49 public HTMLTag(Document ownerDoc) { 50 super(ownerDoc, TAG_NAME); 51 } 52 53 56 public String getName() { 57 return getAttributeNull(NAME_ATTR); 58 } 59 60 63 public void setName(String value) { 64 setRemoveAttribute(NAME_ATTR, value); 65 } 66 67 70 public boolean getInline() { 71 return getBooleanAttribute(INLINE_ATTR); 72 } 73 74 77 public void setInline(boolean value) { 78 setBooleanAttribute(INLINE_ATTR, value); 79 } 80 81 84 public boolean getBlock() { 85 return getBooleanAttribute(BLOCK_ATTR); 86 } 87 88 91 public void setBlock(boolean value) { 92 setBooleanAttribute(BLOCK_ATTR, value); 93 } 94 95 98 public boolean getEmpty() { 99 return getBooleanAttribute(EMPTY_ATTR); 100 } 101 102 105 public void setEmpty(boolean value) { 106 setBooleanAttribute(EMPTY_ATTR, value); 107 } 108 109 112 public boolean getOptclose() { 113 return getBooleanAttribute(OPT_CLOSE_ATTR); 114 } 115 116 119 public void setOptclose(boolean value) { 120 setBooleanAttribute(OPT_CLOSE_ATTR, value); 121 } 122 } 123 124 | Popular Tags |