1 21 package oracle.toplink.essentials.internal.ejb.cmp3.xml.columns; 23 24 import org.w3c.dom.Node ; 25 26 import oracle.toplink.essentials.internal.ejb.cmp3.xml.XMLHelper; 27 import oracle.toplink.essentials.internal.ejb.cmp3.xml.XMLConstants; 28 29 import oracle.toplink.essentials.internal.ejb.cmp3.metadata.columns.MetadataDiscriminatorColumn; 30 31 37 public class XMLDiscriminatorColumn extends MetadataDiscriminatorColumn { 38 protected Node m_node; 39 protected XMLHelper m_helper; 40 41 44 public XMLDiscriminatorColumn(Node node, XMLHelper helper) { 45 m_node = node; 46 m_helper = helper; 47 } 48 49 52 public String getColumnDefinition() { 53 return m_helper.getNodeValue(m_node, XMLConstants.ATT_COLUMN_DEFINITION, DEFAULT_COLUMN_DEFINITION); 54 } 55 56 59 public String getDiscriminatorType() { 60 return m_helper.getNodeValue(m_node, XMLConstants.ATT_DISCRIMINATOR_TYPE, DEFAULT_DISCRIMINATOR_TYPE); 61 } 62 63 66 public int getLength() { 67 return m_helper.getNodeValue(m_node, XMLConstants.ATT_LENGTH, DEFAULT_LENGTH); 68 } 69 70 73 public String getName() { 74 return m_helper.getNodeValue(m_node, XMLConstants.ATT_NAME); 75 } 76 } 77 | Popular Tags |