1 23 24 package org.enhydra.xml.xmlc.metadata; 25 26 import org.w3c.dom.Document ; 27 28 31 public class HTMLCompatibility extends MetaDataElement { 32 35 public static final String TAG_NAME = "compatibility"; 36 37 40 private static final String OLD_CLASS_CONSTANTS_ATTR = "oldClassConstants"; 41 private static final String OLD_NAME_CONSTANTS_ATTR = "oldNameConstants"; 42 43 46 public HTMLCompatibility(Document ownerDoc) { 47 super(ownerDoc, TAG_NAME); 48 } 49 50 53 public boolean getOldClassConstants() { 54 return getBooleanAttribute(OLD_CLASS_CONSTANTS_ATTR); 55 } 56 57 60 public void setOldClassConstants(boolean value) { 61 setBooleanAttribute(OLD_CLASS_CONSTANTS_ATTR, value); 62 } 63 64 67 public boolean getOldNameConstants() { 68 return getBooleanAttribute(OLD_NAME_CONSTANTS_ATTR); 69 } 70 71 74 public void setOldNameConstants(boolean value) { 75 setBooleanAttribute(OLD_NAME_CONSTANTS_ATTR, value); 76 } 77 } 78 | Popular Tags |