Author: mrglavas
Date: Sun Jul 30 21:08:07 2006
New Revision: 427010
URL: http://svn.apache.org/viewvc?rev=427010&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/trunk/src/org/apache/xerces/impl/xs/XSModelImpl.java
xerces/java/trunk/src/org/apache/xerces/xs/XSModel.java
Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/XSModelImpl.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/XSModelImpl.java?rev=427010&r1=427009&r2=427010&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/XSModelImpl.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/XSModelImpl.java Sun Jul 30
21:08:07 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/trunk/src/org/apache/xerces/xs/XSModel.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/xs/XSModel.java?rev=427010&r1=427009&r2=427010&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/xs/XSModel.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/xs/XSModel.java Sun Jul 30 21:08:07
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]