ruper2/src/java/core/org/krysalis/ruper/util/xml XMLHandler.java,1.4,1.5 XMLParser.java,1.2,1.3 XMLException.java,1.1,1.2

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/util/xml
In directory sc8-pr-cvs1:/tmp/cvs-serv24844/src/java/core/org/krysalis/ruper/util/xml

Modified Files:
	XMLHandler.java XMLParser.java XMLException.java 
Log Message:
Tried getting ruper.xml to parse, and failed.

Index: XMLHandler.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/util/xml/XMLHandler.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** XMLHandler.java	9 Sep 2003 20:54:40 -0000	1.4
--- XMLHandler.java	9 Sep 2003 21:49:05 -0000	1.5
***************
*** 22,27 ****
   * @author anou_mana
   */
! public class XMLHandler extends DefaultHandler
! {
  
  	private Stack m_tagObjectStack = new Stack();
--- 22,26 ----
   * @author anou_mana
   */
! public class XMLHandler extends DefaultHandler {
  
  	private Stack m_tagObjectStack = new Stack();
***************
*** 31,48 ****
  	private XMLEntryTable m_xmlEntryTable;
  
! 	public XMLHandler(XMLContext context)
! 	{
! 		this.m_context = context;
  		m_xmlEntryTable = new XMLEntryTable();
  	}
  
! 	public XMLHandler(XMLContext context, XMLEntryTable xmlEntryTable)
! 	{
! 		this.m_context = context;
  		m_xmlEntryTable = xmlEntryTable;
  	}
  
! 	public Object getCurrentTagObject()
! 	{
  		return m_currentTagObject;
  	}
--- 30,44 ----
  	private XMLEntryTable m_xmlEntryTable;
  
! 	public XMLHandler(XMLContext context) {
! 		m_context = context;
  		m_xmlEntryTable = new XMLEntryTable();
  	}
  
! 	public XMLHandler(XMLContext context, XMLEntryTable xmlEntryTable) {
! 		m_context = context;
  		m_xmlEntryTable = xmlEntryTable;
  	}
  
! 	public Object getCurrentTagObject() {
  		return m_currentTagObject;
  	}
***************
*** 53,167 ****
  		String qname,
  		Attributes attributes)
! 		throws SAXParseException
! 	{
! 		try
! 		{
! 			if(tag.equals(RuperConstants.PROPERTY_XML_TAG))
! 			{
  				// add the property to the xmlEntryTable
  				setAttributesToEntryTable(attributes);
  			}
! 			else
! 			{
  				// find out if the tag - class is defined in the XMLEntryTable
! 				String clazzName = (String)m_xmlEntryTable.get(tag);
! 				// if it is the XMLGrouperElement
! 				if( !clazzName.equals(RuperConstants.XML_GROUPER_ELEMENT) )
! 				{
! 					Object currentTagObject = null;
! 					Class clazz = ClassLoaderHelper.getClassForName(clazzName);
! 					
! 					String tagId = attributes.getValue(RuperConstants.XML_TAG_ID);
! 					String refId = attributes.getValue(RuperConstants.XML_TAG_REF_ID);
! 					
! 					if(tagId == null)
! 					{
! 						throw new Exception("No Id for the xml entry " + tag);	
! 					}
  
! 					//if there is an object already in the stack, add this as child to it
! 					if (!this.m_tagObjectStack.empty())
! 					{
! 						Object parent = this.m_tagObjectStack.peek();
! 						if (parent != null)
! 						{
! 							currentTagObject = setChild(parent, clazz, tagId, refId);
! 							if (currentTagObject == null)
! 							{
! 								throw new Exception(
! 									"Unexpected child \""
! 										+ qname
! 										+ "\" "
! 										+ tag
! 										+ " for the parent element "
! 										+ parent.getClass().getName());
  							}
  						}
! 						else
! 						{
! 							// parent is null so call the ref Mgr and create a ref
! 							Class[] argumentTypes = { java.lang.String.class };
! 							Constructor idArgument = clazz.getConstructor( argumentTypes ); 
! 	      
! 							currentTagObject = idArgument.newInstance( new Object[]{tagId} );
! 	      					
! 							ReferenceManager.createReference((Referenceable)currentTagObject);
  						}
  					}
- 					if(currentTagObject == null)
- 					{
- 						//TODO
- 						String message = "No tagObject " + tag;
- 						throw new Exception(message);
- 					}
- 						
- 					//set the attributes
- 					setObjectAttributes(currentTagObject, attributes);
- 	
- 					// add this to stack and the created objects
- 					this.m_tagObjectStack.push(currentTagObject);
- 					this.m_context.putCreatedTagObject(tag, currentTagObject);
- 				}
  			}
  		}
! 		catch (Exception exception)
! 		{
! 			String message = exception.getMessage();	
! 			Logger.getLog().error(message);
! 			throw new SAXParseException( message, m_context.getLocator());
  		}
! 		
  	}
! 	
! 	private void setAttributesToEntryTable(Attributes attributes) throws Exception
! 	{
! 		for (int j = 0; j < attributes.getLength(); j++)
! 		{
  			String attributeName = attributes.getLocalName(j);
  			String attributeValue = attributes.getValue(j);
! 			
  			// add it to the entrytable
  			this.m_xmlEntryTable.put(attributeName, attributeValue);
! 		}		
  	}
! 	
! 	private Object setChild( Object parent,	Class childClass, String tagId, String refId )
! 		throws Exception
! 	{
  		Object childObject = null;
  		String childName = childClass.getName();
  		int index = childName.lastIndexOf(".");
! 		if (index != -1)
! 		{
! 			childName =	childName.substring( index + 1,
! 											childName.length());
  		}
! 		
  		// introspect to see if there is a method with this childName
  		Class clazz = parent.getClass();
  		Method[] methods = clazz.getMethods();
  
! 		for (int i = 0; i < methods.length; i++)
! 		{
  			final Method method = methods[i];
  			final String methodName = method.getName();
--- 49,168 ----
  		String qname,
  		Attributes attributes)
! 		throws SAXParseException {
! 		try {
! 			if (tag.equals(RuperConstants.PROPERTY_XML_TAG)) {
  				// add the property to the xmlEntryTable
  				setAttributesToEntryTable(attributes);
  			}
! 			else {
  				// find out if the tag - class is defined in the XMLEntryTable
! 				String clazzName = (String) m_xmlEntryTable.get(tag);
  
! 				//:TODO: log this?
! 				if (null != clazzName)
! 					// if it is the XMLGrouperElement
! 					if (!clazzName
! 						.equals(RuperConstants.XML_GROUPER_ELEMENT)) {
! 						Object currentTagObject = null;
! 						Class clazz =
! 							ClassLoaderHelper.getClassForName(clazzName);
! 
! 						String tagId =
! 							attributes.getValue(RuperConstants.XML_TAG_ID);
! 						String refId =
! 							attributes.getValue(RuperConstants.XML_TAG_REF_ID);
! 
! 						if (tagId == null) {
! 							throw new Exception(
! 								"No Id for the xml entry " + tag);
! 						}
! 
! 						//if there is an object already in the stack, add this as child to it
! 						if (!m_tagObjectStack.empty()) {
! 							Object parent = this.m_tagObjectStack.peek();
! 							if (parent != null) {
! 								currentTagObject =
! 									setChild(parent, clazz, tagId, refId);
! 								if (currentTagObject == null) {
! 									throw new Exception(
! 										"Unexpected child \""
! 											+ qname
! 											+ "\" "
! 											+ tag
! 											+ " for the parent element "
! 											+ parent.getClass().getName());
! 								}
! 							}
! 							else {
! 								// parent is null so call the ref Mgr and create a ref
! 								Class[] argumentTypes =
! 									{ java.lang.String.class };
! 								Constructor idArgument =
! 									clazz.getConstructor(argumentTypes);
! 
! 								currentTagObject =
! 									idArgument.newInstance(
! 										new Object[] { tagId });
! 
! 								ReferenceManager.createReference(
! 									(Referenceable) currentTagObject);
  							}
  						}
! 						if (currentTagObject == null) {
! 							//TODO
! 							String message = "No tagObject " + tag;
! 							throw new Exception(message);
  						}
+ 
+ 						//set the attributes
+ 						setObjectAttributes(currentTagObject, attributes);
+ 
+ 						// add this to stack and the created objects
+ 						this.m_tagObjectStack.push(currentTagObject);
+ 						this.m_context.putCreatedTagObject(
+ 							tag,
+ 							currentTagObject);
  					}
  			}
  		}
! 		catch (Exception exception) {
! 			Logger.getLog().error("XML_BEAN_ERROR", exception);
! 			throw new SAXParseException(
! 				exception.getLocalizedMessage(),
! 				m_context.getLocator(),
! 				exception);
  		}
! 
  	}
! 
! 	private void setAttributesToEntryTable(Attributes attributes)
! 		throws Exception {
! 		for (int j = 0; j < attributes.getLength(); j++) {
  			String attributeName = attributes.getLocalName(j);
  			String attributeValue = attributes.getValue(j);
! 
  			// add it to the entrytable
  			this.m_xmlEntryTable.put(attributeName, attributeValue);
! 		}
  	}
! 
! 	private Object setChild(
! 		Object parent,
! 		Class childClass,
! 		String tagId,
! 		String refId)
! 		throws Exception {
  		Object childObject = null;
  		String childName = childClass.getName();
  		int index = childName.lastIndexOf(".");
! 		if (index != -1) {
! 			childName = childName.substring(index + 1, childName.length());
  		}
! 
  		// introspect to see if there is a method with this childName
  		Class clazz = parent.getClass();
  		Method[] methods = clazz.getMethods();
  
! 		for (int i = 0; i < methods.length; i++) {
  			final Method method = methods[i];
  			final String methodName = method.getName();
***************
*** 171,187 ****
  			if (parameters.length == 3
  				&& childClass.equals(returnType)
! 				&& methodName.startsWith("create"))
! 			{
  				// remove the set from the method name 
  				String tmp = methodName.substring(6, methodName.length());
  				// compare it with attribute name
! 				if (tmp.equalsIgnoreCase(childName))
! 				{
! 					childObject = method.invoke(parent, new Object[] {childClass, tagId, refId});
  
  					// log it 
  					Logger.getLog().debug(
! 						"Child :" + childName + " is set, for the Parent " 
! 						+ clazz.getName() );
  
  					// jump out of the loop
--- 172,191 ----
  			if (parameters.length == 3
  				&& childClass.equals(returnType)
! 				&& methodName.startsWith("create")) {
  				// remove the set from the method name 
  				String tmp = methodName.substring(6, methodName.length());
  				// compare it with attribute name
! 				if (tmp.equalsIgnoreCase(childName)) {
! 					childObject =
! 						method.invoke(
! 							parent,
! 							new Object[] { childClass, tagId, refId });
  
  					// log it 
  					Logger.getLog().debug(
! 						"Child :"
! 							+ childName
! 							+ " is set, for the Parent "
! 							+ clazz.getName());
  
  					// jump out of the loop
***************
*** 197,202 ****
  		String attributeName,
  		Object attributeValue)
! 		throws Exception
! 	{
  		// introspect to see if there is a method with this attribute Name
  		Class clazz = tagObject.getClass();
--- 201,205 ----
  		String attributeName,
  		Object attributeValue)
! 		throws Exception {
  		// introspect to see if there is a method with this attribute Name
  		Class clazz = tagObject.getClass();
***************
*** 204,209 ****
  		boolean attributeSet = false;
  
! 		for (int i = 0; i < methods.length; i++)
! 		{
  			final Method method = methods[i];
  			final String methodName = method.getName();
--- 207,211 ----
  		boolean attributeSet = false;
  
! 		for (int i = 0; i < methods.length; i++) {
  			final Method method = methods[i];
  			final String methodName = method.getName();
***************
*** 214,224 ****
  			if (parameters.length == 1
  				&& java.lang.Void.TYPE.equals(returnType)
! 				&& methodName.startsWith("set"))
! 			{
  				// remove the set from the method name 
  				String tmp = methodName.substring(3, methodName.length());
  				// compare it with attribute name
! 				if (tmp.equalsIgnoreCase(attributeName))
! 				{
  					method.invoke(tagObject, new Object[] { attributeValue });
  
--- 216,224 ----
  			if (parameters.length == 1
  				&& java.lang.Void.TYPE.equals(returnType)
! 				&& methodName.startsWith("set")) {
  				// remove the set from the method name 
  				String tmp = methodName.substring(3, methodName.length());
  				// compare it with attribute name
! 				if (tmp.equalsIgnoreCase(attributeName)) {
  					method.invoke(tagObject, new Object[] { attributeValue });
  
***************
*** 237,248 ****
  
  	private void setObjectAttributes(Object tagObject, Attributes attributes)
! 		throws Exception
! 	{
  		// introspect to see if there is a method with this attribute Name
  		Class clazz = tagObject.getClass();
  		Method[] methods = clazz.getMethods();
  
! 		for (int j = 0; j < attributes.getLength(); j++)
! 		{
  			String attributeName = attributes.getLocalName(j);
  			String attributeValue = attributes.getValue(j);
--- 237,246 ----
  
  	private void setObjectAttributes(Object tagObject, Attributes attributes)
! 		throws Exception {
  		// introspect to see if there is a method with this attribute Name
  		Class clazz = tagObject.getClass();
  		Method[] methods = clazz.getMethods();
  
! 		for (int j = 0; j < attributes.getLength(); j++) {
  			String attributeName = attributes.getLocalName(j);
  			String attributeValue = attributes.getValue(j);
***************
*** 252,257 ****
  				setMethods(tagObject, attributeName, attributeValue);
  
! 			if (!attributeSet)
! 			{
  				Logger.getLog().error(
  					"Attribute :"
--- 250,254 ----
  				setMethods(tagObject, attributeName, attributeValue);
  
! 			if (!attributeSet) {
  				Logger.getLog().error(
  					"Attribute :"
***************
*** 268,273 ****
  	 *                Will not be <code>null</code>.
  	 */
! 	public void setDocumentLocator(Locator locator)
! 	{
  		m_context.setLocator(locator);
  	}
--- 265,269 ----
  	 *                Will not be <code>null</code>.
  	 */
! 	public void setDocumentLocator(Locator locator) {
  		m_context.setLocator(locator);
  	}
***************
*** 284,294 ****
  	 */
  	public void endElement(String uri, String name, String qName)
! 		throws SAXException
! 	{
  		// find out if the tag - class is defined in the XMLEntryTable
! 		String clazzName = (String)m_xmlEntryTable.get(name);
  		// if it is the XMLGrouperElement
! 		if( !clazzName.equals(RuperConstants.XML_GROUPER_ELEMENT) )
! 		{
  			// pop the element out of the stack
  			this.m_tagObjectStack.pop();
--- 280,288 ----
  	 */
  	public void endElement(String uri, String name, String qName)
! 		throws SAXException {
  		// find out if the tag - class is defined in the XMLEntryTable
! 		String clazzName = (String) m_xmlEntryTable.get(name);
  		// if it is the XMLGrouperElement
! 		if (!clazzName.equals(RuperConstants.XML_GROUPER_ELEMENT)) {
  			// pop the element out of the stack
  			this.m_tagObjectStack.pop();
***************
*** 303,308 ****
  	 */
  	public void characters(char[] buf, int start, int count)
! 		throws SAXParseException
! 	{
  
  	}
--- 297,301 ----
  	 */
  	public void characters(char[] buf, int start, int count)
! 		throws SAXParseException {
  
  	}
***************
*** 314,319 ****
  	 * @param uri the namespace uri
  	 */
! 	public void startPrefixMapping(String prefix, String uri)
! 	{
  		m_context.startPrefixMapping(prefix, uri);
  	}
--- 307,311 ----
  	 * @param uri the namespace uri
  	 */
! 	public void startPrefixMapping(String prefix, String uri) {
  		m_context.startPrefixMapping(prefix, uri);
  	}
***************
*** 324,329 ****
  	 * @param prefix the prefix that is not mapped anymore
  	 */
! 	public void endPrefixMapping(String prefix)
! 	{
  		m_context.endPrefixMapping(prefix);
  	}
--- 316,320 ----
  	 * @param prefix the prefix that is not mapped anymore
  	 */
! 	public void endPrefixMapping(String prefix) {
  		m_context.endPrefixMapping(prefix);
  	}
***************
*** 331,336 ****
  	 * @return
  	 */
! 	public XMLContext getContext()
! 	{
  		return m_context;
  	}
--- 322,326 ----
  	 * @return
  	 */
! 	public XMLContext getContext() {
  		return m_context;
  	}
***************
*** 339,344 ****
  	 * @return
  	 */
! 	public Stack getTagObjectStack()
! 	{
  		return m_tagObjectStack;
  	}
--- 329,333 ----
  	 * @return
  	 */
! 	public Stack getTagObjectStack() {
  		return m_tagObjectStack;
  	}
***************
*** 347,352 ****
  	 * @return
  	 */
! 	public XMLEntryTable getXmlEntryTable()
! 	{
  		return m_xmlEntryTable;
  	}
--- 336,340 ----
  	 * @return
  	 */
! 	public XMLEntryTable getXmlEntryTable() {
  		return m_xmlEntryTable;
  	}
***************
*** 355,360 ****
  	 * @param context
  	 */
! 	public void setContext(XMLContext context)
! 	{
  		m_context = context;
  	}
--- 343,347 ----
  	 * @param context
  	 */
! 	public void setContext(XMLContext context) {
  		m_context = context;
  	}
***************
*** 363,368 ****
  	 * @param object
  	 */
! 	public void setCurrentTagObject(Object object)
! 	{
  		m_currentTagObject = object;
  	}
--- 350,354 ----
  	 * @param object
  	 */
! 	public void setCurrentTagObject(Object object) {
  		m_currentTagObject = object;
  	}
***************
*** 371,376 ****
  	 * @param stack
  	 */
! 	public void setTagObjectStack(Stack stack)
! 	{
  		m_tagObjectStack = stack;
  	}
--- 357,361 ----
  	 * @param stack
  	 */
! 	public void setTagObjectStack(Stack stack) {
  		m_tagObjectStack = stack;
  	}
***************
*** 379,384 ****
  	 * @param table
  	 */
! 	public void setXmlEntryTable(XMLEntryTable table)
! 	{
  		m_xmlEntryTable = table;
  	}
--- 364,368 ----
  	 * @param table
  	 */
! 	public void setXmlEntryTable(XMLEntryTable table) {
  		m_xmlEntryTable = table;
  	}

Index: XMLParser.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/util/xml/XMLParser.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** XMLParser.java	5 Sep 2003 13:32:42 -0000	1.2
--- XMLParser.java	9 Sep 2003 21:49:05 -0000	1.3
***************
*** 19,24 ****
   * @author anou_mana
   */
! public class XMLParser
! {
  	private XMLEntryTable m_xmlEntryTable;
  
--- 19,23 ----
   * @author anou_mana
   */
! public class XMLParser {
  	private XMLEntryTable m_xmlEntryTable;
  
***************
*** 26,37 ****
  	 * 
  	 */
! 	public XMLParser( XMLEntryTable xmlEntryTable )
! 	{
  		super();
  		m_xmlEntryTable = xmlEntryTable;
  	}
  
! 	public XMLContext parse(URL source) throws XMLException
! 	{
  		XMLContext xmlContext = new XMLContext();
  
--- 25,34 ----
  	 * 
  	 */
! 	public XMLParser(XMLEntryTable xmlEntryTable) {
  		super();
  		m_xmlEntryTable = xmlEntryTable;
  	}
  
! 	public XMLContext parse(URL source) throws XMLException {
  		XMLContext xmlContext = new XMLContext();
  
***************
*** 44,49 ****
  	 * @exception XMLException if an error occurs
  	 */
! 	public XMLContext parse(Object source) throws XMLException
! 	{
  		XMLContext xmlContext = new XMLContext();
  		return parse(source, new XMLHandler(xmlContext, this.m_xmlEntryTable));
--- 41,45 ----
  	 * @exception XMLException if an error occurs
  	 */
! 	public XMLContext parse(Object source) throws XMLException {
  		XMLContext xmlContext = new XMLContext();
  		return parse(source, new XMLHandler(xmlContext, this.m_xmlEntryTable));
***************
*** 57,62 ****
  	 */
  	public XMLContext parse(Object source, XMLHandler handler)
! 		throws XMLException
! 	{
  
  		XMLContext xmlContext = handler.getContext();
--- 53,57 ----
  	 */
  	public XMLContext parse(Object source, XMLHandler handler)
! 		throws XMLException {
  
  		XMLContext xmlContext = handler.getContext();
***************
*** 66,82 ****
  		String buildFileName = null;
  
! 		if (source instanceof File)
! 		{
  			buildFile = (File) source;
  			xmlContext.setBuildFile(buildFile);
  			buildFileName = buildFile.toString();
  		}
! 		else if (source instanceof URL)
! 		{
  			url = (URL) source;
  			buildFileName = url.toString();
  		}
! 		else
! 		{
  			throw new XMLException(
  				"Source " + source.getClass().getName() + " not supported");
--- 61,74 ----
  		String buildFileName = null;
  
! 		if (source instanceof File) {
  			buildFile = (File) source;
  			xmlContext.setBuildFile(buildFile);
  			buildFileName = buildFile.toString();
  		}
! 		else if (source instanceof URL) {
  			url = (URL) source;
  			buildFileName = url.toString();
  		}
! 		else {
  			throw new XMLException(
  				"Source " + source.getClass().getName() + " not supported");
***************
*** 86,91 ****
  		InputSource inputSource = null;
  
! 		try
! 		{
  			/**
  			 * SAX 2 style parser used to parse the given file.
--- 78,82 ----
  		InputSource inputSource = null;
  
! 		try {
  			/**
  			 * SAX 2 style parser used to parse the given file.
***************
*** 96,107 ****
  			XMLReader parser = saxParserFactory.newSAXParser().getXMLReader();
  
  			String uri = null;
! 			if (buildFile != null)
! 			{
  				uri = buildFile.toURI().toString();
  				inputStream = new FileInputStream(buildFile);
  			}
! 			else
! 			{
  				inputStream = url.openStream();
  				uri = url.toString();
--- 87,99 ----
  			XMLReader parser = saxParserFactory.newSAXParser().getXMLReader();
  
+ 			if (null == parser)
+ 				throw new XMLException("Failed to load XMLReader");
+ 
  			String uri = null;
! 			if (buildFile != null) {
  				uri = buildFile.toURI().toString();
  				inputStream = new FileInputStream(buildFile);
  			}
! 			else {
  				inputStream = url.openStream();
  				uri = url.toString();
***************
*** 109,114 ****
  
  			inputSource = new InputSource(inputStream);
! 			if (uri != null)
! 			{
  				inputSource.setSystemId(uri);
  			}
--- 101,105 ----
  
  			inputSource = new InputSource(inputStream);
! 			if (uri != null) {
  				inputSource.setSystemId(uri);
  			}
***************
*** 121,138 ****
  			parser.parse(inputSource);
  		}
! 		catch (Exception exc)
! 		{
! 			throw new XMLException(exc.getMessage());
  		}
! 		finally
! 		{
! 			if (inputStream != null)
! 			{
! 				try
! 				{
  					inputStream.close();
  				}
! 				catch (IOException ioe)
! 				{
  					// ignore this
  				}
--- 112,124 ----
  			parser.parse(inputSource);
  		}
! 		catch (Exception exc) {
! 			throw new XMLException(exc.getLocalizedMessage(), exc);
  		}
! 		finally {
! 			if (inputStream != null) {
! 				try {
  					inputStream.close();
  				}
! 				catch (IOException ioe) {
  					// ignore this
  				}

Index: XMLException.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/util/xml/XMLException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** XMLException.java	4 Sep 2003 16:28:23 -0000	1.1
--- XMLException.java	9 Sep 2003 21:49:05 -0000	1.2
***************
*** 4,49 ****
  package org.krysalis.ruper.util.xml;
  
  /**
   * @author anou_mana
   */
! public class XMLException extends Exception
! {
! 
! 	/**
! 	 * 
! 	 */
! 	public XMLException()
! 	{
! 		super();
! 		// TODO Auto-generated constructor stub
! 	}
  
  	/**
! 	 * @param arg0
  	 */
! 	public XMLException(String arg0)
! 	{
! 		super(arg0);
  		// TODO Auto-generated constructor stub
  	}
  
  	/**
! 	 * @param arg0
  	 */
! 	public XMLException(Throwable arg0)
! 	{
! 		super(arg0);
  		// TODO Auto-generated constructor stub
  	}
  
  	/**
! 	 * @param arg0
! 	 * @param arg1
  	 */
! 	public XMLException(String arg0, Throwable arg1)
! 	{
! 		super(arg0, arg1);
  		// TODO Auto-generated constructor stub
  	}
- 
  }
--- 4,37 ----
  package org.krysalis.ruper.util.xml;
  
+ import org.krysalis.ruper.RuperException;
+ 
  /**
   * @author anou_mana
   */
! public class XMLException extends RuperException {
  
  	/**
! 	 * @param message
  	 */
! 	public XMLException(String message) {
! 		super(message);
  		// TODO Auto-generated constructor stub
  	}
  
  	/**
! 	 * @param message
! 	 * @param throwable
  	 */
! 	public XMLException(String message, Throwable throwable) {
! 		super(message, throwable);
  		// TODO Auto-generated constructor stub
  	}
  
  	/**
! 	 * @param throwable
  	 */
! 	public XMLException(Throwable throwable) {
! 		super(throwable);
  		// TODO Auto-generated constructor stub
  	}
  }




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.