Author: jochen
Date: Sat Aug 13 20:09:36 2005
New Revision: 232571

URL: http://svn.apache.org/viewcvs?rev=232571&view=rev
Log:
The IDREF type has been implemented as string and not
as a reference to another object, as it should be.
PR: JAXME-58
Submitted by: Fredrik Vraalsen <fredrik at vraalsen.no>


Added:
    webservices/jaxme/trunk/src/jaxme/org/apache/ws/jaxme/IDREF.java

Added: webservices/jaxme/trunk/src/jaxme/org/apache/ws/jaxme/IDREF.java
URL: 
http://svn.apache.org/viewcvs/webservices/jaxme/trunk/src/jaxme/org/apache/ws/jaxme/IDREF.java?rev=232571&view=auto
==============================================================================
--- webservices/jaxme/trunk/src/jaxme/org/apache/ws/jaxme/IDREF.java (added)
+++ webservices/jaxme/trunk/src/jaxme/org/apache/ws/jaxme/IDREF.java Sat Aug 13 
20:09:36 2005
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.ws.jaxme;
+
+import java.util.Map;
+
+import org.xml.sax.SAXException;
+
+
+/** This class is used for resolving IDREF fields. Whenever the
+ * Unmarshaller finds an instance of IDREF, then it will create
+ * an object, which implements this interface. As soon as the
+ * parser is done (and all ID's are collected), then it will
+ * invoke the method [EMAIL PROTECTED] #validate(Map)}.
+ */
+public interface IDREF {
+       /** Called for resolving the ID reference.
+        * @param pIds the map of IDs->objects
+        * @throws SAXException if IDREF references non-existing ID
+        */
+       void validate(Map pIds) throws SAXException;
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to