1 31 package org.objectweb.proactive.core.descriptor.xml; 32 33 import org.objectweb.proactive.core.xml.handler.BasicUnmarshaller; 34 import org.objectweb.proactive.core.xml.io.Attributes; 35 36 37 44 public class ProcessReferenceHandler extends BasicUnmarshaller { 45 public ProcessReferenceHandler() { 46 } 47 48 public void startContextElement(String name, Attributes attributes) 49 throws org.xml.sax.SAXException { 50 String refid = attributes.getValue("refid"); 51 if (logger.isDebugEnabled()) { 52 logger.debug("refid "+refid); 53 } 54 if (checkNonEmpty(refid)) { 55 setResultObject(refid); 56 } else { 57 throw new org.xml.sax.SAXException ( 58 "The Id of the referenced process cannot be set to an empty string"); 59 } 60 } 61 } 62 | Popular Tags |