You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@apache.org on 2002/06/27 16:50:12 UTC
cvs commit: xml-xalan/java/src/org/apache/xpath NodeSet.java NodeSetDTM.java
mmidy 2002/06/27 07:50:12
Modified: java/src/org/apache/xpath NodeSet.java NodeSetDTM.java
Log:
Pull out hard coded messages
Revision Changes Path
1.15 +5 -5 xml-xalan/java/src/org/apache/xpath/NodeSet.java
Index: NodeSet.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/NodeSet.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- NodeSet.java 4 Aug 2001 18:23:30 -0000 1.14
+++ NodeSet.java 27 Jun 2002 14:50:12 -0000 1.15
@@ -307,7 +307,7 @@
if (!m_cacheNodes)
throw new RuntimeException(
- "This NodeSet can not iterate to a previous node!");
+ XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESET_CANNOT_ITERATE, null)); //"This NodeSet can not iterate to a previous node!");
if ((m_next - 1) > 0)
{
@@ -362,7 +362,7 @@
if (!m_cacheNodes)
throw new RuntimeException(
- "This NodeSet can not do indexing or counting functions!");
+ XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESET_CANNOT_INDEX, null)); //"This NodeSet can not do indexing or counting functions!");
if ((index >= 0) && (m_next < m_firstFree))
m_next = index;
@@ -785,7 +785,7 @@
if (!m_cacheNodes)
throw new RuntimeException(
- "This NodeSet can not do indexing or counting functions!");
+ XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESET_CANNOT_INDEX, null)); //"This NodeSet can not do indexing or counting functions!");
m_next = i;
}
@@ -802,7 +802,7 @@
if (!m_cacheNodes)
throw new RuntimeException(
- "This NodeSet can not do indexing or counting functions!");
+ XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESET_CANNOT_INDEX, null)); //"This NodeSet can not do indexing or counting functions!");
int saved = m_next;
Node n = (m_next < m_firstFree) ? elementAt(m_next) : null;
@@ -844,7 +844,7 @@
if (!isFresh())
throw new RuntimeException(
- "Can not call setShouldCacheNodes after nextNode has been called!");
+ XSLMessages.createXPATHMessage(XPATHErrorResources.ER_CANNOT_CALL_SETSHOULDCACHENODE, null)); //"Can not call setShouldCacheNodes after nextNode has been called!");
m_cacheNodes = b;
m_mutable = true;
1.10 +4 -4 xml-xalan/java/src/org/apache/xpath/NodeSetDTM.java
Index: NodeSetDTM.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/NodeSetDTM.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- NodeSetDTM.java 8 Nov 2001 22:44:42 -0000 1.9
+++ NodeSetDTM.java 27 Jun 2002 14:50:12 -0000 1.10
@@ -455,7 +455,7 @@
if (!m_cacheNodes)
throw new RuntimeException(
- "This NodeSetDTM can not iterate to a previous node!");
+ XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESETDTM_CANNOT_ITERATE, null)); //"This NodeSetDTM can not iterate to a previous node!");
if ((m_next - 1) > 0)
{
@@ -522,7 +522,7 @@
if (!m_cacheNodes)
throw new RuntimeException(
- "This NodeSetDTM can not do indexing or counting functions!");
+ XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESETDTM_CANNOT_INDEX, null)); //"This NodeSetDTM can not do indexing or counting functions!");
if ((index >= 0) && (m_next < m_firstFree))
m_next = index;
@@ -1174,7 +1174,7 @@
if (!m_cacheNodes)
throw new RuntimeException(
- "This NodeSetDTM can not do indexing or counting functions!");
+ XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESETDTM_CANNOT_INDEX, null)); //"This NodeSetDTM can not do indexing or counting functions!");
m_next = i;
}
@@ -1240,7 +1240,7 @@
if (!isFresh())
throw new RuntimeException(
- "Can not call setShouldCacheNodes after nextNode has been called!");
+ XSLMessages.createXPATHMessage(XPATHErrorResources.ER_CANNOT_CALL_SETSHOULDCACHENODE, null)); //"Can not call setShouldCacheNodes after nextNode has been called!");
m_cacheNodes = b;
m_mutable = true;
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org