sandygao 2004/02/03 09:11:09
Modified: java/src/org/apache/xerces/impl/xs SchemaGrammar.java
Log:
Expose more information from the implementation of XSModel:
1. Whether this XSModel contains any IDC.
2. To get the substitution group for a give element declaration.
Revision Changes Path
1.35 +9 -2 xml-xerces/java/src/org/apache/xerces/impl/xs/SchemaGrammar.java
Index: SchemaGrammar.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/SchemaGrammar.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- SchemaGrammar.java 20 Jan 2004 14:51:14 -0000 1.34
+++ SchemaGrammar.java 3 Feb 2004 17:11:09 -0000 1.35
@@ -2,7 +2,7 @@
* The Apache Software License, Version 1.1
*
*
- * Copyright (c) 2001-2003 The Apache Software Foundation. All rights
+ * Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -451,6 +451,13 @@
*/
public final IdentityConstraint getIDConstraintDecl(String declName) {
return(IdentityConstraint)fGlobalIDConstraintDecls.get(declName);
+ }
+
+ /**
+ * get one identity constraint
+ */
+ public final boolean hasIDConstraints() {
+ return fGlobalIDConstraintDecls.getLength() > 0;
}
// array to store complex type decls
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]