XMLEntityResultpublic class XMLEntityResult extends MetadataEntityResult Object to hold onto an xml entity result metadata. |
Fields Summary |
---|
protected Node | m_node | protected XMLHelper | m_helper |
Constructors Summary |
---|
public XMLEntityResult(Node node, XMLHelper helper)INTERNAL:
m_node = node;
m_helper = helper;
|
Methods Summary |
---|
public java.lang.String | getDiscriminatorColumn()INTERNAL:
return m_helper.getNodeValue(m_node, XMLConstants.ATT_DISCRIMINATOR_COLUMN, "");
| public java.lang.Class | getEntityClass()INTERNAL:
Note this attribute is required but we send in the default void.class
object to ensure we go through the correct class loading.
return m_helper.getNodeValue(m_node, XMLConstants.ATT_ENTITY_CLASS, void.class);
| public java.util.List | getFieldResults()INTERNAL:
if (m_fieldResults == null) {
m_fieldResults = new ArrayList<MetadataFieldResult>();
NodeList fieldResultNodes = m_helper.getNodes(m_node, XMLConstants.FIELD_RESULT);
if (fieldResultNodes != null) {
for (int i = 0; i < fieldResultNodes.getLength(); i++) {
m_fieldResults.add(new XMLFieldResult(fieldResultNodes.item(i), m_helper));
}
}
}
return m_fieldResults;
|
|