Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/util/xml
In directory sc8-pr-cvs1:/tmp/cvs-serv29519/src/java/core/org/krysalis/ruper2/util/xml
Modified Files:
XMLGrouperElement.java XMLHandler.java
Log Message:
A few more ruper->ruper2 tweaks
Concat test output
Index: XMLGrouperElement.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/util/xml/XMLGrouperElement.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** XMLGrouperElement.java 29 Sep 2003 18:09:16 -0000 1.1
--- XMLGrouperElement.java 29 Sep 2003 22:10:12 -0000 1.2
***************
*** 7,25 ****
* @author anou_mana
*/
! public class XMLGrouperElement
! {
! public static final String XML_GROUPER_ELEMENT_CLASSNAME = XMLGrouperElement.class.getName();
/**
*
*/
! public XMLGrouperElement()
! {
super();
// TODO Auto-generated constructor stub
}
! public static void main(String[] args)
! {
}
}
--- 7,23 ----
* @author anou_mana
*/
! public class XMLGrouperElement {
! public static final String XML_GROUPER_ELEMENT_CLASSNAME =
! XMLGrouperElement.class.getName();
/**
*
*/
! public XMLGrouperElement() {
super();
// TODO Auto-generated constructor stub
}
! public static void main(String[] args) {
}
}
Index: XMLHandler.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/util/xml/XMLHandler.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** XMLHandler.java 29 Sep 2003 18:09:16 -0000 1.1
--- XMLHandler.java 29 Sep 2003 22:10:12 -0000 1.2
***************
*** 232,236 ****
if (parameters.length == 1
! && parameters[0] == attributeValue.getClass()) {
method.invoke(
tagObject,
--- 232,236 ----
if (parameters.length == 1
! && parameters[0] == attributeValue.getClass()) {
method.invoke(
tagObject,
***************
*** 301,305 ****
attributeValue = objectAttributeValue;
! attribute = getClassNameWithoutPackage(attributeClassName);
}
else {
--- 301,306 ----
attributeValue = objectAttributeValue;
! attribute =
! getClassNameWithoutPackage(attributeClassName);
}
else {
***************
*** 358,368 ****
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(XMLGrouperElement.XML_GROUPER_ELEMENT_CLASSNAME)) {
! // pop the element out of the stack
! this.m_tagObjectStack.pop();
}
}
--- 359,380 ----
public void endElement(String uri, String name, String qName)
throws SAXException {
! try {
!
! // find out if the tag - class is defined in the XMLEntryTable
! String clazzName = (String) m_xmlEntryTable.get(name);
! if (null != clazzName)
! // if it is the XMLGrouperElement
! if (!clazzName
! .equals(XMLGrouperElement.XML_GROUPER_ELEMENT_CLASSNAME)) {
! // pop the element out of the stack
! m_tagObjectStack.pop();
! }
! }
! catch (Exception exception) {
! Logger.getLog().error("XML_BEAN_ERROR", exception);
! throw new SAXParseException(
! exception.getLocalizedMessage(),
! m_context.getLocator(),
! exception);
}
}
-------------------------------------------------------
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.