You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2006/07/31 06:12:11 UTC

svn commit: r427011 - in /xerces/java/branches/stax-dev/src/org/apache/xerces: impl/xs/XSModelImpl.java xs/XSModel.java

Author: mrglavas
Date: Sun Jul 30 21:12:11 2006
New Revision: 427011

URL: http://svn.apache.org/viewvc?rev=427011&view=rev
Log:
Exposing a method on XSModel which returns the substitution group
for a given element declaration. The implementation had already
been in place for several releases.

Modified:
    xerces/java/branches/stax-dev/src/org/apache/xerces/impl/xs/XSModelImpl.java
    xerces/java/branches/stax-dev/src/org/apache/xerces/xs/XSModel.java

Modified: xerces/java/branches/stax-dev/src/org/apache/xerces/impl/xs/XSModelImpl.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/stax-dev/src/org/apache/xerces/impl/xs/XSModelImpl.java?rev=427011&r1=427010&r2=427011&view=diff
==============================================================================
--- xerces/java/branches/stax-dev/src/org/apache/xerces/impl/xs/XSModelImpl.java (original)
+++ xerces/java/branches/stax-dev/src/org/apache/xerces/impl/xs/XSModelImpl.java Sun Jul 30 21:12:11 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2002-2005 The Apache Software Foundation.
+ * Copyright 2002-2006 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.
@@ -469,10 +469,6 @@
         return fHasIDC;
     }
 
-    /**
-     * REVISIT: to expose substitution group of a given element.
-     * We need to add this to the XSModel interface.
-     */
     public XSObjectList getSubstitutionGroup(XSElementDeclaration head) {
         return (XSObjectList)fSubGroupMap.get(head);
     }

Modified: xerces/java/branches/stax-dev/src/org/apache/xerces/xs/XSModel.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/stax-dev/src/org/apache/xerces/xs/XSModel.java?rev=427011&r1=427010&r2=427011&view=diff
==============================================================================
--- xerces/java/branches/stax-dev/src/org/apache/xerces/xs/XSModel.java (original)
+++ xerces/java/branches/stax-dev/src/org/apache/xerces/xs/XSModel.java Sun Jul 30 21:12:11 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2003,2004 The Apache Software Foundation.
+ * Copyright 2003,2004,2006 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.
@@ -140,5 +140,18 @@
      */
     public XSNotationDeclaration getNotationDeclaration(String name, 
                                                         String namespace);
+    
+    /**
+     * Convenience method. Returns a list containing the members of the
+     * substitution group for the given <code>XSElementDeclaration</code>
+     * or an empty <code>XSObjectList</code> if the substitution group
+     * contains no members.
+     * @param head The substitution group head.
+     * @return A list containing the members of the substitution group 
+     *  for the given <code>XSElementDeclaration</code> or an empty 
+     *  <code>XSObjectList</code> if the substitution group contains 
+     *  no members.
+     */
+    public XSObjectList getSubstitutionGroup(XSElementDeclaration head);
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org