Update of /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/cimxml/sax/node
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv7045/src/org/sblim/cimclient/internal/cimxml/sax/node
Modified Files:
ObjectPathNode.java
Log Message:
2677 ObjectPathNode allows all child nodes
Index: ObjectPathNode.java
===================================================================
RCS file: /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/cimxml/sax/node/ObjectPathNode.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ObjectPathNode.java 10 Mar 2009 17:05:32 -0000 1.6
+++ ObjectPathNode.java 29 Oct 2013 11:09:57 -0000 1.7
@@ -1,5 +1,5 @@
/**
- * (C) Copyright IBM Corp. 2006, 2009
+ * (C) Copyright IBM Corp. 2006, 2013
*
* THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
* ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
@@ -18,6 +18,7 @@
* 1720707 2007-05-17 ebak Conventional Node factory for CIM-XML SAX parser
* 2003590 2008-06-30 blaschke-oss Change licensing from CPL to EPL
* 2524131 2009-01-21 raman_arora Upgrade client to JDK 1.5 (Phase 1)
+ * 2677 2013-09-30 blaschke-oss ObjectPathNode allows all child nodes
*/
package org.sblim.cimclient.internal.cimxml.sax.node;
@@ -68,6 +69,9 @@
if (this.iObjPath != null) throw new SAXException(getNodeName()
+ " node can have only one INSTANCEPATH or CLASSPATH child node!" + " Additional "
+ pNodeNameEnum + " child node is invalid!");
+ if (pNodeNameEnum != CLASSPATH && pNodeNameEnum != INSTANCEPATH) throw new SAXException(
+ getNodeName() + " node child node can be CLASSPATH or INSTANCEPATH but a "
+ + pNodeNameEnum + " node was found!");
}
@Override
|