1 45 46 package org.openejb.alt.assembler.classic.xml; 47 48 import org.openejb.OpenEJBException; 49 import org.openejb.alt.assembler.classic.ResourceReferenceInfo; 50 import org.w3c.dom.Node ; 51 52 61 public class ResourceReference extends ResourceReferenceInfo implements DomObject{ 62 63 64 67 public static final String RES_REF_NAME = "res-ref-name"; 68 69 72 public static final String RES_REF_TYPE = "res-ref-type"; 73 74 77 public static final String RES_REF_AUTH = "res-ref-auth"; 78 79 82 public static final String RES_ID = "res-id"; 83 84 87 public static final String RES_REF_LOCATION = "res-ref-location"; 88 89 90 93 public void initializeFromDOM(Node node) throws OpenEJBException{ 94 95 referenceName = DomTools.getChildElementPCData(node, RES_REF_NAME); 96 referenceType = DomTools.getChildElementPCData(node, RES_REF_TYPE); 97 referenceAuth = DomTools.getChildElementPCData(node, RES_REF_AUTH); 98 99 resourceID = DomTools.getChildElementPCData(node, RES_ID); 100 101 properties = DomTools.readProperties(node); 102 103 location = (ResourceReferenceLocation)DomTools.collectChildElementByType(node, ResourceReferenceLocation.class, RES_REF_LOCATION); 104 105 } 106 107 public void serializeToDOM(Node node) throws OpenEJBException{} 108 } 109 | Popular Tags |